I’m begginer in “mikrotik world” and I need little help with VLAN’s please.
I have two mikrotik CRS125-24G-1S-RM switches. One will act as router and one will act as L2 Switch. I need it like this just for example.
How can I config this vlans without “bridging method” and without master port (anyways there is no master port in new RouterOS)?
here is topology for example.
I found lot of tutorial where everyone using bridging, but it loads CPU (anyways maybe there is another way to do vlans without this method).
So I need it like “classic VLANS” in cisco switches. Can someone show configuration examples to how I must accomplish this test project please?
In a switch one needs the functionality of frame forwarding between ports within switch fabric. That functionality is fulfilled by bridge (with hardware support from 6.41) and by switch master / slave port (pre 6.41).
I think, according to your diagram, all you have to do on router is:
Remove ether1 from bridge,
create vlan’s in /interface vlan and assign them to either1,
assign the necessary IP’s to the vlan’s,
then either1 is a trunk port with these vlan’s and apply routing / firewall rules using the vlan’s
All examples in the document, linked by @sebastia, have two parts, first for older ROS versions and the second part is for recent ROS versions. As you obviously have ROS 6.41 (or later) installed on your CRSes, you need to apply something similar to the second part. They don’t mention master port there.
I might add: in ROS >=6.41 you configure things in two places: 1) under /inteface ethernet switch and 2) /interface bridge. It is slightly confusing, but you can have disjoint settings between the two. Settings at 1) are applied to HW switch directly … if you only need CRS as switch, then you might do settings only there … but beware, if you don’t configure at least bare minimum under 2) as well, you may loose management access to your RB and even WinBoxin mac mode can not help you then. If you need any of L3 functionality, then you need appropriate settings at 2) as well.
You can do something in between: if you have some VLANs, that don’t need any connectivity outside or that connectivity is provided by some other device(s), then you only define appropriate VLANs on needed physical interfaces in 1) and you don’t have to do any setup regarding those VLANs and physical interfaces in 2).