https://wiki.mikrotik.com/wiki/Manual...
https://wiki.mikrotik.com/wiki/Manual...
1 - MikroTik Cloud Router Switch CRS125-24G-1S-RM
1vlan ether 1,2,3,4,5,6,7,8
2vlan ether 9,10,11,12,13,14,15
3vlan ether 17,18,19,20.21,22,23,24
2 - MikroTik Cloud Router Switch CRS125-24G-1S-RM
1vlan ether 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15
3vlan ether 17,18,19,20.21,22,23,24
1. Create a group of switched ports by selecting one master-port and setting it for other ports.
interface ethernet set ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,ether11,ether12,ether13,ether14,ether15,ether16,ether17,ether18,ether19,ether20,ether21,ether22,ether23,ether24 master-port=sfp1
2. Add initial VLAN assignments (PVID) to VLAN access ports.
interface ethernet switch ingress-vlan-translation add ports=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8 customer-vid=0 new-customer-vid=1
interface ethernet switch ingress-vlan-translation add ports=ether9,ether10,ether11,ether12,ether13,ether14,ether15 customer-vid=0 new-customer-vid=2
interface ethernet switch ingress-vlan-translation add ports=ether17,ether18,ether19,ether20,ether21,ether22,ether23,ether24 customer-vid=0 new-customer-vid=3
3. Add VLAN 1, VLAN 1 and VLAN 3 tagging on sfp1 port to create it as VLAN trunk port.
interface ethernet switch egress-vlan-tag add tagged-ports=sfp1 vlan-id=1
interface ethernet switch egress-vlan-tag add tagged-ports=sfp1 vlan-id=2
interface ethernet switch egress-vlan-tag add tagged-ports=sfp1 vlan-id=3
4. VLAN membership definitions in the VLAN table are required for proper isolation. Adding entries with VLAN id and ports makes that VLAN traffic valid on those ports.
interface ethernet switch vlan add ports=ether1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,sfp1 vlan-id=1
interface ethernet switch vlan add ports=ether9,ether10,ether11,ether12,ether13,ether14,ether15,sfp1 vlan-id=2
interface ethernet switch vlan add ports=ether17,ether18,ether19,ether20,ether21,ether22,ether23,ether24,sfp1 vlan-id=3