Hey everyone! I'm pretty new to this and just set up my first server with multiple NICs—specifically, I have two of them. I'm running Ubuntu Server 16.04 LTS and I'm trying to configure a bonded interface using LACP 802.3ad with four NICs: `ens3f0`, `ens3f1`, `ens2f0`, and `ens2f1`. These are connected to a MikroTik switch where they are already part of a bond using LACP.
Here's how my `/etc/network/interfaces` file is set up:
auto bond0
iface bond0 inet static
address 10.22.45.124
netmask 255.255.255.0
gateway 10.22.45.1
dns-nameservers 8.8.8.8 1.1.1.1
bond-slaves ens3f0 ens3f1 ens2f0 ens2f1
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-xmit-hash-policy layer3+4
auto ens3f0
iface ens3f0 inet manual
auto ens3f1
iface ens3f1 inet manual
auto ens2f0
iface ens2f0 inet manual
auto ens2f1
iface ens2f1 inet manual
When I try to bring up `bond0`, it does come up but shows "no slaves joined" afterwards. I used the following commands to bring it up:
sudo ifdown --exclude=lo -a
sudo ifup --exclude=lo -a
Thanks in advance for any help!
3 Answers
Honestly, I suggest moving away from 16.04 altogether. Running something from this decade would probably save you a lot of hassle, too.
Another thing you could try is adjusting your bond's hash policy. Lowering it to `layer2+3` might help with the bonds not joining. It's worth a shot!
First off, your Ubuntu version is pretty outdated; consider upgrading to a more recent release since 16.04 is quite old. To troubleshoot the bonding issue, can you check the output of `/proc/net/bonding/bond0` and also look into your `dmesg` or `syslog` for any additional errors? That might give us a clue about what's going wrong.
Related Questions
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures