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

Bug 97582

Summary: sys-apps/baselayout-1.11.12-r4 vlan configuration example misleads
Product: Gentoo Linux Reporter: Marek Wiecek <marek.wiecek>
Component: [OLD] baselayoutAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Marek Wiecek 2005-07-01 00:55:42 UTC
There is a following example in vlan configuration section in
/etc/conf.d/net.example:

# Specify the VLAN numbers for the interface like so
# Please ensure your VLAN IDs are NOT zero-padded
#vlans_eth0="1 2"

# You can also configure the VLAN - see for vconfig man page for more details
#vconfig_eth0=( "set_name_type VLAN_PLUS_VID_NO_PAD" )
#vconfig_vlan1=( "set_flag 1" "set_egress_map 2 6" )
#config_vlan1=( "172.16.3.1 netmask 255.255.254.0" )
#config_vlan2=( "172.16.2.1 netmask 255.255.254.0" )

but using such notation it doesn't work.

Reproducible: Always
Steps to Reproduce:
1.put vlans_eth0="1" into /etc/conf.d/net
2.put config_vlan1=( "10.0.0.100/24" ) into /etc/conf.d/net
3. /etc/init.d/net.eth0 restart

Actual Results:  
* Adding VLAN 1 to eth0 [ ok ]
* Bringing up eth0.1 
*   Configuration not set for eth0.1 - assuming dhcp

Expected Results:  
The ip configuration for eth0.1 should be found and applied correctly.

It all works like a charm provided that you use following notation in
/etc/conf.d/net:

1.put vlans_eth0="1" into /etc/conf.d/net
2.put config_eth0_1=( "10.0.0.100/24" ) into /etc/conf.d/net
3. /etc/init.d/net.eth0 restart
Comment 1 Marek Wiecek 2005-07-01 05:33:57 UTC
After I have read the vconfig manual thoroughly about the meaning of
set_name_type VLAN_PLUS_VID_NO_PAD it all became so simple.

Of course if you use the example above in exact way this will work. Sorry for
making an unnecesary noise.