Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 May 2010 06:35:33 +1200
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Peter Kieser <peter@kieser.ca>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Bringing VLANs created with rc.conf vlans_<interface> 'up' on boot?
Message-ID:  <20100517183533.GA50109@citylink.fud.org.nz>
In-Reply-To: <4BF17814.50707@kieser.ca>
References:  <4BF17814.50707@kieser.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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