:::: MENU ::::

How to Set up Network Bonding on CentOS 5.x Tutorial

centosEver wonder what to do with those extra NIC’s in your CentOS server? Why not bond them to add that extra throughput or load balancing and fault tolerance.

What is Bonding and it’s Modes?

Bonding, the process in which multiple NIC’s are combined to function as one interface

Modes of bonding:

mode=0 (Balance-rr) – This mode provides load balancing and fault tolerance.
mode=1 (active-backup) – This mode provides fault tolerance.
mode=2 (balance-xor) – This mode provides load balancing and fault tolerance.
mode=3 (broadcast) – This mode provides fault tolerance.
mode=4 (802.3ad) – This mode provides load balancing and fault tolerance.
mode=5 (balance-tlb) – Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.
mode=6 (Balance-alb) – Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.

Read more….

Note: Always append extra configuration in case of a rollback.

Preliminary Note:

We will be using the CentOS 5.2 YUM server in this tutorial:

* server1.example.co.za (IP 10.0.0.100): YUM Repo server Bond0

We need to increase the throughput of our local YUM repo so we’re bonding four of it’s six NIC’s

Configuring the bond

We’ll be using mode=6 (Balance-alb)

Append the following onto the end out your modprobe config file


  • Justin Edmands

    #Fake MAC address
    HWADDR=00:00:01:00:01:00didn’t need that line in CentOS 5.8. Thanks. This was straight forward and it works.
     

  • Dakkon

    This was a great tutorial. What is the meaning and use of miimon=100?

  • vaibhav kanchan

    miimon
    : Specifies the MII link monitoring frequency in milliseconds. A value
    of 0 disables the MII link monitroing. A value of 100 is recommended.