We moved this page to our Documentation Portal. You can find the latest updates here. |
Issue
How do I find which network interfaces are the part of a bonded interface?
Environment
All OnApp versions
Resolution
Run this command in order to check the interfaces:
grep "MASTER" /etc/sysconfig/network-scripts/*
Additional Info
When using ifconfig, some interfaces may show up as SLAVE. These are the parts of the bonded interfaces.To determine which bond they are a part of, we can use the following (Skip any files with .bak or other extensions, and ignore the lines that start with #, as they are comments)
Example output:
ifcfg-eth0:MASTER=bond0
ifcfg-eth1:MASTER=bond0
ifcfg-eth2:#MASTER=bond1
ifcfg-eth2.bak:MASTER=bond1
ifcfg-eth3:#MASTER=bond1
ifcfg-eth3.bak:MASTER=bond1
ifcfg-eth4:MASTER=bond1
ifcfg-eth5:MASTER=bond1
ifcfg-eth6:MASTER=bond3
ifcfg-eth7:MASTER=bond3
Here, eth2 and eth3 used to be a part of bond1, but are currently not, since they are only mentioned where commented or in in.bak files. eth0 and eth1 are the part of the bond0, eth4 and eth5 - of the bond1, and the eth6 and eth7 are bond3.
Or, you can check it in the configuration file:
cat /proc/net/bonding/bond_name
Example output:
cat /proc/net/bonding/appbond
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth3
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0
Slave Interface: eth3
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: 18:66:da:6e:1d:34
Slave queue ID: 0
Slave Interface: eth2
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: 18:66:da:6e:1d:32
Slave queue ID: 0