For my notes.. If you ever wanted to check the status of a bonded interface configure in Linux (esp RHEL), you can check the status by running the following command
[root@serverxyz bin]# cat /proc/net/bonding/bond0
i.e. assuming the name of your bond interface is bond0.
Output from the command
Ethernet Channel Bonding Driver: v3.4.0 (October 7, 2008) Bonding Mode: fault-tolerance (active-backup) Primary Slave: eth3 (primary_reselect always) Currently Active Slave: eth3 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth3 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:10:18:6e:b8:1a Slave Interface: eth0 MII Status: up Link Failure Count: 0 Permanent HW addr: 00:21:5e:11:34:32
The configuration files involved are
/etc/sysconfig/network-scripts/ifcfg-bond0 (Bond Interface)
DEVICE=bond0 IPADDR=10.10.40.26 NETMASK=255.255.255.0 ONBOOT=yes BOOTPROTO=none USERCTL=no GATEWAY=10.10.40.1 NETWORK=10.10.40.0 BROADCAST=10.10.40.255 TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-eth3 (Primary Interface)
DEVICE=eth3 BOOTPROTO=none ONBOOT=yes HWADDR=00:10:18:6e:b8:1a MASTER=bond0 SLAVE=yes TYPE=Ethernet USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth0 (Secondary Interface)
DEVICE=eth0 HWADDR=00:21:5e:11:34:32 USERCTL=no ONBOOT=yes MASTER=bond0 SLAVE=yes BOOTPROTO=none TYPE=Ethernet
Additional NIC bonding configuration.
In /etc/modprobe.conf file, you have to add the following entries. We need to specify, which NIC is going to act as Primary.
alias bond0 bonding
options bond0 miimon=100 mode=1 primary=eth3
Conversely, in RHEL-based systems you can also put an “ETHTOOL_OPTS=” parameter in the ifcfg-bond* file that defines the settings for that individual bond port instead of having to put it in the /etc/modprobe.d/bonding.conf file.
Thank you Eric!
More details on these bonding options is available in this URL:
http://www.cyberciti.biz/howto/question/static/linux-ethernet-bonding-driver-howto.php
Thx for sharing this Ashok.
Check this link for a utility to enquire bond status:
http://bondedinterface.blogspot.in/
Utility can be found at:
https://github.com/ankkzz/getBondStatus/
Thank you for sharing the link.
Never give up your life man never give up life
whoah this blog is magnificent i like studying your articles.
Keep up the great work! You realize, lots of persons are hunting round for this information, you could aid them greatly.