restarting bonded interface with vlans fails when there are bond settings
When restarting a bonded interface with vlans in the exmaple: http://wiki.alpinelinux.org/wiki/Vlan\#Example\_with\_vlans\_over\_bonding then will the bond-mode trigger an error.
The problem appears to be that when you do ifdown bond0, the link status of bond0 is not set to ‘down’. It is set to ‘up’ by the vlan script.
Possible solutions:
- always do ‘ip link set dev $BOND_MASTER down’ when ifdown
- let vlan try do ifdown when last vlan is taken down
(from redmine: issue id 2219, created on 2013-08-12, closed on 2013-09-02)
- Changesets:
- Revision 0a661e60 by Natanael Copa on 2013-08-12T16:52:31Z:
main/bonding: set link status to down
in case bonded interface is 'manual'
ref #2219
- Revision 72e8e8a3 by Natanael Copa on 2013-08-28T13:57:21Z:
main/bonding: set link status to down
in case bonded interface is 'manual'
fixes #2219