Community discussions

MikroTik App
 
totti4ever
just joined
Topic Author
Posts: 14
Joined: Sat Oct 16, 2021 8:12 am

Trying to bond with Ubuntu - now I cannot even ping

Tue Nov 30, 2021 2:20 pm

I try to bond my Ubuntu 18.04 Home Server with my MikroTik Switch and I'm apparently failing :-(

The Switch is on SwitchOS, which shows the bonding:
Image

The Router on RouterOS shows four different DHCP leases, where I cannot ping a sinlge of them. Did I do something wrong?
Image



netplan config @ Ubuntu:
$ /etc/netplan$ sudo netplan --debug apply
** (generate:20924): DEBUG: 11:12:09.975: Processing input file /etc/netplan/01-malte.yaml..
** (generate:20924): DEBUG: 11:12:09.976: starting new processing pass
** (generate:20924): DEBUG: 11:12:09.976: Processing input file /etc/netplan/02-bonds.yaml..
** (generate:20924): DEBUG: 11:12:09.976: starting new processing pass
** (generate:20924): DEBUG: 11:12:09.976: We have some netdefs, pass them through a final round of validation
** (generate:20924): DEBUG: 11:12:09.976: bond0: setting default backend to 1
** (generate:20924): DEBUG: 11:12:09.976: Configuration is valid
** (generate:20924): DEBUG: 11:12:09.976: eno1: setting default backend to 1
** (generate:20924): DEBUG: 11:12:09.976: Configuration is valid
** (generate:20924): DEBUG: 11:12:09.976: eno2: setting default backend to 1
** (generate:20924): DEBUG: 11:12:09.976: Configuration is valid
** (generate:20924): DEBUG: 11:12:09.976: Generating output files..
** (generate:20924): DEBUG: 11:12:09.976: NetworkManager: definition eno1 is not for us (backend 1)
** (generate:20924): DEBUG: 11:12:09.977: NetworkManager: definition eno2 is not for us (backend 1)
** (generate:20924): DEBUG: 11:12:09.977: NetworkManager: definition bond0 is not for us (backend 1)
DEBUG:netplan generated networkd configuration changed, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:eno1 not found in {}
DEBUG:eno2 not found in {'eno1': {'dhcp4': True}}
DEBUG:bond0 not found in {}
DEBUG:Merged config:
network:
  bonds:
    bond0:
      dhcp4: true
      interfaces:
      - eno1
      - eno2
      optional: true
      parameters:
        mode: 802.3ad
  bridges: {}
  ethernets:
    eno1:
      dhcp4: true
    eno2:
      dhcp4: true
  vlans: {}
  wifis: {}

DEBUG:Skipping non-physical interface: lo
DEBUG:Skipping composite member eno1
DEBUG:Skipping composite member eno2
DEBUG:Skipping non-physical interface: docker0
DEBUG:{}
DEBUG:netplan triggering .link rules for lo
DEBUG:netplan triggering .link rules for eno1
DEBUG:netplan triggering .link rules for eno2
DEBUG:netplan triggering .link rules for docker0
Last edited by totti4ever on Tue Nov 30, 2021 10:54 pm, edited 1 time in total.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11381
Joined: Thu Mar 03, 2016 10:23 pm

Re: Trying to bond with Ubuntu - now I cannot even ping

Tue Nov 30, 2021 7:30 pm

One thing on ubuntu side: after you create bond0 interface out of eno1 and eno2, you use bond0 for the rest (e.g. dhcp client). So remove dhcp client from members of bond.

As to switch part: post configuration of ports bonded ... as it's SwOS, screenshots will have to do. Your initial post includes DHCP lease list twice.
 
totti4ever
just joined
Topic Author
Posts: 14
Joined: Sat Oct 16, 2021 8:12 am

Re: Trying to bond with Ubuntu - now I cannot even ping

Tue Nov 30, 2021 10:59 pm

As to switch part: post configuration of ports bonded ... as it's SwOS, screenshots will have to do. Your initial post includes DHCP lease list twice.
Corrected, thanks for pointing that out! I tried both, passive and active, no change..


One thing on ubuntu side: after you create bond0 interface out of eno1 and eno2, you use bond0 for the rest (e.g. dhcp client). So remove dhcp client from members of bond.
I know and was wondering whether this could somehow be the problem, that Ubuntu tries to connect the bond an the enos at the same time?

Fun fact, there is quite a bit of traffic on the ports (the 2nd was connected just after setting up the bond, so didn't have traffic before):
Image

Also maybe of interest: there are three entries on the hosts sheet:
Image

Who is online

Users browsing this forum: No registered users and 10 guests