Use it for server link redundancy, or when a bond fails over badly or LACP does not form.
Bonding
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.
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.
slaves enslaved → bond mode applied → link monitoring → traffic sent per mode → failover on link loss
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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.
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.
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>.
cat /proc/net/bonding/bond0— bond and slave statusip -br addr— interfaces and addressesip route— routing table and default routeip neigh— ARP/neighbour cacheip route get <dest>— route, interface and source chosen for a destinationnmcli 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:
| Mode | Name | Switch requirement | Behaviour |
|---|---|---|---|
| 0 | balance-rr | EtherChannel or trunking | Round-robin transmit; can reorder packets |
| 1 | active-backup | None | One active link; failover only |
| 2 | balance-xor | EtherChannel or trunking | Transmit by hash |
| 3 | broadcast | — | Everything on every link; special cases only |
| 4 | 802.3ad | LACP on the switch | Dynamic aggregation, hash-based distribution |
| 5 | balance-tlb | None | Adaptive transmit balancing |
| 6 | balance-alb | None | tlb 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.
| Parameter | Meaning |
|---|---|
miimon=100 | Check carrier every 100 ms (the suggested starting point) |
arp_interval + arp_ip_target | Check reachability of up to 16 IPv4 targets; don't combine with miimon |
downdelay / updelay | Wait before disabling or enabling a link; multiples of miimon |
lacp_rate | slow (LACPDUs every 30 s, default) or fast (every second) |
xmit_hash_policy | layer2 (default), layer2+3, layer3+4, encap2+3, encap3+4, vlan+srcmac |
primary | Preferred link in active-backup, tlb and alb |
fail_over_mac | none (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.
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:
| Mode | Name | Switch config |
|---|---|---|
| 0 | balance-rr | Static LAG |
| 1 | active-backup | None |
| 2 | balance-xor | Static LAG |
| 4 | 802.3ad (LACP) | LACP port-channel |
| 5 | balance-tlb | None |
| 6 | balance-alb | None |
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
Bonding operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Bonding.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin 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 chain | bond configuration → member attachment → mode/monitoring → partner/LACP or active-backup selection → logical carrier/MAC → hashing/failover → packet path → workload | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Bond 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 evidence | Correlated 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 → workload | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It 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 check | Continue 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 boundary | Bonding |
|---|---|
| Topic path | Linux Networking → Bonding |
| Runtime state | 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. |
| 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 chain | bond 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 boundary | Bond 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 rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |