Configuration Troubles on CCR / CRS / CRS (LACP, Masterport, VLANs)

Hi there,

After I was really really happy with my CCR I decided to throw out much more of my other network hardware (mainly ZyXEL crap) and get more MikroTik Stuff. So I currently have the big CCR and a small CRS 109 and a bigger CRS 226. But now I got a little issue in my head with the logic of the network…

This here is the goal I have for this network layout:
Goal.png
So what I did so far is on the CCR:

    • ETH1 and ETH2 are bonded Mode 802.3ad as Uplink
    • VLANs are created on the Uplink
    • IP Addresses assigned to the VLANs

On The CRS109:

    • ETH1 and ETH2 are bonded Mode 802.3ad as Uplink 1 (the Uplink to the CCR1036)
    • ETH7 and ETH8 are bonded Mode 802.3ad as Uplink 2 (the Uplink to the CRS 226)

On the CRS226:

    • ETH1 and ETH2 are bonded Mode 802.3ad as Uplink 1 (the Uplink to the CRS109)

So far so good. What I don’t understand now is where I create the VLANs on the CRS109??? On the CRS226 I guess I have to create them on the Uplink like I did it on the CCR, correct? But what about all the eth ports on the CRS226 how do I set them to use the Uplink? Because I can not set the Uplink as MasterPort as far as I know… Bridging? But will it not slow the complete network down a lot?

Many many thanks for your help guys,

All the best,
Yves

First things first, you’ll want to move away from LACP in the mikrotik world, their switches dont support it in hardware. So you’ll want something like this for your trunks:

CRS:

/interface ethernet
set ether3 master-port=ether2
set ether4 master-port=ether2

/interface ethernet switch trunk
add name=trunk1 member-ports=ether3,ether4

CCR:

/interface bonding add name=bonding1 slaves=ether2,ether3 mode=balance-xor transmit-hash-policy=layer-2-and-3 link-monitoring=mii mii-interval=100ms

I have no idea what the performance will be like, im sure it will run fine assuming the crs doesn’t do the link lb in it’s cpu. Let us know.

Then for your VLAN’s you’ll want to do a bunch of vlan work on the CRS, check out the wiki examples: http://wiki.mikrotik.com/wiki/Manual:CRS_examples#Port_Based_VLAN

I have not done your specific scenario before but to answer your question about the uplink ports (a trunk port on the crs). I would think that you simply treat each ethernet interface in the group the same and apply the tagging on the port like listed above ^

Let us know how it goes for you, it would be good to see how the crs’s behave

Okay, so on the CRS109 I put ETH1 and ETH2 in one Trunk. ETH1 and ETH2 is connected to ETH1 and ETH2 of CCR. But how about the LB between CRS226? ETH7 and ETH8 on CRS109 are connected to the ETH1 and ETH2 of the CRS226. On with side should I do the LB? CRS109 or CRS226?

Did I get this correct, I set the Master-Port of all the the Ports of CRS109 and CRS226 to just one Port? But I can not set it to the CCRUplink? To what Port do I set it?

CRS109

/interface ethernet switch trunk add name=CCRUplink member-ports=eth1,eth2
/interface ethernet switch trunk add name=CRS226Uplink member-ports=eth7,eth8



/interface ethernet
set eth1 master-port=eth3
set eth2 master-port=eth3
set eth4 master-port=eth3
set eth5 master-port=eth3
set eth6 master-port=eth3
set eth7 master-port=eth3
set eth8 master-port=eth3

CRS226

/interface ethernet switch trunk add name=CRS109Uplink member-ports=eth1,eth2



/interface ethernet
set eth1 master-port=eth3
set eth2 master-port=eth3
set eth4 master-port=eth3
set eth5 master-port=eth3
set eth6 master-port=eth3
set eth7 master-port=eth3
set eth8 master-port=eth3
set eth9 master-port=eth3
set eth10 master-port=eth3
set eth11 master-port=eth3
set eth12 master-port=eth3
set eth13 master-port=eth3
set eth14 master-port=eth3
set eth15 master-port=eth3
set eth16 master-port=eth3
set eth17 master-port=eth3
set eth18 master-port=eth3
set eth19 master-port=eth3
set eth20 master-port=eth3
set eth21 master-port=eth3
set eth22 master-port=eth3
set eth23 master-port=eth3
set eth24 master-port=eth3

CCR1036

/interface bonding add name=CRS109Uplink slaves=eth1,eth2 mode=balance-xor transmit-hash-policy=layer-2-and-3 link-monitoring=mii mii-interval=100ms

yes that seems correct for the trunking, can you see the load balancing happening on the crs ports in the trunk now ? you want to do it on both sides of the link (like you have).

The master port is fine, it just tells the ports where the grouping is on the asic for switching.

take in count:

IEEE802.3ad and IEEE802.1ax compatible Link Aggregation Control Protocol is not supported yet.

taken from the wiki of CRS switches