Network Bonding in linux

1. Add the following line in /etc/modprobe.conf
vi /etc/modprobe.conf
alias bond0 bonding
2. Create the channel bonding interface fileĀ  ifcfg-bond0 in the /etc/sysconfig/network-scripts/ directory
vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=xxx.xxx.xxx.xxx
NETMASK=255.255.255.0
USERCTL=no
BOOTPROTO=none
ONBOOT=yes
BONDING_OPTS="mode=1 miimon=50"
3. Configure the ethernet interfaces (eth0 and eth1) in the file /etc/sysconfig/network-scripts/ifcfg-eth0 (eth1)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0 (eth1)
BOOTPROTO=none
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
4. Restart the network service
service network restart
5. In order to check the bonding status check the following file
cat /proc/net/bonding/bond0

Leave a comment