Skip to content

Instantly share code, notes, and snippets.

@cdesch
Created April 3, 2015 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdesch/bc050cd1324df40f469e to your computer and use it in GitHub Desktop.
Save cdesch/bc050cd1324df40f469e to your computer and use it in GitHub Desktop.
Ubuntu Network Interace Teaming
ethtool
ifup
ifdown
ifconfig -a
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
bond-master bond0
bond-primary eth0
#Secondard network interface
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet dhcp
bond-mode 6 #bond mode
bond-miimon 100 #frequency (in milliseconds) the bond monitors the link for failures in milliseconds
bond-lacp-rate 1 #the rate in which we will ask the partner interface to transmit packets. 1 for every second, 0 for every 30 seconds
bond-slaves eth0 eth1
sudo ifdown bond0 && sudo ifdown eth0 && sudo ifdown eth1
sudo ifup eth0 && sudo ifup eth1 && ifup bond0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment