How to create trunk port in CRS3xx

Hi folks

I’m trying to setup a Mikrotik CRS 317-1G-16S+ for Intervlan routing, but no success yet.
I have 3 physical servers as KVM hypervisors which need to connect to CRS by Trunk port (on SFP1 to SFP3 ports).
My VLAN IDs are 101 to 112 for infrastructure and 200 to 300 for customers. VLAN tagging is done in the Hypervisor.

I did this many times easily on Cisco IOS and NX-OS equipment, but I’m confused how to do it with Mikrotik CRS.
network map attached to this post. Any help would be appreciated.






Regards,
Vossuq
MT CRS.jpeg

It should be pretty easy, for VLAN 101 for instance:

/interface vlan add name=VL101 vlan-id=101 interface=bridge1
/ip address add address=192.168.101.1/24 interface=VL101
/interface bridge vlan add bridge=bridge1 tagged=sfp1,sfp2,sfp3,ether1  vlan-ids=101

More info here: https://wiki.mikrotik.com/wiki/Manual:Interface/Bridge#VLAN_Example_.232_.28Trunk_and_Hybrid_Ports.29

The third line in config code by @LIV2 should read:

/interface bridge vlan add bridge=bridge1 tagged=bridge1,sfp1,sfp2,sfp3,ether1  vlan-ids=101

Without adding bridge1 as tagged member of that VLAN the CRS itself won’t be part of VLAN and won’t be able to do inter-VLAN routing (nor will it be available to MGMT PC).

Many thanks for your consideration LIV2

Many thanks for your answer mkx

@mkx, why do we have
/interface bridge vlan add bridge=bridge1 tagged=bridge1,sfp1,sfp2,sfp3,ether1 vlan-ids=101

and not (since eth1 is an access port??)
/interface bridge vlan add bridge=bridge1 tagged=bridge1,sfp1,sfp2,sfp3 untagged=ether1 vlan-ids=101

@anav, you’re slowly getting to the point of receiving nick name hawkeye . :wink:
You’re right, ether1 should indeed be an untagged member port (together with setting of pvid=101 for this port in /interface bridge port section) …

My excuse for not noticing it is that omission of bridge1 as tagged port was so blindingly obvious it completely saturated my vision making it incapable of spotting less obvious misconfigurations … :mrgreen:

That’s a lot of words … just say ‘sloppy’ :stuck_out_tongue_winking_eye:
PS. I am only hawkeye lite!