[Linux] RHEL / CentOS 6.x use Bonding(Teaming) NICs

step01. bonding module is not loaded by default
# modprobe –first-time bonding

step02. check
# lsmod | grep -i bond
# modinfo bonding

step03. Check the available interfaces on the server
# ip addrifconfig -a (e.g. I want to use eth0 & eth1)

step04. Shutdown interface
# ifdown eth0 && ifdown && eth1

step05. Configure a channel bonding interface
** eth0 **
vi /etc/sysconfig/network-scripts/ifcfg-eth0
——————————————————————
NAME=bond0-slave0
DEVICE=eth0
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
NM_CONTROLLED=no
——————————————————————

** eth1 **
vi /etc/sysconfig/network-scripts/ifcfg-eth1
——————————————————————
NAME=bond0-slave1
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
NM_CONTROLLED=no
——————————————————————

** bond0 **
vi /etc/sysconfig/network-scripts/ifcfg-bond0
——————————————————————
NAME=bond0
DEVICE=bond0
BONDING_MASTER=yes
TYPE=Bond
IPADDR=xx.xx.xx.xx
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
BONDING_OPTS="mode=active-backup miimon=100″
NM_CONTROLLED=no
——————————————————————

step06. create bond.conf
# vi /etc/modprobe.d/bond.conf
——————————————————————
alias bond0 bonding
——————————————————————

step07. Restart Network service
# service network restart

step08. up interface
# ifup eth0 && ifup eth1
# ifup bond0

step09.
# cat /proc/net/bonding/bond0

 

 

 

Reference :

  1. Red Hat Enterprise Linux 6 > Deployment Guide > 11.2.4. Channel Bonding Interfaces