Candid photograph of a Linux server terminal with a soft olive-green glow against a dark slate background, conveying a calm technical atmosphere.

Step-by-step guides for system administrators — covering command-line basics, web server setup, and preparation material for technical interviews.

Browse Tutorials

Configuring network bonding with nmcli on Fedora

Network bonding presents two or more physical Ethernet adapters as one logical interface in NetworkManager. On Fedora, nmcli can create the bond, attach member ports, assign addressing, and persist the setup across reboots. The logical interface is commonly called bond0 and can provide automatic link failover, although throughput depends on the bonding mode, switch, traffic pattern, and hardware.

Bonding does not simply add two internet connections. active-backup keeps one healthy member in use and is straightforward for resilience. IEEE 802.3ad, or LACP, can distribute traffic, but the switch must provide a matching aggregation group. A bonded host cannot create LACP support that an ISP or campus switch has not been configured to provide.

For Australian administrators, that distinction matters. NBN services from providers such as Telstra, Optus, or TPG commonly present one Ethernet WAN handoff, so two ports connected to residential NBN equipment do not create a bonded uplink. Business Ethernet and multiple WAN products vary, and LACP or independent routing must be confirmed before configuration begins.

The Fedora workflow identifies adapter names, removes competing NetworkManager ownership, creates the bond and member profiles, then assigns addressing and tests failover. Teams operating in Sydney, Melbourne, and Brisbane often keep server logs in UTC while using AEST or AEDT in schedules, so troubleshooting should confirm both event order and local timestamps.

Choosing a bonding mode

Start with active-backup unless the switch design calls for aggregation: run nmcli connection add type bond con-name bond0 ifname bond0, then nmcli connection modify bond0 bond.options "mode=active-backup,miimon=100". The miimon=100 option checks carrier every 100 milliseconds. Use names reported by nmcli device status; Fedora often shows enp1s0 and enp2s0, but those names can change.

For LACP, use mode=802.3ad and configure a matching channel group on the access switch. Aggregation helps parallel workloads more than a single client, whereas active-backup maintains one predictable path. Australian plans quoted in Mbit/s do not guarantee doubled WAN throughput: bonding cannot bypass provider shaping or turn a standard single-WAN NBN service into two aggregated circuits.

Preparing member interfaces

Identify each member with nmcli device status, ip -br link, and nmcli connection show --active. Create a member using nmcli connection add type ethernet con-name bond0-port1 ifname enp1s0 master bond0 slave-type bond ipv4.method disabled ipv6.method disabled, then repeat with the second adapter's actual name.

If Fedora auto-created a profile for an adapter, avoid two active owners. Check its exact name with nmcli connection show, then use nmcli connection down "Wired connection 1" and nmcli connection delete "Wired connection 1" for that example, substituting the real name. A former standalone profile must not retain its own IP address.

Before changing a remote host, arrange console or out-of-band access. A separate SSH tunneling guide can protect forwarded application traffic, but it cannot stop an ordinary remote login from dropping when its member link fails.

Applying addresses and bond options

Give bond0, not the physical ports, the host's layer-3 configuration. A static example is nmcli connection modify bond0 ipv4.method manual ipv4.addresses "192.168.20.40/24" ipv4.gateway "192.168.20.1" ipv4.dns "1.1.1.1,9.9.9.9". Replace the example with the site's actual IPv4 values and add IPv6 settings when required.

For DHCP, use nmcli connection modify bond0 ipv4.method auto ipv4.never-default no; member profiles should remain IP-disabled. This keeps the lease and default route with bond0. Independent DHCP clients or static addresses on members can create duplicate routes and inconsistent source addresses, so verify them before activation.

Bond timing belongs in the same bond.options value. Adding updelay=5000,downdelay=5000 suppresses rapid transitions during brief carrier loss, while primary=enp1s0 selects a preferred adapter in active-backup mode. Tune these values to the switch and power-protection behaviour.

Activating and checking the bond

Activate bond0-port1 and bond0-port2, then the logical bond: nmcli connection up bond0-port1, nmcli connection up bond0-port2, and nmcli connection up bond0. If activation reports another owner, inspect nmcli connection show --active instead of repeatedly toggling profiles. With member IPs disabled, traffic should be selected through bond0.

Use cat /proc/net/bonding/bond0 to confirm the mode, member names, and active member. Then check nmcli device status, ip -br address show bond0, and ip route. The bond should be active, carry its address, and own the default route. ping -c 4 1.1.1.1 tests forwarding separately from DNS, which can be checked with getent hosts.

Correlate events using journalctl -u NetworkManager -b and journalctl -k -b | grep -i bond. Australian teams often standardise logs in UTC while schedules use AEST or AEDT. Confirm the host setting with timedatectl, and avoid changing the timezone solely to match bond events unless that is an explicit policy.

Testing failover safely

Run a controlled failover test, especially on remote systems. Note the active member in /proc/net/bonding/bond0, disconnect it, and verify that the standby becomes active while bond0 retains its address and route. Reconnect the member and confirm that it returns as standby. DHCP clients may need to renew their lease after failover, while static addressing gives the clearest continuity test.

Where the host provides an internal web application, include an application-level check. The Thucydides web tests exercise the browser-facing path separately from operating-system state, helping expose DNS, proxy, certificate, or routing faults that a healthy interface status would miss.

Record the active port, failover time, recovery state, and user-visible interruption alongside the NetworkManager journal. As the next concrete step, run cat /proc/net/bonding/bond0 on the target Fedora host and record the current active member before the controlled test.