LACP (Link Aggregation Control Protocol) is an excellent solution for anyone seeking higher network performance and redundancy on dedicated infrastructure. By bonding multiple network interfaces, you can combine their bandwidth and ensure continuous connectivity even if one link fails.
All our bare metal servers are shipped with network interfaces ready for LACP configuration, so you can take full advantage of this feature for mission-critical applications.
📌 Requirements
-
Ubuntu Server 20.04/22.04+
-
Two or more physical NICs (e.g.,
eno1
,eno2
) -
Switch configured for LACP (mode active/passive)
-
Root or
sudo
access
✅ Step 1: Identify Your Network Interfaces
Run:
ip link show
✅ Step 2: Backup Existing Netplan Configuration
sudo cp /etc/netplan/*.yaml /etc/netplan/backup.yaml
✅ Step 3: Create a New Netplan Configuration with Bonding
Edit the Netplan YAML file (replace the filename if needed):
sudo nano /etc/netplan/01-netcfg.yaml
Paste and adjust the following:
network:
version: 2
renderer: networkd
ethernets:
eno1: {}
eno2: {}
bonds:
bond0:
interfaces: [eno1, eno2]
parameters:
mode: 802.3ad
mii-monitor-interval: 100
transmit-hash-policy: layer3+4
dhcp4: no
addresses: YOUR_SERVER_IP/CIDR
gateway4: YOUR_GATEWAY
nameservers:
addresses: 1.1.1.1
🧩 Replace:
-
eno1 and eno2 with your real interfaces
-
YOUR_SERVER_IP
,YOUR_GATEWAY
, andYOUR_DNS
with your network settings
✅ Step 4: Apply the Configuration
sudo netplan apply
If no error is returned, the bonding is working.
✅ Step 5: Verify Bonding Status
cat /proc/net/bonding/bond0
You should see:
-
Bonding Mode:
802.3ad
-
Slave interfaces
-
Link status:
up
-
Aggregator ID
🆘 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!