Sunday, October 28, 2012

Bonding / Teaming in Ubuntu 12.10

For those who has 4 x Gbe (Intel NIC) configuration with 1 x IPMI network, here is what you can do:

  1. Install ifenslave
  2. Load up the driver for bonding (will add in info later, check reference link as for now)
  3. Locate "interface" /etc/network
  4. Change the content accordingly based on this sample:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

# Adaptive Load Balancing Teaming
auto eth0
iface eth0 inet manual
bond-master bond0

auto eth1
iface eth1 inet manual
bond-master bond0

auto eth2
iface eth2 inet manual
bond-master bond0

auto eth3
iface eth3 inet manual
bond-master bond0

auto bond0
iface bond0 inet static
bond-mode balance-alb
bond-miimon 100
bond-slaves eth0 eth1 eth2 eth3
  • then use command sudo ifdown XXX to bring down all your existing network connection
  • next, sudo ifup bond0
  • in certain circumstance, you might need to do sudo -s, then bring up all the four Gbe LAN by using ifup eth0, ifup eth1, etc
  • to check whether the bonded network loaded up properly, you can go /proc/net/bonding/ and check the bond0
Some useful references:

No comments:

Post a Comment