Lab hardware: HP ProLiant DL360 G5 running CentOS |
|
|
If you want to create a bonding on two interface (i.e. eth0 and eth1) you should do the following :
Edit /etc/sysconfig/network-scripts/ifcfg-eth0
Edit /etc/sysconfig/network-scripts/ifcfg-eth1
Copy /etc/sysconfig/network-scripts/ifcfg-eth1 to /etc/sysconfig/network-scripts/ifcfg-bond0 to keep the same file permission by executing the following commands :
cd /etc/sysconfig/network-scripts |
copy ifcfg-eth1 ifcfg-bond0 |
Edit /etc/sysconfig/network-scripts/ifcfg-bond0
IPADDR=10.100.100.1
GATEWAY=10.0.0.254 |
Edit /etc/modprobe.conf adding the following line :
Reboot your system to let modules be loaded or load it manually with the following command :
If you haven’t rebooted your system, restart your network with the following command :
/etc/init.d/network restart |
You should check if bonding is working you should look at /proc/net/bonding/bond0 with the following command :
cat /proc/net/bonding/bond0 |
and you should see something similar to the following :
Ethernet Channel Bonding Driver: v3.2.4 (January 28, 2008) |
Bonding Mode: load balancing (round-robin) |
MII Polling Interval (ms): 0 |
Permanent HW addr: 00:15:17:88:5a:3c |
Permanent HW addr: 00:15:17:88:5a:3d |
DONE