Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 May 2010 21:22:54 +0300
From:      Mykola Dzham <i@levsha.me>
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:  <20100517182254.GA36060@laptop.levsha.me>
In-Reply-To: <4BF17814.50707@kieser.ca>
References:  <4BF17814.50707@kieser.ca>

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

ifconfig_em1_100="up"

from network.subr:

# get_if_var if var [default]
# Return the value of the pseudo-hash corresponding to $if where
# $var is a string containg the sub-string "IF" which will be
# replaced with $if after the characters defined in _punct are
# replaced with '_'. If the variable is unset, replace it with
# $default if given.

-- 
LEFT-(UANIC|RIPE)
JID: levsha@jabber.net.ua
PGP fingerprint: 1BCD 7C80 2E04 7282 C944  B0E0 7E67 619E 4E72 9280



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