Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 11:46:47 -0700
From:      Peter Kieser <peter@kieser.ca>
To:        freebsd-net@freebsd.org
Subject:   Re: Bringing VLANs created with rc.conf vlans_<interface> 'up' on boot?
Message-ID:  <4BF18F17.2060708@kieser.ca>
In-Reply-To: <20100517183533.GA50109@citylink.fud.org.nz>
References:  <4BF17814.50707@kieser.ca> <20100517183533.GA50109@citylink.fud.org.nz>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5/17/2010 11:35 AM, Andrew Thompson wrote:
> Use an underscore where the period should be, the rc.d scripts support
> this.
>
> ifconfig_em1.100="up" -->  ifconfig_em1_100="up"
>
>
> cheers,
> Andrew
>    

Thanks to some offlist postings (from Mykola Dzham and the one above), I 
came up with the following:

ifconfig_DEFAULT="up"
vlans_em1="100 101 102 103 104 105 106 107 108 109 110"
autobridge_interfaces="bridge0"
autobridge_bridge0="em0 em1.*"

I wanted to make certain interfaces on the bridge 'sticky', but if I add:

ifconfig_bridge0="sticky em1.100 sticky em1.101 sticky em1.102 sticky 
em1.103 sticky em1.104 sticky em1.105 sticky em1.106 sticky em1.107 
sticky em1.108 sticky em1.109 sticky em1.110"

Then the autobridge interface isn't created and I'm back to my ugly 
ifconfig_bridge0 hack. Is there an alternative way to do this?

Thank you,

-Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF18F17.2060708>