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
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.