Created
September 2, 2013 13:03
-
-
Save aw/6412641 to your computer and use it in GitHub Desktop.
Linux Bonding + VLANS coming up too slowly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You know that time where you have VLANs on a bonded interface, and it takes | |
# forever for the bonds to come up? (forever = ~2 minutes).. | |
# | |
# A nice fix, which requires you to set bond-master | |
# on your eth0/eth1 interfaces, as opposed to bond-slave | |
# on your bond0 interface. | |
# Example below: | |
auto eth0 | |
iface eth0 inet manual | |
bond-master bond0 | |
bond-primary eth0 eth1 | |
auto eth1 | |
iface eth1 inet manual | |
bond-master bond0 | |
bond-primary eth0 eth1 | |
auto bond0 | |
iface bond0 inet manual | |
bond-slaves none | |
bond-mode 802.3ad | |
bond-miimon 100 | |
bond-downdelay 200 | |
bond-updelay 200 | |
pre-up /sbin/ip link set bond0 up | |
post-down /sbin/ifenslave -d bond0 eth1 eth0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment