search for: vlan_if

Displaying 1 result from an estimated 1 matches for "vlan_if".

Did you mean: vlan_id
2010 Aug 18
8
Patch fixing vlan handling when network-bridge script is used
...2:39 2010 +0100 +++ b/tools/hotplug/Linux/network-bridge Wed Aug 18 13:33:05 2010 +0200 @@ -119,6 +119,36 @@ fi } +handle_vlan_start() { + for vlan in `ls /proc/net/vlan/${netdev}* 2>/dev/null`; do + vlan_id=$(echo ${vlan} | sed -e "s/.*${netdev}.\(.*\)/\1/") + vlan_if=${netdev}.${vlan_id} + + get_ip_info ${vlan_if} + + vconfig rem ${vlan_if} + sleep 1 + vconfig add ${bridge} ${vlan_id} + + do_ifup ${bridge}.${vlan_id} + done +} + +handle_vlan_stop() { + for vlan in `ls /proc/net/vlan/${bridge}* 2>/dev/null`; do +...