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)
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)
Added to our svn repo - will appear in baselayout-1.12.2
Fixed