From owner-freebsd-net@FreeBSD.ORG Thu Jan 12 19:21:36 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 B54DC16A41F; Thu, 12 Jan 2006 19:21:36 +0000 (GMT) (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 27C5C43D60; Thu, 12 Jan 2006 19:21:23 +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 k0CJLM8N009391; Thu, 12 Jan 2006 11:21:22 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k0CJLMAY009390; Thu, 12 Jan 2006 11:21:22 -0800 Date: Thu, 12 Jan 2006 11:21:22 -0800 From: Brooks Davis To: Andrew Thompson Message-ID: <20060112192122.GA6660@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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20060112103126.GH2332@heff.fud.org.nz> 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 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: Thu, 12 Jan 2006 19:21:36 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jan 12, 2006 at 11:31:26PM +1300, Andrew Thompson wrote: > On Thu, Jan 12, 2006 at 10:23:09AM +0000, Marcin Jessa wrote: > > On Thu, 12 Jan 2006 23:16:16 +1300 > >=20 > > > > Run > > > > ifconfig vlan0 create > > > > ifconfig vlan0 destroy > > > > to create or remove vlan0 interface. > > > > =20 > > > > You can also rename your vlan0 interface so it will be more descrip= tive > > > > with ifconfig vlan0 name vlan_to_somewhere > > > >=20 > > > > If you want it to be renamed at boot something like this should wor= k: > > > > ifconfig_vlan0=3D"name vlan_to_somewhere inet 10.90.90.200 vlan 123 > > > > vlandev em0" > > >=20 > > > While what you have posted is correct,=20 > >=20 > > Not quite, seem like the name part is not working as expected.=20 > > I just tested it on 6.0 and the part coming after name vlan_to_somewher= e is not being executed > > although the same thing works with ath: > > ifconfig_ath0=3D"name wlan0 inet 192.168.13.1 netmask 255.255.255.0 ssi= d YazzY mode 11g channel 10 mediaopt hostap up" >=20 > This will be because pseudo interfaces are not reported to devd on > cloning so rc.d/netif wont be run. physical interfaces work fine as you > found with ath :) We really should report if_attach/if_detach rather than hanging off the device attach code here. -- 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 --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDxqwxXY6L6fI4GtQRAtvGAJ0d3yIOaZo6xf2RrBS2FFElWeBoxACgvDzE nKaNZCQ6VAU3XmFxuwPChck= =80R/ -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU--