Welcome to Part 2 of our Network Bonding series! In Part 1 (Multi-Homed Dedicated Server Setup), we covered the basics of building a redundant network in Ubuntu using standard MII monitoring. If you haven't read it, we highly recommend starting there. Today, we are upgrading that setup for strict production environments using ARP Monitoring and expanding our guide to include Red Hat-based distributions (RHEL, AlmaLinux, Rocky Linux).
Network Bonding (also known as Link Aggregation or Redundant Uplinks) is the process of combining two or more Network Interface Cards (NICs) into a single logical interface. If one cable, port, or switch fails, the network traffic seamlessly transitions to the backup interface, ensuring zero downtime.
For production servers, configuring redundant uplinks is not optionalβit is a critical requirement for High Availability (HA).
This comprehensive Part 2 guide covers how to set up robust network bonding on Linux dedicated servers, focusing on the highly reliable Active-Backup mode, and utilizing ARP Monitoring for flawless failover.
What You'll Learn
1. Understanding Network Bonding Modes
2. Failover Detection: Why We Upgrade to ARP Monitoring
3. How to Configure Active-Backup Bonding in Ubuntu (Netplan)
4. How to Configure Bonding in RHEL / AlmaLinux / Rocky Linux (nmcli)
5. Validating and Testing the Bond
1. Understanding Network Bonding Modes
While Linux supports several bonding policies, enterprise dedicated servers primarily rely on two modes:
-
Mode 1 (Active-Backup): The gold standard for failover reliability. Only one network interface (the Active port) routes traffic at a time. The second interface remains in standby mode. If the active link fails, the backup takes over instantly. Advantage: It requires absolutely zero special configuration on the data center's network switches.
-
Mode 4 (802.3ad / LACP): Used for bandwidth aggregation (e.g., combining two 1Gbps links for 2Gbps throughput) and fault tolerance. Disadvantage: It requires the upstream switches to support and have LACP enabled. If spanning across two separate switches, it requires complex vPC or MLAG setups.
Note: Just like in Part 1, this tutorial focuses on Mode 1 (Active-Backup), as it provides the most universally compatible and resilient failover architecture.
2. Failover Detection: Why We Upgrade to ARP Monitoring
To trigger a failover, the server needs a mechanism to detect that a link has failed. In our previous guide, we used MII monitoring. Here is why we are upgrading to ARP for production environments:
-
MII Monitoring (Media Independent Interface) - The Basic Method: This method only checks the physical "link state" (whether the port light is on). The Flaw: If the upstream switch experiences a software freeze or routing issue, the physical link light remains on, but data stops flowing. MII will not trigger a failover, leading to a localized outage.
-
ARP Monitoring (Address Resolution Protocol) - The Enterprise Standard: The superior method. The server actively pings a target IP (usually the Default Gateway) at a set interval. If the server stops receiving ARP replies, it assumes the path is dead and instantly switches to the backup cable. Always use ARP monitoring in production.
3. How to Configure Active-Backup Bonding in Ubuntu (Netplan)
Modern Ubuntu releases use Netplan for network management. You will need to edit your .yaml configuration file, typically found in /etc/netplan/.
Step 1 & 2: Identify interfaces and open configuration
Identify your network interface names (e.g., eno1 and eno2) using the ip a command, then open your Netplan configuration file:
sudo nano /etc/netplan/01-netcfg.yaml
Step 3: Apply the advanced bonding configuration
Apply the following configuration. Notice how we use arp-monitor-interval and arp-ip-targets instead of MII. Replace the IP addresses and MAC address with your specific server details:
network:
version: 2
renderer: networkd
ethernets:
eno1:
dhcp4: no
eno2:
dhcp4: no
bonds:
bond0:
interfaces: [eno1, eno2]
addresses: [192.168.10.50/24] # Replace with your Server IP
routes:
- to: default
via: 192.168.10.1 # Replace with your Gateway IP
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
parameters:
mode: active-backup
primary: eno1
arp-monitor-interval: 100
arp-ip-targets: [192.168.10.1] # Pings the Gateway to verify link health
macaddress: 00:11:22:33:44:55 # Use the actual MAC address of eno1
Step 4: Apply and save the configuration
sudo netplan apply
4. How to Configure Bonding in RHEL / AlmaLinux / Rocky Linux (nmcli)
Red Hat-based distributions utilize NetworkManager (nmcli). Execute the following commands as root to build your bonded interface.
Step 1: Create the Bond Interface and Assign IP/ARP Settings
nmcli connection add type bond con-name bond0 ifname bond0 \
bond.options "mode=active-backup,arp_interval=100,arp_ip_target=192.168.10.1" \
ipv4.method manual ipv4.addresses 192.168.10.50/24 ipv4.gateway 192.168.10.1
Step 2: Bind the Physical Interfaces (Slaves) to the Bond
(Assuming your physical interfaces are eno1 and eno2)
nmcli connection add type ethernet slave-type bond con-name bond0-port1 ifname eno1 master bond0
nmcli connection add type ethernet slave-type bond con-name bond0-port2 ifname eno2 master bond0
Step 3: Bring the Interfaces Online
nmcli connection up bond0-port1
nmcli connection up bond0-port2
nmcli connection up bond0
5. Validating and Testing the Bond
Once configured, you must verify that the bonding is active and that ARP monitoring is successfully tracking the gateway. Run the following command to monitor the bond status in real-time:
watch -n 1 cat /proc/net/bonding/bond0
This output will display the active interface, the status of the backup interface, and confirm if the ARP target is being reached successfully.
The Real-World Failover Test
To guarantee your setup is production-ready, perform a physical failover test:
Start a continuous ping to your server from a remote machine (
ping <your-server-ip> -t).Physically unplug the Active network cable from the server.
Observe the ping output. The connection should resume via the backup cable in less than a second, with zero to minimal packet loss.
Discover BytesRack Dedicated Server Locations
BytesRack servers are available around the world, providing diverse options for hosting websites. Each region offers unique advantages, making it easier to choose a location that best suits your specific hosting needs.

Media Stream Solutions
Gaming Solutions
E-Commerce Solutions
VPN Server Solutions
GPU Server Solutions
Financial Solutions
Security Solutions