Define Which Interfaces Are the Parts of Which Bonds
How to find which network interfaces are part of a bonded interface?
All OnApp versions
To check the interfaces, run the following command:
grep "MASTER" /etc/sysconfig/network-scripts/*
When using ifconfig, some interfaces may show up as a SLAVE. These are the parts of the bonded interfaces. To determine which bond they are part of, skip the files with the .bak or other extensions and ignore the lines that start with #, as they are comments.
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
In the example above,
eth3 were parts of
bond1, but currently they are not, since they are only mentioned as a comment or in the .bak files.
eth1 are the parts of
eth5 relate to
eth7 are included in
Additionally, you can check it in the configuration file:
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