====== ifenslave ======
* [[Bonding]]
* [[Gentoo Networking]]
* [[Ubuntu Networking]]
* [[ifconfig]]
* [[ifup]]
* [[ip]]
* [[https://www.kernel.org/doc/Documentation/networking/bonding.txt|Linux Ethernet Bonding Driver HOWTO]] - kernel.org
* [[https://wiki.debian.org/Bonding|Debian wiki entry]]
The ''ifenslave'' program is used to set up bonding for network devices. This must be used in conjunction with support for bonding in the Linux kernel.
Program syntax is ''ifenslave [options] master slave [slave..]''.
Options include:
* **-a** - show information about all devices
* **-c** - change active state
* **-d** - remove slave interface from the bonding device
* **-f** - force action, even if one of the interfaces doesn't look like an Ethernet device
* **-v** - verbose output
An example of creating a bonding device, using two interfaces, where ''eth0'' is the master and ''eth1'' is the slave:
ifenslave eth0 eth1
The new device name is ''bond0'', and can be set as normal using ''ifconfig'', ''ip'', ''ifup'', etc.
Check the bonding interface:
cat /proc/net/bonding/bond0