Created
October 13, 2014 06:57
-
-
Save josqu4red/d771c583e6a2caf968ab to your computer and use it in GitHub Desktop.
LACP Bonding Linux
This file contains 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
auto lo | |
iface lo inet loopback | |
auto bond0 | |
iface bond0 inet manual | |
slaves eth0 eth1 | |
bond_mode 802.3ad | |
bond_miimon 100 | |
bond_downdelay 200 | |
bond_updelay 200 | |
bond_lacp_rate fast | |
bond_xmit_hash_policy layer3+4 | |
# zone infra | |
auto bond0.101 | |
iface bond0.101 inet static | |
vlan_raw_device bond0 | |
address 10.1.0.32 | |
netmask 255.255.254.0 | |
post-up ip route add 10.1.0.0/16 via 10.1.1.254 | |
pre-down ip route del 10.1.0.0/16 via 10.1.1.254 | |
# TODO remove once network is fully setup | |
post-up ip route add 10.0.0.0/8 via 10.1.1.254 | |
pre-down ip route del 10.0.0.0/8 via 10.1.1.254 | |
source-directory /etc/network/interfaces.d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment