How to Set Up Network Bonding/Teaming on AlmaLinux/Rocky Linux

Network bonding/teaming combines multiple network interfaces for redundancy or increased throughput — this guide covers setup on AlmaLinux/Rocky Linux using NetworkManager, the default network management tool.

When This Is Relevant for a VPS

Most standard VPS instances have a single network interface, making this less commonly relevant than in dedicated server/bare-metal contexts — but some providers offer multiple network interfaces, and this guide is relevant if your specific VPS configuration includes them.

Bonding vs Teaming: Two Similar Approaches

Both combine multiple interfaces into one logical interface; "bonding" is the older kernel-level approach, "teaming" is a newer, more flexible userspace implementation — NetworkManager on current AlmaLinux/Rocky Linux supports both, with teaming generally being the more modern recommended approach.

Common Bonding/Teaming Modes

ModePurpose
Active-BackupRedundancy — one interface active, other as failover
Round-Robin/Load BalanceIncreased throughput by distributing traffic across interfaces

Creating a Team Interface with nmcli

sudo nmcli connection add type team con-name team0 ifname team0 config '{"runner": {"name": "activebackup"}}'

Adding Physical Interfaces to the Team

sudo nmcli connection add type ethernet con-name team0-eth0 ifname eth0 master team0
sudo nmcli connection add type ethernet con-name team0-eth1 ifname eth1 master team0

Configuring IP Addressing on the Team Interface

sudo nmcli connection modify team0 ipv4.addresses 203.0.113.10/24
sudo nmcli connection modify team0 ipv4.gateway 203.0.113.1
sudo nmcli connection modify team0 ipv4.method manual

Activating the Configuration

sudo nmcli connection up team0
sudo nmcli connection up team0-eth0
sudo nmcli connection up team0-eth1

Verifying Team Status

sudo teamdctl team0 state

Testing Failover (Active-Backup Mode)

sudo nmcli connection down team0-eth0

Verify connectivity continues uninterrupted through the remaining active interface, confirming failover actually works as intended before relying on it in production.

Considerations for a VPS Specifically

Unlike a physical server with genuinely separate network cables/switches, a VPS's "multiple interfaces" may still ultimately traverse shared underlying host infrastructure — verify with your provider whether their specific multi-interface offering provides genuine redundancy benefit for your use case, or primarily serves a different purpose (like network segmentation).

Common Errors

Team interface configured but no connectivity — verify both underlying physical interfaces are properly enslaved to the team, and that IP configuration is applied to the team interface itself, not mistakenly left on an individual member interface.

Continue Reading

Browse more articles in AlmaLinux & Rocky Linux.

  • network teaming almalinux, network bonding rocky linux, nmcli team interface, networkmanager bonding rhel
  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

AlmaLinux vs Rocky Linux vs CentOS: What Happened to CentOS?

If you're choosing a RHEL-compatible Linux distribution for your VPS, understanding the CentOS...

How to Get Started with AlmaLinux/Rocky Linux on a VPS

This guide covers the essential first steps after deploying a new AlmaLinux or Rocky Linux VPS...

How to Use dnf: The Package Manager for AlmaLinux & Rocky Linux

dnf (Dandified YUM) is the package manager for AlmaLinux, Rocky Linux, and other RHEL-family...

How to Configure firewalld on AlmaLinux/Rocky Linux

firewalld is the default firewall management tool on AlmaLinux and Rocky Linux, using a...

How to Install Nginx on AlmaLinux/Rocky Linux

This guide covers installing and configuring Nginx on AlmaLinux or Rocky Linux, including the...