Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 374821

Summary: sys-apps/openrc-0.8.3-r1: Only the first VLAN is configured after upgrading from baselayout-1 to baselayout-2
Product: Gentoo Linux Reporter: David Sommerseth <sourceforge>
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: major    
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description David Sommerseth 2011-07-11 09:42:10 UTC
When configuring multiple VLANs on one interface via /etc/conf.d/net, only the first VLAN on an interface is configured.  The rest is not set up at all.

Example config:
------------------------------
modules=( "iproute2" )
config_eth1=( "192.168.100.1 netmask 255.255.255.0" )
vlans_eth1=( "15" "25" )
config_eth1_15=( "192.168.115.1 netmask 255.255.255.0" )
config_eth1_25=( "192.168.125.1 netmask 255.255.255.0" )
------------------------------

Now only eth1.15 will be configured when net.eth1 is started.  If the VLANs defined in vlans_eth1 is "flipped around", saying "25" "15" ... only eth1.25 will be configured.



Reproducible: Always

Actual Results:  
Only the first mentioned VLAN in vlans_{eth} is configured.

Expected Results:  
All VLANs is configured.

# equery l baselayout openrc iproute2
 * Searching for baselayout ...
[IP-] [  ] sys-apps/baselayout-2.0.2:0

 * Searching for openrc ...
[IP-] [  ] sys-apps/openrc-0.8.3-r1:0

 * Searching for iproute2 ...
[IP-] [  ] sys-apps/iproute2-2.6.35-r2:0
Comment 1 William Hubbs gentoo-dev 2011-07-11 14:05:23 UTC
You are using bash arrays in your configuration, and OpenRC does not
support this. Please make your configuration look like the following:

modules="iproute2"
config_eth1="192.168.100.1/24"
vlans_eth1="15 25"
config_eth1_15="192.168.115.1/24"
config_eth1_25="192.168.125.1/24"

I am also recommending using cidr notation for netmasks instead of
"netmask 255.255.255.0" since you are using iproute2 to configure your
interfaces and that is the format iproute2 uses.

Please feel free to reopen this bug if that does not solve your issue.
Comment 2 David Sommerseth 2011-07-12 14:14:16 UTC
Confirmed.  I changed the config like this:

----------------------------------------
modules="iproute2"
config_eth1="192.168.100.1/24"
vlans_eth1="15 25"
config_eth1_15="192.168.115.1/24"
config_eth1_25="192.168.125.1/24"
----------------------------------------

This solved the issue.  I'm sorry I didn't read the documentation carefully enough after moving to baselayout-2.  The files in /usr/share/doc/openrc-*/ provided the info I was missing.