User guide
3–InfiniBand
®
Cluster Setup and Administration
IB Bonding
IB0054606-02 A 3-7
Red Hat EL5 and EL6
The following is an example for bond0 (master). The file is named
/etc/sysconfig/network-scripts/ifcfg-bond0:
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
MTU=65520
BONDING_OPTS="primary=ib0 updelay=0 downdelay=0"
The following is an example for ib0 (slave). The file is named
/etc/sysconfig/network-scripts/ifcfg-ib0:
DEVICE=ib0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
TYPE=InfiniBand
PRIMARY=yes
The following is an example for ib1 (slave 2). The file is named
/etc/sysconfig/network-scripts/ifcfg-ib1:
DEVICE=ib1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
TYPE=InfiniBand
Add the following lines to the RHEL 5.x file /etc/modprobe.conf, or the
RHEL 6.x file /etc/modprobe.d/ib_qib.conf:
alias bond0 bonding
options bond0 miimon=100 mode=1 max_bonds=1