Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Feb 2008 17:58:46 +0100
From:      Milan Obuch <freebsd-net@dino.sk>
To:        freebsd-net@freebsd.org
Subject:   Re: Weird rc.conf problem
Message-ID:  <200802021758.47316.freebsd-net@dino.sk>
In-Reply-To: <200802021307.44140.freebsd-net@dino.sk>
References:  <200802021307.44140.freebsd-net@dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday 02 February 2008, Milan Obuch wrote:
> Hi,
> I am getting weird problem with network configuration.
>
> In rc.conf I have (just for demonstation, only part)
>
> ifconfig_em0="polling"
>
> cloned_interfaces="vlan2"
> ifconfig_vlan2="vlan 2 vlandev em0"
> ifconfig_vlan2_name="em0.2"
>
> Result is incorrect:
>
> em0.2: flags=8003<UP,BROADCAST,MULTICAST> mtu 1500
>         ether 00:00:00:00:00:00
>         vlan: 0 parent interface: <none>
>
> If I use
>
> ifconfig_em0="polling up"
>
> cloned_interfaces="vlan2"
> ifconfig_vlan2="vlan 2 vlandev em0 name em0.2"
>
> Result is correct:
>
> em0.2: flags=8003<UP,BROADCAST,MULTICAST> mtu 1500
>         ether 00:11:22:33:44:55
>         vlan: 2 parent interface: em0
>
> In the latter case I am getting some
>
> ifconfig: interface vlan2 does not exist
>
> messages in dmesg, which I was trying to avoid.
>

It seems today is not my best, I found the simplest solution at last...

All I need is just one line in rc.conf:

cloned_interfaces="em0.2 em1.16 em1.28"

And one line in loader.conf:

if_vlan_load=YES

That's it. I have no if_vlan in kernel config, this was the reason I can't 
find this solution, which really works like I expected.

One should not mix too much old and new features I think.

Milan

-- 
This address is used only for mailing list response.
Do not send any personal messages to it, use milan in
address instead.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802021758.47316.freebsd-net>