interfaces-bond(5)
π
interfaces-bond(5) β the bonding/LAG glow-up for your interfaces(5) file
okay so this is a page from the File Formats Manual, section 5 bestie β it's the bonding/LAG extensions for the interfaces(5) file format. buckle up π
β¨ NAME β¨
interfaces-bond β Bonding/LAG extensions for the interfaces(5) file format π«Ά
πΈ DESCRIPTION πΈ
So the Linux implementation for Ling Aggregation Groups (LAGs) is called bonding, and a LAG interface itself is called a bond. literally the same thing, different nickname, iykyk. The Linux bonding implementation supports active/passive setups, classical EtherChannels, and LACP (802.3ad). highkey iconic π
The following options set up bonding/LAG interfaces with ifupdown-ng.
Also go peek at https://www.kernel.org/doc/Documentation/networking/bonding.rst for more information β¨
π₯ BOND-RELATED OPTIONS π₯
heads up bestie: a bond interface must have at least one member port set. All the other options are optional β cute little extras π
bond-memberslist of interfaces β Denotes the physical member interfaces to form this LAG. For compatiblity to ifupdown1 and ifupdown2,slavesas well asbond-slavesare an alias for this option. This option is required πbond-modemode β Denotes the mode for this LAG. The mode can be given as a string or as a numerical value. Valid values arebalance-rr(0),active-backup(1),balance-xor(2),broadcast(3),802.3ad(4),balance-tlb(5),balance-alb(6). The default isbalance-rr.bond-xmit-hash-policypolicy β Denotes the hash policy/algorithm used to distribute packets across the physical links. This only applies for modesbalance-alb,balance-tlb,balance-xor, and802.3ad. The policy can be given as a string or as a numerical value. Valid values arelayer2(0),layer3+4(1),layer2+3(2),encap2+3(3), andencap3+4(4). The default islayer2.bond-min-linksnumber β Denotes the minimum number of available links before turning on carrier.bond-miimoninterval β Denotes the MII link monitoring frequency in milliseconds. This determines how often the link state of each slave is inspected for link failures. A value of zero disables MII link monitoring. The default is0.bond-use-carrierbool β Denotes wether miimon uses MII or ethtool ioctls vs. thenetif_carrier_ok()call to determine member link status. A value of1enables the use ofnetif_carrier_ok(), a value of0will use the deprecated MII / ETHTOOL ioctls. The default is1.bond-updelaydelay β Denotes the delay in milliseconds before considering link up, in milliseconds. The default is0.bond-downdelaydelay β Denotes the delay in milliseconds before considering link down, in milliseconds. The default is0.bond-all-slaves-activebool β Denotes wether duplicate frames (received on inactive ports) should be dropped (0) or delivered (1). The default is0.bond-packets-per-slavenum_packets β Denotes the number of packets to transmit through a member before moving to the next one. When set to0then a slave is chosen at random. The valid range is0 - 65535; the default value is1. This option has effect only inbalance-rrmode.bond-lp-intervalinterval β Denotes the interval in seconds between sending learning packets to each members peer switch. The valid range is1 - 0x7fffffff; the default value is1. This option has effect only in modesbalance-tlbandbalance-alb.bond-resend-igmpnumber β Denotes the number of IGMP membership reports to send after a link failover happend. The valid range is0 - 255; a value of0prevents the IGMP membership report from being issued in response to the failover event. The default is1. This option is useful for bonding modesbalance-rr,active-backupbalance-tlbandbalance-alb, in which a failover can switch the IGMP traffic from one slave to another.
π¦ LACP-RELATED OPTIONS π¦
The following options are only valid in LACP (802.3ad) mode. no exceptions babe π
bond-lacp-raterate β Denotes the rate of LACPDU requested from the peer. The rate can be given as a string or as a numerical value. Valid values areslow(0) andfast(1). The default isslow.bond-ad-selectmode β Denotes the802.3adaggregation selection logic. The mode can be given as a string or as a numerical value. Valid values arestable(0),bandwidth(1) andcound(2). The default isstable.bond-ad-actor-sys-priopriority β Denotes the LACP system priority. The allowed range is1 - 65535. The default value is65535.bond-ad-user-port-keykey β Denotes the upper 10 bits of the port-key. The values can be from0 - 1023. The default is0.
π§ ACTIVE/BACKUP-RELATED OPTIONS π§
The following options are only valid in active/passive setups, bestie π
bond-primaryinterface β Denotes the primary member interface. The specified device will always be the active slave while it is available. The primary option is only valid foractive-backup,balance-tlbandbalance-albmode.bond-primary-reselectpolicy β Denotes the reselection policy for the primary member interface. Valid values arealways(0),better(1), andfailure(2). The default isalways.bond-fail-over-macmode β Denotes whetheractive-backupmode should set all member interfaces to the same MAC address at enslavement (the traditional behavior), or, when enabled, perform special handling of the bond's MAC address in accordance with the selected policy. Valid values arenone(0),active(1),follow(2). The default isnone.bond-num-grat-arpcount β Denotes the number of peer notifications (gratuitous ARPs and unsolicited IPv6 Neighbor Advertisements) to be issued after a failover event. The valid range is0 - 255; the default is1.bond-num-unsol-nacount β This is an alias forbond-num-grat-arpβ¨bond-peer-notif-delayinterval β Denotes the interval in milliseconds, between each peer notification (gratuitous ARP and unsolicited IPv6 Neighbor Advertisement) issued after a failover event. The default is0which means to match the value of the link monitor interval.
π ARP-RELATED OPTIONS π
The following options configure ARP link monitoring. The ARP monitor works by periodically checking the slave devices to determine whether they have sent or received traffic recently. Regular traffic is generated via ARP probes issued for the addresses specified by the bond-arp-ip-target option. so it's literally just poking your friends to see if they're still there π
bond-arp-intervalinterval β Denotes the frequency in milliseconds to send ARP probes.bond-arp-ip-targetIPv4 address β Denotes the IP addresses to use as ARP monitoring peers whenbond-arp-intervalis >0.bond-arp-validatemode β Specifies whether or not ARP probes and replies should be validated in any mode that supports arp monitoring, or whether non-ARP traffic should be filtered (disregarded) for link monitoring purposes. Valid values arenone(0),active(1),backup(2),all(3),filter(4),filter_active(5), andfilter_backup(6). The default isnone.bond-arp-all-targetsmode β Denotes the number ofbond-arp-ip-targetsthat have to be reachable to consider the member interface to be up. Valid options areany(0) andall(1). The default isany.
π EXAMPLES π
A bond using two links and LACP (802.3ad) β this is the moment, the main character config π
auto bond0
iface bond0
bond-members eth0 eth1
bond-mode 802.3ad
bond-xmit-hash-policy layer3+4
bond-min-links 1
#
address 192.0.2.42/24
address 2001:db8::42/64
π AUTHORS π
Maximilian Wilhelm <max@sdn.clinic> β thank you king π«Ά
so yeah, that's the whole page bestie, no cap, every single flag accounted for π
this wasinterfaces-bond(5), dated2026-05-10, and it ate, periodt π β¨π
π¦ where this page comes from
- alpine 3.24: ifupdown-ng-doc 0.13.0-r0 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms