Setting up LACP (Link Aggregation Control Protocol) on Debian is a practical way to boost network throughput and add redundancy, especially for production servers or demanding environments. By bonding two or more network interfaces, you can combine their bandwidth and ensure network availability even if one link fails.
All our bare metal servers are delivered with fully compatible network interfaces, making it easy to enable LACP for maximum performance and reliability.
π Requirements
Debian 10/11/12
Two or more physical NICs (e.g.,
eno1
,eno2
)Root or sudo access
β Step 1: Install bonding module and ifenslave
Make sure the bonding driver and tools are installed:
sudo apt update
sudo apt install ifenslave
π‘ Note: The ‘ifenslave’ package is not installed by default on Debian.
If you face issues installing it from the repository, you can manually download it from:
https://packages.debian.org/search?keywords=ifenslave
β Step 2: Load the bonding kernel module
echo "bonding" | sudo tee -a /etc/modules
sudo modprobe bonding
β Step 3: Configure network interfaces
Edit the network configuration file:
sudo nano /etc/network/interfaces
Example configuration:
auto bond0
iface bond0 inet static
address YOUR_SERVER_IP
netmask YOUT_SERVER_MASK
gateway YOUR_GATEWAY
dns-nameservers YOUR_DNS
bond-mode 802.3ad
bond-miimon 100
bond-downdelay 200
bond-updelay 200
bond-lacp-rate fast
bond-slaves eno1 eno2
# Slaves
auto ens1
iface eno1 inet manual
bond-master bond0
auto eno2
iface eno2 inet manual
bond-master bond0
π§© Replace:
YOUR_SERVER_IP
β your serverβs IP addressYOUR_GATEWAY
β your default gatewayYOUR_DNS
β your preferred DNS
β Step 4: Restart networking
sudo systemctl restart networking
β Step 5: Verify bonding
cat /proc/net/bonding/bond0
You should see:
Bonding Mode: IEEE 802.3ad
Slave interfaces
Link status
Aggregator ID
π§ Optional: Make sure the bonding module loads at boot
Already done via /etc/modules
, but you can confirm:
cat /etc/modules | grep bonding
π Need Help?
If you’re unable to configure LACP using Netplan on Ubuntu, please don’t hesitate to contact our technical support by clicking here. We’re ready to help you!