Managing HP Serviceguard A.11.20.20 for Linux, May 2013

DEVICE=bond0
IPADDR=192.168.1.1
NETMASK=255.255.255.0
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
For Red Hat 5 and Red Hat 6 only, add the following line to the ifcfg-bond0file:
BONDING OPTS=miimon=100 mode=1
2. Create an ifcfg-ethn file for each interface in the bond. All interfaces should have SLAVE
and MASTER definitions. For example, in a bond that uses eth0 and eth1, edit the
ifcfg-eth0 file to appear as follows:
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
Edit the ifcfg-eth1 file to appear as follows:
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
For Red Hat 5 and Red Hat 6 only, add a line containing the hardware (MAC) address of
the interface to the corresponding ifcfg-ethn slave file, for example:
HWADDR=00:12:79:43:5b:f4
3. Add the following lines to /etc/modprobe.conf:
alias bond0 bonding options bond0 miimon=100 mode=1
Use MASTER=bond1 for bond1 if you have configured a second bonding interface, then add
the following after the first bond (bond0): options bond1 -o bonding1 miimon=100
mode=1
NOTE: During configuration, you need to make sure that the active slaves for the same bond on
each node are connected the same hub or switch. You can check on this by examining the file
/proc/net/bonding/bond<x>/info on each node. This file will show the active slave for
bond x.
5.1.8.2 Restarting Networking
Restart the networking subsystem. From the console of either node in the cluster, execute the
following command on a Red Hat system:
/etc/rc.d/init.d/network restart
NOTE: It is better not to restart the network from outside the cluster subnet, as there is a chance
the network could go down before the command can complete.
The command prints bringing up network statements.
If there was an error in any of the bonding configuration files, the network might not function
properly. If this occurs, check each configuration file for errors, then try to restart the network again.
5.1 Preparing Your Systems 141