| Summary: | sys-apps/baselayout-1.8.7 net.eth0 broken for vlans | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Andy Dustman <farcepest> |
| Component: | [OLD] Core system | Assignee: | Gentoo's Team for Core System packages <base-system> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | High | ||
| Version: | 1.4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
1.8.8 needs this fix as well. Thanks, I have it in my sources now, will commit and release a new baselayout later today Fixed in baselayout-1.8.9, thanks! |
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.