IFENSLAVE(8)
π ifenslave(8) π
okay so bestie, let me put you onto something iconic β it's called ifenslave, and it's literally the main character of network bonding. we're talking manual page from 2004-04-09, and she's still serving. π
β¨ SYNOPSIS β¨
ifenslave [-acdfhuvV] [--all-interfaces] [--change-active] [--detach]
[--force] [--help] [--usage] [--verbose] [--version] master
slave ...
like, look at her go. all those flags? immaculate. π¦
π DESCRIPTION π
okay so here's the tea, bestie: ifenslave is a tool that lets you attach and detach slave network devices to a bonding device. no cap. π
a bonding device will act like a normal Ethernet network device to the kernel, but β and this is the slay part β it will send out the packets via the slave devices using a simple round-robin scheduler. it's giving load-balancing realness, literally identical to "channel bonding" or "trunking" techniques used in switches. the way that works? iconic. π§
β οΈ important vibe check: the kernel must have support for bonding devices for ifenslave to be useful. no kernel support, no slay. periodt. π
π OPTIONS π
-a,--all-interfacesβ shows off info about all the interfaces. every single one. π-c,--change-activeβ changes the active slave. switch it up, bestie. π-d,--detachβ removes slave interfaces from the bonding device. it's giving "you can't sit with us" energy. βοΈ-f,--forceβ forces actions to be taken if one of the specified interfaces appears not to belong to an Ethernet device. like, she does it anyway. no questions. π₯-h,--helpβ displays a help message and exits. the classic "help me help you" moment. π«Ά-u,--usageβ shows usage information and exits. just the basics, lowkey. πΈ-v,--verboseβ prints warning and debug messages. she's chatty and we love that for her. π£οΈ-V,--versionβ shows version information and exits. a little "who am i?" moment. π
if no options are given β like, none at all β the default action will be to enslave interfaces. that's the vibe. that's the default. β
π EXAMPLE π
okay bestie, here's how you actually do the thing. the following example shows how to setup a bonding device and enslave two real Ethernet devices to it. so iconic:
# modprobe bonding
# ifconfig bond0 192.168.0.1 netmask 255.255.0.0
# ifenslave bond0 eth0 eth1
like, modprobe first (obvi), then give bond0 an IP and netmask, then serve the enslavement. ate and left no crumbs. π
π AUTHOR π
ifenslave was originally written by Donald Becker <becker@cesdis.gsfc.nasa.gov>, and has since been updated by various kernel developers. legends only. π
this manual page was written by Guus Sliepen <guus@debian.org> for the Debian GNU/Linux system. queen behavior, fr fr. π
this queen was last updated on 2004-04-09! π
π stay bonded bestie! π
π¦ where this page comes from
- centos-stream 10: iputils 20240905-5.el10 Β· BSD-4-Clause-UC AND GPL-2.0-or-later
- centos-stream 9: iputils 20210202-15.el9 Β· BSD and GPLv2+
- fedora 43: iputils 20250605-1.fc43 Β· BSD-4-Clause-UC AND GPL-2.0-or-later
- fedora 44: iputils 20250605-2.fc44 Β· BSD-4-Clause-UC AND GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms