Mikrotik mlag and switch mode

Hi,

I have a pair of CRS317-1G-16S+RM switches on RouterOS 7.6 that I am planning to use for MLAG for my servers. Could anyone please tell me if the switches need to be in ‘router’ or ‘bridge’ mode when setting mlag? I are using our pfSense for the routing and firewall and the CRS317-1G-16S+RM are only used as switches.

Thank you

Anyone please?

In RouterOS its always in ‘router’ mode, but you can configure things to use the hardware offload. You will definitely want to do this with MLAG, otherwise the little CPU will be processing all the traffic.

I have MLAG running on these switches without issue, and it works fine. There are limitations such as no L3 offloading when using MLAG I believe.

Hi,

Thank you for your reply. So if I understand I need to reset the quick set back to ‘router’ mode?

I have been trying to set mlag for 2 weeks without success so far, would you be willing to share your script? Mine so far look like this (same commands on both switch)

/interface bonding
add mlag-id=10 mode=802.3ad name=OPNsense-Primary_bond slaves=sfp-sfpplus16;
add mlag-id=10 mode=802.3ad name=OPNsense-Secondary_bond slaves=sfp-sfpplus3;
add mlag-id=11 mode=802.3ad name=XCP-ng1_bond slaves=sfp-sfpplus2;
add mlag-id=12 mode=802.3ad name=XCP-ng2_bond slaves=sfp-sfpplus5;
add mlag-id=13 mode=802.3ad name=XCP-ng3_bond slaves=sfp-sfpplus9;
add mlag-id=14 mode=802.3ad name=XCP-ng4_bond slaves=sfp-sfpplus13;
add mlag-id=15 mode=802.3ad name=DS-System1_bond slaves=sfp-sfpplus8;
add mlag-id=15 mode=802.3ad name=DS-SystemRep_bond slaves=sfp-sfpplus10;
add mlag-id=17 mode=802.3ad name=TrueNAS_bond slaves=sfp-sfpplus6;


/interface bridge
add name=bridge1 vlan-filtering=yes

/interface bridge port
add bridge=bridge1 interface=sfp-sfpplus12 pvid=99
add bridge=bridge1 interface=OPNsense-Primary_bond;
add bridge=bridge1 interface=OPNsense-Secondary_bond;
add bridge=bridge1 interface=XCP-ng1_bond;
add bridge=bridge1 interface=XCP-ng2_bond;
add bridge=bridge1 interface=XCP-ng3_bond;
add bridge=bridge1 interface=XCP-ng4_bond;
add bridge=bridge1 interface=DS-System1_bond;
add bridge=bridge1 interface=DS-SystemRep_bond;
add bridge=bridge1 interface=TrueNAS_bond;

/interface bridge vlan
add bridge=bridge1 tagged=sfp-sfpplus12 vlan-ids=1
add bridge=bridge1 tagged=sfp-sfpplus2 vlan-ids=100
add bridge=bridge1 tagged=sfp-sfpplus5 vlan-ids=101
add bridge=bridge1 tagged=sfp-sfpplus6 vlan-ids=102

/interface bridge mlag
set bridge=bridge1 peer-port=sfp-sfpplus12

This is the high level diagram of the network

I also struggling to set the ether1 as a dedicated management interface on a separate subnet.

Thank you in advance

Hi,

did you find the solution for your problem?

I think routing has nothing to do with mlag, so I suggest to start from scratch with an empty config and then do your mlag stuff again.

I think I have working config but I am not an experienced user of mikrotik. I just followed the documentation as precises as possible which is not always very clear if you aren’t an expert. I can provide my config if wanted.

My interest is in how good the setup behaves in failure situations. Things like how many pings or pakets are beeing lost when one switch fails.

Cheers
Timo