Where can I find information about the status of my bonded NIC interfaces?

Solution Verified - Updated

Environment

Red Hat Enterprise Linux, all versions

Issue

You need to access status information about your bonded NIC interfaces.

Resolution

The current state of a bonded interface can be found in /proc/net/bonding/bond<N>. For example, for bond0:

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: 2.6.1 (October 29, 2004)
Bonding Mode: load balancing (round-robin)
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Link Failure Count: 1

Slave Interface: eth0
MII Status: up
Link Failure Count: 1

Bonding Mode: shows the current mode. For more information on available  bonding modes, refer to: What are the different modes available for bonded interfaces (bonding) in Red Hat Enterprise Linux version 3? This content is not included.This content is not included.http://kbase.redhat.com/faq/docs/DOC-8108
Currently Active Slave: shows which interface is currently being used. This is usually useful only in active-backup mode, since load-balancing modes will alternate.
MII Status: shows whether each interface is currently up or down. In the first section, it shows whether the bond itself is currently up.
Link Failure Count: shows the number of times a link has failed while in use. This can be help to identify a failing NIC.

Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.