Bringing VLANs created with rc.conf vlans_<interface> 'up' on boot?

Peter Kieser peter at kieser.ca
Mon May 17 18:46:48 UTC 2010


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


More information about the freebsd-net mailing list