IFENSLAVE(8)

πŸ“¦ version 2.10ubuntu4, in ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– IFENSLAVE πŸ’–

okay bestie, gather round, because ifenslave from the System Manager's Manual is literally about to become your new hyperfixation ✨


✨ NAME ✨

ifenslave β€” attach and detach slave network devices to a bonding device πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

ifenslave [-acdfhuvV] [--all-interfaces] [--change-active] [--detach]
          [--force] [--help] [--usage] [--verbose] [--version] master
          slave ...

🌸 DESCRIPTION 🌸

so like, ifenslave is the tool that attaches and detaches slave network devices to a bonding device. fr fr, that's the whole job. 🫢

here's the vibe: a bonding device acts like a totally normal Ethernet network device to the kernel, but the way it actually sends out packets is via the slave devices, using a simple round-robin scheduler. and the way that gives you simple load-balancing?? identical to the "channel bonding" or "trunking" techniques switches use. it's giving ✨main character networking✨, no cap. πŸ‘‘

πŸ’€ okay but important: your kernel must have support for bonding devices or ifenslave is literally useless to you. vibe check your kernel first, bestie.

πŸ’… OPTIONS πŸ’…

  • -a, --all-interfaces β€” show info about all the interfaces πŸ‘€
  • -c, --change-active β€” change the active slave πŸ”„
  • -d, --detach β€” removes slave interfaces from the bonding device, bye bestie πŸ‘‹
  • -f, --force β€” force actions to be taken if one of the specified interfaces appears not to belong to an Ethernet device. sometimes you just gotta be a little pushy πŸ’ͺ
  • -h, --help β€” display a help message and exit πŸ†˜
  • -u, --usage β€” show usage information and exit πŸ“–
  • -v, --verbose β€” print warning and debug messages, so you actually know what's happening πŸ—£οΈ
  • -V, --version β€” show version information and exit 🏷️
⭐ psst: if you give no options at all, the default action is to enslave interfaces. iconic default behavior tbh.

🌈 EXAMPLE 🌈

here's how you set up a bonding device and enslave two real Ethernet devices to it, step by step, bestie 🧚

# modprobe bonding
# ifconfig bond0 192.168.0.1 netmask 255.255.0.0
# ifenslave bond0 eth0 eth1

slay. three lines and you're bonded. πŸ“


πŸ‘‘ AUTHOR πŸ‘‘

Guus Sliepen <guus@debian.org> β€” the actual legend who wrote this πŸ’œ


and that's the whole page, fr fr πŸ’– Debian GNU/Linux, dated 2012-07-13, and yeah the manual name is IFENSLAVE(8) because of course it is. go bond something, bestie πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from