Bonding

From openSUSE


In SUSE Linux >= 10, bonding can be set up by way of creating a /etc/sysconfig/network/ifcfg-bondN file (where N is an arbitrary integer) containing the usual definitions of a network interface. BONDING_MASTER is needed to identify the interface as a bonding one.

BONDING_MASTER=yes
BONDING_SLAVE_1='eth0'
BONDING_SLAVE_2='eth1'

IPADDR=192.168.44.1/24
STARTMODE=onboot
BOOTPROTO=static

The interface is then controllable via ifup/ifdown/rcnetwork. Be sure that there are no interface addresses on the slave interfaces, that is, /etc/sysconfig/network/ifcfg-eth0 and ifcfg-eth1 should not have an IPADDR line.

Further information is available in the ifcfg-bonding(5) manpage. Also refer please with this bugreport: https://bugzilla.novell.com/show_bug.cgi?id=572367.

SUSE ifup scripts don't currently support using numbers for setting modes like described in kernel docs ($kernel_src_path/Documentation/networking/bonding.txt), so use theirs full names e.g.

BONDING_MODULE_OPTS="mode=802.3ad xmit_hash_policy=layer3+4 lacp_rate=fast"

rather then numbers:

BONDING_MODULE_OPTS="mode=4 xmit_hash_policy=1 lacp_rate=1"