Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jan 2006 10:23:09 +0000
From:      Marcin Jessa <lists@yazzy.org>
To:        Andrew Thompson <thompsa@freebsd.org>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Automatic VLANS
Message-ID:  <20060112102309.25f2e33a.lists@yazzy.org>
In-Reply-To: <20060112101616.GG2332@heff.fud.org.nz>
References:  <170970070.20060112144241@kr.ru> <20060112105808.0ec94f40.lists@yazzy.org> <20060112101616.GG2332@heff.fud.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Jan 2006 23:16:16 +1300
Andrew Thompson <thompsa@freebsd.org> wrote:

> On Thu, Jan 12, 2006 at 10:58:08AM +0100, Marcin Jessa wrote:
> > On Thu, 12 Jan 2006 14:42:41 +0700
> > Vitaliy Ovsyannikov <V.Ovsyannikov@kr.ru> 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
> > 
> > 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"

>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.

Right, thanks for errata, I was not aware of it.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060112102309.25f2e33a.lists>