Community discussions

MikroTik App
 
User avatar
afink
newbie
Topic Author
Posts: 34
Joined: Wed May 29, 2013 7:16 pm
Location: Basel & Freetown
Contact:

Bonding & Vlans not working

Thu Jun 30, 2022 10:05 pm

Hello

I have the following scenario:

CRS312-4C+8XG, RouterOS 7.3.1

Linux host (Debian) connected with 2x 10G with the following config

auto ens1f0
iface ens1f0 inet manual

auto ens1f1
iface ens1f1 inet manual

auto bond0
iface bond0 inet dhcp
bond-slaves ens1f1,ens1f0
bond-mode 802.3ad
bond-miimon 100

dozens of VLANs

what I am trying to do is to aggregate two 10G ports together into a 20G port.
LACP is whats needed here and I use this successfully on my routers.

However on the Mikrotik Switching devices I have problems to set this up.

What I tried is to create a bonding interface with 802.3ad which includes the two physical ports towards the linux box. If you assign ip on that port, you can talk to the linux box normally but then its isolated from the rest of the ports.

So I put this bondig port into the bridge as port. But then it can talk to nothing. DHCP doesnt work neither.
Using only a single port and put it into the bridge, without bonding, works perfect.

But putting a 802.3ad bond into the bridge doesnt. I don't understand why.

Same problem arrives when I want to use a uplink to my 100G switch with 2x10G

Any hints?
 
User avatar
sirbryan
Member
Member
Posts: 303
Joined: Fri May 29, 2020 6:40 pm
Location: Utah
Contact:

Re: Bonding & Vlans not working

Fri Jul 01, 2022 2:30 am

Are you assigning the IP directly to the bridge, or to one of the VLANs on the bridge? Does the bond have a PVID other than 1?

Here's the relevant config for my 2x10G bond between a CRS317 and a CCR2116. I have it set to only allow VLAN-tagged frames. The IP's are assigned to VLANs on the bridge, and the VLANs are tagged on the bond interfaces. No IP's are assigned directly to the bridge or physical interfaces.
/interface bonding
add lacp-rate=1sec mode=802.3ad name=bond-ccr2116 slaves=sfp07-ccr2116-p3,sfp08-ccr2116-p4 transmit-hash-policy=layer-2-and-3

/interface bridge port
add bridge=bridge frame-types=admit-only-vlan-tagged ingress-filtering=yes interface=bond-ccr2116
Dozens of VLANs are tagged to the bond-ccr2116 port.
 
User avatar
afink
newbie
Topic Author
Posts: 34
Joined: Wed May 29, 2013 7:16 pm
Location: Basel & Freetown
Contact:

Re: Bonding & Vlans not working

Fri Jul 01, 2022 9:54 am

thsts exactly what I did. ips on vlans on top of bridge. The only thing i dont have is only vlan tags set as i have untagged too and thus ip on the bridge itself too

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot], dioeyandika, GoogleOther [Bot], menyarito and 89 guests