From owner-freebsd-net@FreeBSD.ORG Mon Apr 24 05:08:13 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AE5C16A400; Mon, 24 Apr 2006 05:08:13 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FB9043D4C; Mon, 24 Apr 2006 05:08:12 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k3O58B5V008617; Sun, 23 Apr 2006 22:08:11 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k3O58An4008616; Sun, 23 Apr 2006 22:08:10 -0700 Date: Sun, 23 Apr 2006 22:08:10 -0700 From: Brooks Davis To: Richard Tector Message-ID: <20060424050810.GB3499@odin.ac.hmc.edu> References: <170970070.20060112144241@kr.ru> <20060112105808.0ec94f40.lists@yazzy.org> <20060112101616.GG2332@heff.fud.org.nz> <20060112102309.25f2e33a.lists@yazzy.org> <20060112103126.GH2332@heff.fud.org.nz> <20060112192122.GA6660@odin.ac.hmc.edu> <20060423032002.7yty36ga8so0w8o0@webmail.thekeelecentre.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kXdP64Ggrk/fb43R" Content-Disposition: inline In-Reply-To: <20060423032002.7yty36ga8so0w8o0@webmail.thekeelecentre.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-net@freebsd.org, Marcin Jessa , Andrew Thompson Subject: Re: Automatic VLANS X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Apr 2006 05:08:13 -0000 --kXdP64Ggrk/fb43R Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 23, 2006 at 03:20:02AM +0100, Richard Tector wrote: > Quoting Andrew Thompson : >=20 > >On Thu, Jan 12, 2006 at 10:58:08AM +0100, Marcin Jessa wrote: > >>On Thu, 12 Jan 2006 14:42:41 +0700 > >>Vitaliy Ovsyannikov wrote: > >>> Does Automatic VLANS works? > >>> It is was described in > >>> http://people.freebsd.org/~andre/FreeBSD-5.3-Networking.pdf > >>> > >>> # ifconfig em0.1 inet 10.90.90.200/24 > >>> ifconfig: interface em0.1 does not exist >=20 >=20 >=20 > >While what you have posted is correct, the automatic vlans the original > >poster referred to do exist. 'ifconfig em0.1 create' will create a vlan > >and also set the parent to em0 and tag as 1. > > > >Andrew >=20 > Is it possible to use this method through rc or must I stick with creating > vlan1, vlan2, vlan3, etc and setting the vlanid and vlandev since my attm= pts > have yielded no success. >=20 > Eg. > rc.conf: > ifconfig_em0=3D"up vlanhwtag vlanmtu" > ifconfig_em0.100=3D"inet 10.1.2.3/24" Periods aren't valid in shell variable names so this won't work. Hense the error message below. > goliath# /etc/rc.d/netif start > /etc/rc.conf: ifconfig_em0.100=3Dinet 10.1.2.3/24: not found > lo0: flags=3D8049 mtu 16384 > .... >=20 > and the interface is never created, with or without: > cloned_interfaces=3D"em0.100" The cloned_interfaces entry is absolutly required. > Any suggestions? Try without invalid expressions in /etc/rc.conf :). -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --kXdP64Ggrk/fb43R Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFETF05XY6L6fI4GtQRAvKjAJwPVErAot57o4vYh97P7fvsYpTRwACfWow4 u5gdRaxHqHksNkjuFpnWEno= =pXoU -----END PGP SIGNATURE----- --kXdP64Ggrk/fb43R--