ifenslave is a utility for attaching and detaching slave network devices to a bonding device. Bonding is putting multiple physical Ethernet devices into a single logical one, what is often termed as Link aggregation/Trunking/Link bundling. You can attach eth0, for example, to a bonding device bond0 by:
# ifenslave bond0 eth0
The ifenslave utility belongs to the iputils package.
1. To show information of all the inerfaces:
# ifenslave -a # ifenslave --all-interfaces
2. To change the active slave:
# ifenslave -c bond0 eth1 # ifenslave --change-active bond0 eth1
3. To remove the slave interface from the bonding device:
# ifenslave -d eth1 # ifenslave --detach bond0 eth1
4. To show master interface info:
# ifenslave bond0
5. To set the bond device down and automatically release all the slaves:
# ifenslave bond1 down
6. To get the help for the ifenslave:
# ifenslave -h # ifenslave --help
7. To get the usage info:
# ifenslave -u # ifenslave --usage
8. To set to verbose mode:
# ifenslave -v # ifenslave --verbose
9. To get the version info:
# ifenslave -V # ifenslave --version