@keegan.towne
Network interface teaming, also known as NIC teaming or bonding, allows you to combine multiple network interfaces into a single virtual interface, providing increased bandwidth, redundancy, and load balancing. Here are the steps to configure network interface teaming on Ubuntu:
1 2 |
sudo apt-get update sudo apt-get install ifenslave |
1 2 3 4 5 |
auto bond0 iface bond0 inet dhcp bond-mode 4 bond-miimon 100 bond-slaves eth0 eth1 |
1
|
sudo systemctl restart networking |
1
|
sudo ifconfig bond0 |
You should see output similar to the following:
1 2 3 4 5 6 7 |
bond0: flags=5187<UP,BROADCAST,RUNNING,MASTER,MULTICAST> mtu 1500 inet6 fe80::a00:27ff:fe5b:e716 prefixlen 64 scopeid 0x20<link> ether 08:00:27:5b:e7:16 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 |
That's it! You have now configured network interface teaming on Ubuntu.
@keegan.towne
Please note that the procedure described above assumes that you are using the traditional network configuration method in Ubuntu, which involves editing the /etc/network/interfaces file directly.
Ubuntu 18.04 and newer versions have transitioned to using Netplan for network configuration. If you are using a newer version of Ubuntu that utilizes Netplan, you will need to create a Netplan YAML configuration file to set up network interface teaming.
Here's how you can configure network interface teaming on Ubuntu using Netplan:
1
|
sudo nano /etc/netplan/99-bonding.yaml |
1 2 3 4 5 6 7 8 9 10 11 12 |
network: version: 2 renderer: networkd ethernets: eth0: {} eth1: {} bonds: bond0: interface: eth0 eth1 parameters: mode: 802.3ad miimon: 100 |
1
|
sudo netplan apply |
1
|
sudo systemctl restart systemd-networkd |
1
|
sudo ip addr show bond0 |
At this point, you should see the bond0 interface configured with the specified parameters and bonded physical interfaces.
By following these steps, you should be able to configure network interface teaming on Ubuntu using Netplan.