Automatic VLANS
Marcin Jessa
lists at yazzy.org
Thu Jan 12 01:58:16 PST 2006
On Thu, 12 Jan 2006 14:42:41 +0700
Vitaliy Ovsyannikov <V.Ovsyannikov at kr.ru> wrote:
> Hello, freebsd-net.
Hi Vitaly
> 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
>
> # uname -r
> 6.0-STABLE
Run
ifconfig vlan0 create
ifconfig vlan0 destroy
to create or remove vlan0 interface.
To have vlan0 and i.e bridge0 created at boot edit /etc/rc.conf adding
following:
cloned_interfaces="bridge0 vlan0"
Then add something like that to configure it at boot:
ifconfig_em0="up"
ifconfig_vlan0="inet 10.90.90.200 vlan 123 vlandev em0"
/24 is the default netmask so you do not need to add netmask option to
ifconfig.
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"
Cheers,
Marcin Jessa.
More information about the freebsd-net
mailing list