Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47218 - sys-apps/baselayout-1.8.7 net.eth0 broken for vlans
Summary: sys-apps/baselayout-1.8.7 net.eth0 broken for vlans
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-08 07:13 UTC by Andy Dustman
Modified: 2004-04-12 20:55 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 Andy Dustman 2004-04-08 07:13:51 UTC
In /etc/init.d/net.eth0, stop() was changed to shut down vlans like this:

        local vlan
        for vlan in $(ifconfig | grep -o "^${IFACE}\.[^ ]*"); do
                iface_stop ${IFACE}.${vlan}
                /sbin/vconfig rem ${IFACE} ${vlan} >${devnull}
        done

It mostly works, but you get errors like this:

# /etc/init.d/net.eth0 pause && /etc/init.d/net.eth0 start
eth0.eth0.17: error fetching interface information: Device not found
 * Bringing eth0.eth0.17 down...                                          [ ok ]ERROR: trying to remove VLAN -:eth0:- error: Operation not permitted
eth0.eth0.18: error fetching interface information: Device not found
 * Bringing eth0.eth0.18 down...                                          [ ok ]ERROR: trying to remove VLAN -:eth0:- error: Operation not permitted
eth0.eth0.21: error fetching interface information: Device not found
 * Bringing eth0.eth0.21 down...                                          [ ok ]ERROR: trying to remove VLAN -:eth0:- error: Operation not permitted
eth0.eth0.119: error fetching interface information: Device not found
 * Bringing eth0.eth0.119 down...                                         [ ok ]ERROR: trying to remove VLAN -:eth0:- error: Operation not permitted
 * Bringing eth0 down...                                                  [ ok ] * Re-caching dependency info (mtimes differ)...
 * Bringing eth0 up (0.0.0.0)...                                          [ ok ]ERROR: trying to add VLAN #119 to IF -:eth0:-  error: Invalid argument
 * Bringing eth0.119 up (128.192.119.33)...                               [ ok ] *   Setting default gateway (128.192.119.1)...                           [ ok ]ERROR: trying to add VLAN #17 to IF -:eth0:-  error: Invalid argument
 * Bringing eth0.17 up (172.17.100.2)...                                  [ ok ]ERROR: trying to add VLAN #18 to IF -:eth0:-  error: Invalid argument
 * Keeping kernel configuration for eth0.18
 *   eth0.18 received address 172.18.0.5
ERROR: trying to add VLAN #21 to IF -:eth0:-  error: Invalid argument
 * Bringing eth0.21 up (172.21.0.9)...                                    [ ok ]

It should be this:

        local vlan
        for vlan in $(ifconfig | grep -o "^${IFACE}\.[^ ]*"); do
                iface_stop ${vlan}
                /sbin/vconfig rem ${vlan} >${devnull}
        done

This works cleanly.
Comment 1 Andy Dustman 2004-04-09 07:15:14 UTC
1.8.8 needs this fix as well.
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-04-12 12:00:54 UTC
Thanks, I have it in my sources now, will commit and release a new baselayout later today
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-04-12 20:55:13 UTC
Fixed in baselayout-1.8.9, thanks!