Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 97582 - sys-apps/baselayout-1.11.12-r4 vlan configuration example misleads
Summary: sys-apps/baselayout-1.11.12-r4 vlan configuration example misleads
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-01 00:55 UTC by Marek Wiecek
Modified: 2005-07-01 05:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.