Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392971 - sys-apps/openrc-0.9.4 fails to set MTU on a renamed VLAN device
Summary: sys-apps/openrc-0.9.4 fails to set MTU on a renamed VLAN device
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: OpenRC Team
URL:
Whiteboard: openrc:oldnet
Keywords:
Depends on:
Blocks: openrc-tracker
  Show dependency tree
 
Reported: 2011-12-02 23:55 UTC by Simon Casey
Modified: 2013-04-25 23:08 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 Simon Casey 2011-12-02 23:55:45 UTC
When creating a VLAN device using the following in /etc/conf.d/net, the net.eth0 init script fails due to the 'mtu_vlan4="1496"' option.

 vlans_eth0="4"
 config_eth0="10.0.0.1/24"
 vlan4_name="vlan4"
 config_vlan4="10.0.1.1/24"
 mtu_vlan4="1496"
 


 * Bringing up interface eth0
 *   10.0.0.1/24 ... [ ok ]
 *   Waiting for IPv6 addresses ... [ ok ]
 *   Adding VLAN 4 to eth0
 *   Error: either "dev" is duplicate, or "1496" is a garbage.
           [ !! ]

If the mtu line is removed, then the interface and VLAN are created and started, but the mtu needs setting seoarately in a postup command.

If the interface is not renamed, as in the following configuration, then the interfaces start fine and the mtu is set correctly, but the interface is not named as I would like.

 vlans_eth0="4"
 config_eth0="10.0.0.1/24"
 config_eth0_4="10.0.1.1/24"
 mtu_eth0_4="1496"
 
I have also tried the following, and the interfaces start without errors but the mtu is not set to 1496.

 vlans_eth0="4"
 config_eth0="10.0.0.1/24"
 vlan4_name="vlan4"
 config_vlan4="10.0.1.1/24"
 mtu_eth0_4="1496"
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2011-12-13 06:54:19 UTC
Fixed in git, commit ac2391e