Setting Up Network Bonding
Bonding multiple network interfaces together provides the following benefits:
- High network availability. If one of the interfaces fails, the traffic will be automatically routed to the working interface(s).
- Higher network performance. For example, two Gigabit interfaces bonded together will deliver about 1.7 Gbps or 200 MBps throughput. The required number of bonded storage network interfaces may depend on how many storage drives are on the Hardware Node. For example, a rotational HDD can deliver up to 1 Gbps throughput.
To configure a bonding interface, do the following:
Create the
/etc/modprobe.d/bonding.conffile containing the following line:1alias bond0 bondingCreate the
/etc/sysconfig/network-scripts/ifcfg-bond0file containing the following lines:1 2 3 4 5 6 7 8 9 10 11DEVICE=bond0 ONBOOT=yes BOOTPROTO=none IPV6INIT=no USERCTL=no BONDING_OPTS="mode=balance-xor xmit_hash_policy=layer3+4 miimon=300 downdelay=300 \ updelay=300" NAME="Storage net0" NM_CONTROLLED=yes IPADDR=xxx.xxx.xxx.xxx PREFIX=24Make sure to enter the correct values in the
IPADDRandPREFIXlines.The
balance-xormode is recommended, because it offers both fault tolerance and better performance. For more details, see the documents listed below.Make sure the configuration file of each Ethernet interface you want to bond (e.g.,
/etc/sysconfig/network-scripts/ifcfg-eth0) contains the lines shown in this example:1 2 3 4 5 6 7 8 9DEVICE="eth0" BOOTPROTO=none NM_CONTROLLED="yes" ONBOOT="yes" TYPE="Ethernet" HWADDR=xx:xx:xx:xx:xx:xx MASTER=bond0 SLAVE=yes USERCTL=noBring up the
bond0interface:1# ifup bond0Use
dmesgoutput to verify thatbond0and its slave Ethernet interfaces are up and links are ready.