IFENSLAVE(8)

πŸ“¦
this version Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

πŸ’… 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