Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Bonding

Direct answer

Bonding combines several NICs into one logical interface (bond0) for redundancy or more bandwidth. Modes include active-backup (1), balance-xor, 802.3ad/LACP (4) and balance-alb.

When to use this

Use it for server link redundancy, or when a bond fails over badly or LACP does not form.

First 30 seconds

1. cat /proc/net/bonding/bond0 — mode, active slave, MII status per slave.

2. 802.3ad: partner MAC and aggregator ID the same on all slaves?

3. Switch side configured to match the mode?

4. Failover test: unplug one link and ping.

5. Persist in nmcli/netplan/networkd.

Operational verification

slaves enslaved → bond mode applied → link monitoring → traffic sent per mode → failover on link loss

Evidence · next step

For Linux Networking → Bonding, continue with the first unproven Topic check: Capture bond mode, member list, active/selected state and monitoring configuration. If that boundary is healthy, advance to the adjacent check: For 802.3ad, verify actor/partner LACP state and switch port-channel consistency. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it for server link redundancy, or when a bond fails over badly or LACP does not form.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

bond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workload

Healthy evidence: members and mode match design, monitoring detects failures, LACP partner/aggregator state is consistent where used, failover converges and representative workloads continue.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Capture bond mode, member list, active/selected state and monitoring configuration.

  • For 802.3ad, verify actor/partner LACP state and switch port-channel consistency.
  • Test member failure/recovery deliberately if validating redundancy, observing counters and convergence.
  • Verify representative application flows and return path after failover, not just bond carrier state.

Verification chain. bond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workload

Step 3 Commands Verify boundary
cat /proc/net/bonding/bond0
ip -d link show bond0
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: one member is silently inactive, switch mode mismatches host mode, hashing surprises throughput tests, or failover changes MAC/path behavior and breaks only established sessions.

Step 5 Common mistakes Narrow the fault
  • LACP mode on the host without LACP on the switch.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

802.3ad needs a matching LACP port-channel on the switch; active-backup needs nothing on the switch. Use miimon=100 for link monitoring. Check per-slave state in /proc/net/bonding/<bond>.

Key checks
  • cat /proc/net/bonding/bond0 — bond and slave status
  • ip -br addr — interfaces and addresses
  • ip route — routing table and default route
  • ip neigh — ARP/neighbour cache
  • ip route get <dest> — route, interface and source chosen for a destination
  • nmcli device status / networkctl — which tool manages each interface
ReferenceWhat it is1 section · depth on demand

Core model

Identify bond mode, members, primary/active slave, miimon or ARP monitoring and LACP state where applicable. Compare host mode with switch-side configuration. A bond being UP can hide a failed member, mismatched LACP partner or hashing behavior that impacts only specific flows.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

Bond status shows local aggregation state; switch-side channel consistency, per-flow distribution and application recovery must be verified separately.

In depth

Linux bonding modes and link monitoring

The bonding driver combines several interfaces into one logical interface for redundancy, load sharing or both. The kernel bonding documentation defines seven modes:

ModeNameSwitch requirementBehaviour
0balance-rrEtherChannel or trunkingRound-robin transmit; can reorder packets
1active-backupNoneOne active link; failover only
2balance-xorEtherChannel or trunkingTransmit by hash
3broadcast—Everything on every link; special cases only
4802.3adLACP on the switchDynamic aggregation, hash-based distribution
5balance-tlbNoneAdaptive transmit balancing
6balance-albNonetlb plus IPv4 receive balancing using ARP

Link monitoring (documentation)

The documentation states that miimon, or arp_interval with arp_ip_target, must be set. Without it, the bond never notices a failed link.

ParameterMeaning
miimon=100Check carrier every 100 ms (the suggested starting point)
arp_interval + arp_ip_targetCheck reachability of up to 16 IPv4 targets; don't combine with miimon
downdelay / updelayWait before disabling or enabling a link; multiples of miimon
lacp_rateslow (LACPDUs every 30 s, default) or fast (every second)
xmit_hash_policylayer2 (default), layer2+3, layer3+4, encap2+3, encap3+4, vlan+srcmac
primaryPreferred link in active-backup, tlb and alb
fail_over_macnone (default), active or follow

Checking the bond

host$ cat /proc/net/bonding/bond0
Bonding Mode: IEEE 802.3ad Dynamic link aggregation
Transmit Hash Policy: layer3+4 (1)
MII Status: up
MII Polling Interval (ms): 100
802.3ad info
LACP rate: fast
Slave Interface: nic0
MII Status: up
Link Failure Count: 0
Aggregator ID: 1
Slave Interface: nic1
MII Status: up
Link Failure Count: 2
Aggregator ID: 2
host$ ip -d link show bond0 | grep -o "bond mode [^ ]*"
host$ cat /sys/class/net/bond0/bonding/mode

Reading the example

The two members have different aggregator IDs, so they aren't in the same LACP aggregation. Only one of them carries traffic. That usually means the switch ports aren't in the same port channel, or one of them is not running LACP. Match this with show lacp neighbor on the switch.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Bonding is part of Linux Networking → Bonding. Linux bonding combines multiple slave interfaces into one logical interface with a selected mode and monitoring method; active member selection, LACP/static expectations, MAC behavior and failure detection determine effective redundancy and throughput.

Topic-specific state model. Linux bonding combines multiple slave interfaces into one logical interface with a selected mode and monitoring method; active member selection, LACP/static expectations, MAC behavior and failure detection determine effective redundancy and throughput.

Interpretation rule. - Bond interface UP ≠ all members healthy or correctly negotiated.

  • Both links carrier-up ≠ LACP aggregator/partner state is correct.
  • Two members ≠ one flow uses both links or doubles throughput.
  • Failover event complete ≠ existing sessions or upstream MAC tables recovered cleanly.

Quick reference

Bonding modes on Linux:

ModeNameSwitch config
0balance-rrStatic LAG
1active-backupNone
2balance-xorStatic LAG
4802.3ad (LACP)LACP port-channel
5balance-tlbNone
6balance-albNone
nmcli con add type bond con-name bond0 ifname bond0 bond.options 'mode=802.3ad,miimon=100,lacp_rate=fast,xmit_hash_policy=layer3+4'
nmcli con add type ethernet slave-type bond con-name bond0-p1 ifname eno1 master bond0
cat /proc/net/bonding/bond0          # aggregator IDs, partner MACs, link failures

LACP across two switches needs MLAG/stacking. teamd is deprecated in RHEL 9 — use bonding.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. Bond status shows local aggregation state; switch-side channel consistency, per-flow distribution and application recovery must be verified separately.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Bonding owns Linux link aggregation/failover semantics. Bridges/VLAN own higher/lower logical topology depending design; switch LAG configuration belongs to network infrastructure.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Linux Networking → Bonding. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/networking/index.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux bondingbond0 linuxLACP linux bondactive backup bond
Embedded reference data

Quick lookup tables

Bonding operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Bonding.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux bonding combines multiple slave interfaces into one logical interface with a selected mode and monitoring method; active member selection, LACP/static expectations, MAC behavior and failure detection determine effective redundancy and throughput.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host + namespace + exact flow → identify configuration owner/renderer → identify ifindex/interface + topology → inspect link/carrier → inspect addresses → inspect neighbor resolution → reproduce route/rule lookup → verify VLAN/bond/bridge/MTU as relevant → inspect packets/socket → verify return path → repeat original workload.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainbond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundaryBond status proves local aggregation state; switch-side channel consistency, per-flow distribution and application recovery must be verified separately.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux networking evidence can establish this proof path: bond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured namespace, interface, local kernel, L2/path or workload scope. Bond status proves local aggregation state; switch-side channel consistency, per-flow distribution and application recovery must be verified separately.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: confirm namespace and configuration owner, inspect ifindex/link/address/neighbor/route state for the exact flow, verify L2/MTU construction and packet movement, then test the listening service and return path before making additional changes.Continue to the next unresolved boundary while preserving the original test condition.

Bonding · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryBonding
Topic pathLinux Networking → Bonding
Runtime stateLinux bonding combines multiple slave interfaces into one logical interface with a selected mode and monitoring method; active member selection, LACP/static expectations, MAC behavior and failure detection determine effective redundancy and throughput.
Fast checks- Capture bond mode, member list, active/selected state and monitoring configuration. - For 802.3ad, verify actor/partner LACP state and switch port-channel consistency. - Test member failure/recovery deliberately if validating redundancy, observing counters and convergence. - Verify representative application flows and return path after failover, not just bond carrier state.
Verification chainbond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryBond status proves local aggregation state; switch-side channel consistency, per-flow distribution and application recovery must be verified separately. Boundary chain: process/socket namespace → source/rule/FIB → neighbor → netfilter/eBPF/qdisc → virtual/physical device → peer → return → application.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?