Operating System - Linux
1826373 Members
4451 Online
109692 Solutions
New Discussion

which interface is active in bond mode=1

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

which interface is active in bond mode=1

how to tell which interface is active in a bond when configured mode=1 (active/backup) ?

3 REPLIES 3
Matti_Kurkela
Honored Contributor
Solution

Re: which interface is active in bond mode=1

Examine the (virtual) files in /proc/net/bonding/ directory.

For example, reading /proc/net/bonding/bond0 might give you something like this:

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

MK
MK
Tim Nelson
Honored Contributor

Re: which interface is active in bond mode=1

Excellent !

Thanks Matti ! Appreciate all you help.
Gerardo Arceri
Trusted Contributor

Re: which interface is active in bond mode=1

Tim:
You can force which nic you want to be the primary active by using the primary=ethx parameter either on /etc/modprobe.conf or if you are using RHEL 5.X use the BONDING_OPTS keyword on ifcfg-bondX to specify the primary:
Eg:
BONDING_OPTS="mode=1 miimon=100 primary=eth0"


Hope it was helpful.. keep these points coming