Skip to main content
Tutorials

How to Properly Configure Network Bonding on Business Servers | NetBit

Learn how to properly configure network bonding on business servers to maximize network uptime, improve data throughput, and prevent single points of failure.

Server room rack with structured cables and managed switches | NetBit Software House and Technology | netbit.pk

Understanding Network Bonding for Business Servers

For growing businesses in Pakistan, server reliability is non-negotiable. Whether you are running local inventory systems, custom web applications, or managing heavy office traffic, network downtime costs money. One of the most effective ways to secure high availability is through network bonding (also known as port trunking or NIC teaming). By combining multiple physical network interface cards (NICs) into a single logical interface, network bonding provides redundancy and increased bandwidth.

At NetBit software house, our system administrators frequently implement bonding configurations for clients in Khuzdar and across Pakistan to ensure continuous business operations. In this tutorial, we look at how to properly set up network bonding on enterprise Linux servers.

Prerequisites and Planning

Before modifying network configurations, ensure you have the following in place:

  • A dedicated business server running a standard Linux distribution (such as Ubuntu Server or CentOS/RHEL).
  • At least two physical Ethernet ports (e.g., eth0 and eth1) connected to your office switch.
  • A managed network switch that supports link aggregation (IEEE 802.3ad), depending on the bonding mode you choose.
  • Root or sudo access to the server command line.

Choosing the Right Bonding Mode

Linux supports several bonding modes, each designed for different network requirements:

  • Mode 0 (balance-rr): Round-robin policy for fault tolerance and load balancing. Requires switch support.
  • Mode 1 (active-backup): One slave is active at a time. If it fails, another takes over. Does not require special switch configuration, making it ideal for standard setups.
  • Mode 4 (802.3ad): Dynamic link aggregation. Combines aggregates for maximum throughput and redundancy. Requires a managed switch.

For most standard office environments, Mode 1 (active-backup) or Mode 4 (LACP) offers the best balance of simplicity and reliability.

Step-by-Step Configuration Guide

Follow these steps to configure a basic active-backup bond on an Ubuntu Server environment using Netplan.

Step 1: Install the Ifenslave Package

Log into your server terminal and install the bonding kernel module manager if it is not already present:

sudo apt update
sudo apt install ifenslave -y

Step 2: Edit Your Netplan Configuration

Open your Netplan configuration file located in the /etc/netplan/ directory using a text editor like nano:

sudo nano /etc/netplan/01-netcfg.yaml

Configure your bonding interface, replacing interface names and IP addresses with your network details:

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      dhcp4: no
    eth1:
      dhcp4: no
  bonds:
    bond0:
      interfaces: [eth0, eth1]
      addresses: [192.168.1.100/24]
      gateway4: 192.168.1.1
      nameservers:
        addresses: [8.8.8.8, 1.1.1.1]
      parameters:
        mode: active-backup
        primary: eth0
        mii-monitor-interval: 100

Step 3: Apply and Test the Configuration

Save the file and apply the network changes safely using the test command:

sudo netplan try

If the connection remains stable, confirm the changes. Verify that your bonding interface is active by running:

cat /proc/net/bonding/bond0

This command will display the current status, active slave interface, and link integrity.

Partner with NetBit for Robust Server Solutions

Proper server infrastructure requires precise planning, secure hardware setup, and professional maintenance. If your business needs dependable server deployment, structured networking, custom software development, or comprehensive IT support, netbit tech is ready to assist. Contact netbit khuzdar today to discuss how our expert team can optimize your digital operations and keep your business running without interruption.

Discussion

Reader comments.

Share your question, suggestion or experience related to this article.

0 Approved Comments

No comments yet

There are no approved comments on this article yet. You can be the first person to leave one.

Keep Reading

Related insights.

View all articles
WhatsApp