Course contentsShow
← Linux
Lesson 1237 of 1,81910. Network Administration and Kernel StacksFree lesson

Advanced Interface Bonding Topologies

Deploy complex bonding setups for multi-switch redundancy.

In this lesson, you will learn how to architect high-availability network bonds that survive the failure of an entire physical switch.

When we move beyond simple server-to-switch bonding, we must account for the reality that hardware fails. A common mistake is connecting both ports of a single server into the same physical switch; if that switch loses power, your bond becomes useless. Advanced topologies mitigate this by using Multi-Switch Redundancy, where the server’s interface bond is split across two physically separate switches that share a common backplane or control plane (often via MLAG or vPC).

Designing the Topology

To achieve this, you need a bonding mode that supports Layer 2/3 traffic distribution across distinct hardware paths. While balance-rr is rarely used in production due to packet reordering issues, 802.3ad (LACP) is the industry standard. When using LACP across two switches, the switches must be configured in a "Peer" or "Stack" mode so they appear as a single logical entity to your Linux host.

Configuring the Linux Bond

If your upstream switches are correctly clustered, the Linux configuration treats the pair as a single LACP trunk. Here is how you define a bond interface using netplan or standard ifcfg parameters to ensure LACP handles the switch-level distribution:

# Example: LACP bond across redundant switch fabric
bonds:
  bond0:
    interfaces: [eth0, eth1]
    parameters:
      mode: 802.3ad
      mii-monitor-interval: 100
      lacp-rate: fast
      transmit-hash-policy: layer3+4

Critical Considerations

When implementing this, keep three things in mind:

  1. LACP Rate: Always set lacp-rate to fast (1-second intervals). In redundant switch setups, this reduces the "black hole" time during a switch reboot or link failure from 30 seconds down to roughly 3 seconds.
  2. Hash Policy: Use layer3+4 (IP and Port). This ensures that even if you have one large flow, you are utilizing the bandwidth of the port-channel efficiently across the redundant switches.
  3. STP Awareness: Ensure the upstream switches have spanning-tree portfast or edge-port enabled for the bond ports to prevent the link from blocking during initialization.

Key Takeaway: Multi-switch redundancy turns your bonding topology into a fault-tolerant fabric, provided you ensure your bonding mode is LACP-compliant and your switch-peer links are configured for high-speed synchronization.