Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 137029 - Network init script should be able to handle subdevices
Summary: Network init script should be able to handle subdevices
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-06-16 15:31 UTC by A. Clark
Modified: 2006-08-01 02:18 UTC (History)
0 users

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


Attachments
Allows specific vlans to be controlled (vlan.patch,733 bytes, patch)
2006-06-16 16:59 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description A. Clark 2006-06-16 15:31:38 UTC
Under Debian (and I believe RedHat), you can bring up/shut down an network subinterface by using their ifup/ifdown scripts.  For example, if I had just recently configured an eth0:0 device, I can bring it up by doing an "ifup eth0:0", similarly with a vlan'ed device, "ifup eth0.100"

However, under Gentoo, one can't do this with the net.lo(/ethX) script, you have to do a full device restart if you want new subdevices incorporated in a Gentooized fashion.

So, this is a feature request to have a Gentooized script that can deal with this more easily than having to go through the manual process of, say, a vconfig then ifconfig so that you don't interrupt your already-established device.

(An organization I work for is using a couple of Gentoo boxes as BGP routers, and we can't afford the spanning-tree downtime that accompanies an /etc/init.d/net.eth0 restart)
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-06-16 16:59:07 UTC
Created attachment 89355 [details, diff]
Allows specific vlans to be controlled

OK, this patch allows this behaviour. You need to create a symlink of net.eth0.5 where 5 is the vlan id 5. If you use vlan id name padding or other options then rename the link accordingly.

To control specific vlans on boot they need to depend on the master interface like so in /etc/conf.d/net

depend_eth0.5() {
   need net.eth0
}

Please test against baselayout-1.12.1
(note, file to patch is in /lib/rcscripts/net)
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-06-18 10:57:29 UTC
Added to our svn repo - will appear in baselayout-1.12.2
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-08-01 02:18:19 UTC
Fixed