Bonding in SUSE Enterprise Linux
Release:
SUSE Enterprise Linux 10
Problem:
Configure the bond0 interface with the interface eth0 and eth1
Solution:
1) Create a bond0 interface file in the /etc/sysconfig/network directory.
# vi /etc/sysconfig/network/ifcfg-bond0
BONDING_MASTER='yes'
BONDING_MODULE_OPTS='mode=1 miimon=100 use_carrier=0'
BOOTPROTO='static'
IPADDR='192.168.10.19'
NETMASK='255.255.255.0'
STARTMODE='onboot'
USERCONTROL='no'
BONDING_SLAVE0='bus-pci-0000:03:00.0'
BONDING_SLAVE1='bus-pci-0000:03:00.1'
Note: “BONDING_SLAVE” value is available in the ethernet configuration file as a parameter “_nm_name” and also “mode=1” indicates active-backup policy ( mode=0 indicates Round-robin policy).
2) configure both the ethernet interface eth0 and eth1 like below
# vi /etc/sysconfig/network/ifcfg-eth-id-xx:xx:xx:xx:xx:xx
BOOTPROTO='none'
STARTMODE='off'
USERCONTROL='no'
3) Restart the network service
# service network restart
4) To check the status of the bond0 interface use the below command
# cat /proc/net/bonding/bond0