HP Serviceguard for Linux Version A.11.20.00 Deployment Guide, August 2012

15
These steps must be performed on each server, using the appropriate IP and MAC addresses..
In this example, we show the content of the 3 configuration files in the /etc/sysconfig/network-scripts
directory required to create the bonded interface. The ifcfg-eth# files may already exist, but the
ifcfgbond0 file probably does not exist.
1. Change directory:
cd /etc/sysconfig/network-scripts
2. Create ifcfg-bond0 and add the IP address and other network addresses according to your
environment as well as the other fields listed here, for example:
DEVICE=bond0
IPADDR=16.89.84.247
NETMASK=255.255.255.128
NETWORK=16.89.84.128
BROADCAST=16.89.84.255
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
BONDING_OPTS='miimon=100 mode=1'
NOTE: There is no space between the key-value pair variables. For example, there must be
no space between DEVICE (key) and bond0 (value) pair.
3. Edit the ifcfg-ethN file to contain the following content. Remove existing entries, if any,
except for “DEVICE” and “HWADDR”. Make sure that the HWADDR field matches the
specific MAC address for the card, do not use the value listed here. Following is an example
for ifcfg-eth2:
DEVICE=eth2
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:14:C2:C0:44:C5
4. Edit the ifcfg-ethN file to contain the following content. Remove existing entries, if any,
except for “DEVICE” and “HWADDR”. Make sure that the HWADDR field matches the
specific MAC address for the card, do not use the value listed here. Following is an example
for ifcfg-eth3:
DEVICE=eth3
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
HWADDR=00:14:C2:C0:44:C4
5. Edit /etc/modprobe.conf to add the following lines (the second and third lines shown here
must be in one line):
alias bond0 bonding
install bond0 /sbin/modprobe tg3; /sbin/modprobe e1000;
/sbin/modprobe –-ignore-install bonding o bond0
NOTE: You may see an error while shutting down bond0, since it previously didn’t exist.
For example:
/etc/sysconfig/network-scripts/ifdown-eth: line 101:
/sys/class/net/bond0/bonding/slaves: No such file or
directory
6. Restart the network from console:
/etc/init.d/network restart
NOTE: You may see an error while shutting down bond0, since it previously did not exist: