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

Andrew Thompson thompsa at FreeBSD.org
Mon May 17 18:35:40 UTC 2010


On Mon, May 17, 2010 at 10:08:36AM -0700, Peter Kieser wrote:
> Hello,
> 
> I am experimenting with FreeBSD vlan's using the vlans<interface> option in 
> rc.conf, my configuration is as follows:
> 
> ifconfig_em1="up"
> vlans_em1="100 101 102 103 104 105 106 107 108 109 110"
> autobridge_interfaces="bridge0"
> autobridge_bridge0="em0 em1.*"
> ifconfig_bridge0="up"
> 
> rc script create em1.100 - em1.110 but doesn't bring the interfaces up on 
> boot, I have to issue 'ifconfig em1.100 up', etc. to bring them online. I 
> also cannot use 'ifconfig_em1.100="up"' because the rc scripts don't 
> support periods in the variable names. Is there a way to accomplish this? 

Use an underscore where the period should be, the rc.d scripts support
this.

ifconfig_em1.100="up" --> ifconfig_em1_100="up"


cheers,
Andrew


More information about the freebsd-net mailing list