Administrator’s Command Line Guide

Table Of Contents
6.4. Setting Up Network Bonding
byte jumbo frames). Such settings require switch configuration and often lead to human errors. 10
Gbit/s network adapters, on the other hand, need to be configured to use jumbo frames to achieve
full performance.
3. For maximum efficiency, use the balance-xor bonding mode with the layer3+4 hash policy. If you want
to use the 802.3ad bonding mode, also configure your switch to use the layer3+4 hash policy.
6.4 Setting Up Network Bonding
Bonding multiple network interfaces together provides the following benefits:
1. High network availability. If one of the interfaces fails, the traffic will be automatically routed to the
working interface(s).
2. Higher network performance. For example, two Gigabit interfaces bonded together will deliver about 1.7
Gbit/s or 200 MB/s 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 Gbit/s throughput.
To configure a bonding interface, do the following:
1. Create the /etc/modprobe.d/bonding.conf file containing the following line:
alias bond0 bonding
2. Create the /etc/sysconfig/network-scripts/ifcfg-bond0 file containing the following lines:
DEVICE=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=no
IPADDR=xxx.xxx.xxx.xxx
PREFIX=24
67