Automatic VLANS

Brooks Davis brooks at one-eyed-alien.net
Thu Jan 12 11:21:36 PST 2006


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
> > 
> > > > Run
> > > > ifconfig vlan0 create
> > > > ifconfig vlan0 destroy
> > > > to create or remove vlan0 interface.
> > > >  
> > > > You can also rename your vlan0 interface so it will be more descriptive
> > > > with ifconfig vlan0 name vlan_to_somewhere
> > > > 
> > > > If you want it to be renamed at boot something like this should work:
> > > > ifconfig_vlan0="name vlan_to_somewhere inet 10.90.90.200 vlan 123
> > > > vlandev em0"
> > > 
> > > While what you have posted is correct, 
> > 
> > Not quite, seem like the name part is not working as expected. 
> > I just tested it on 6.0 and the part coming after name vlan_to_somewhere is not being executed
> > although the same thing works with ath:
> > ifconfig_ath0="name wlan0 inet 192.168.13.1 netmask 255.255.255.0 ssid YazzY mode 11g channel 10 mediaopt hostap up"
> 
> 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

-- 
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20060112/1b46cbc4/attachment.bin


More information about the freebsd-net mailing list