Introduction to Network Interface Bonding
Managing a reliable business network requires removing single points of failure. In many office environments, a single ethernet cable or network interface card failure can disrupt operations. Network interface bonding, also known as port trunking or link aggregation, combines multiple physical network interfaces into a single logical interface. This tutorial explains how to set up active-backup bonding on your business servers to maintain network availability.
At netbit tech, we help local organizations in netbit khuzdar build robust systems. Implementing network bonding is a fundamental step toward stable business operations.
Prerequisites for Bonding Network Interfaces
Before modifying your system network configuration, ensure you have the following requirements ready:
- A server running a modern Linux distribution (such as Ubuntu Server or CentOS).
- At least two physical network interface cards (NICs) connected to your network switches.
- Root or sudo privileges on the target server.
- A backup configuration or console access in case network connectivity drops during setup.
Step 1: Installing and Loading the Bonding Kernel Module
Linux handles network bonding through the bonding kernel module. Most modern distributions include this module by default, but you must verify that it loads correctly.
- Log into your server using an SSH terminal or direct console connection.
- Run the following command to load the bonding module manually:
sudo modprobe bonding - To ensure the module loads automatically on every system boot, open your modules configuration file using a text editor:
sudo nano /etc/modules - Add the word
bondingon a new line at the end of the file, then save and exit.
Step 2: Configuring Network Interfaces Using Netplan
Modern Ubuntu server installations use Netplan for network management. You can configure your bonded interface by editing the YAML configuration files located in /etc/netplan/.
- Open your active Netplan configuration file with root privileges:
sudo nano /etc/netplan/01-netcfg.yaml - Define your physical interfaces (for example,
eth0andeth1) without individual IP addresses. - Create a new bonded interface named
bond0and assign your static IP details there. - Set the bonding mode to active-backup (mode 1) for reliable failover protection.
Here is an example configuration structure:
network:
version: 2
ethernets:
eth0:
dhcp4: no
eth1:
dhcp4: no
bonds:
bond0:
interfaces: [eth0, eth1]
addresses: [192.168.1.50/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]
parameters:
mode: active-backup
primary: eth0
mii-mon: 100
Apply the changes safely by running sudo netplan try. If your connection remains stable, confirm the application.
Step 3: Verifying the Bond Status
After applying your network configuration, you must verify that the bond is active and that your interfaces are operating correctly. This step ensures your IT infrastructure is prepared for a sudden link failure.
- Run the command
cat /proc/net/bonding/bond0to inspect the current state of the bond. - Verify that the bonding mode displays as
active-backup. - Check that both physical interfaces are listed as up and participating in the bond.
- Simulate a physical failure by unplugging one network cable while monitoring continuous ping traffic to your server IP address. Network connectivity should continue without interruption.
Proper configuration prevents unexpected downtime and keeps your office systems running smoothly. For specialized assistance with your server setups, rely on professional support from netbit software solutions.
Partner with NetBit Tech and Software House Today
Maintaining stable network connectivity and secure server environments requires consistent technical oversight. As your business grows, having a dependable technology partner ensures your local network and digital operations remain efficient, secure, and fully optimized. Let our experienced professionals at NetBit tech and software house handle your complex system requirements so you can focus entirely on growing your business. Get in touch with us today through netbit.pk to discuss your next infrastructure upgrade.
Reader comments.
Share your question, suggestion or experience related to this article.
No comments yet
There are no approved comments on this article yet. You can be the first person to leave one.