Having Trouble with Bonding NICs on Ubuntu 16.04 Using MikroTik Switch

0
2
Asked By CuriousCoder89 On

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

Answered By TechTinkerer On

Honestly, I suggest moving away from 16.04 altogether. Running something from this decade would probably save you a lot of hassle, too.

Answered By TransportTech On

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!

Answered By NetworkNerd22 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.