Automatic VLANS

Brooks Davis brooks at one-eyed-alien.net
Mon Apr 24 05:08:13 UTC 2006


On Sun, Apr 23, 2006 at 03:20:02AM +0100, Richard Tector wrote:
> Quoting Andrew Thompson <thompsa at freebsd.org>:
> 
> >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 at 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
> 
> 
> 
> >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
> 
> 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 attmpts
> have yielded no success.
> 
> Eg.
> rc.conf:
> ifconfig_em0="up vlanhwtag vlanmtu"
> ifconfig_em0.100="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=inet 10.1.2.3/24: not found
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
> ....
> 
> and the interface is never created, with or without:
> cloned_interfaces="em0.100"

The cloned_interfaces entry is absolutly required.

> Any suggestions?

Try without invalid expressions in /etc/rc.conf :).

-- 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/20060424/0019aae9/attachment.pgp


More information about the freebsd-net mailing list