Community discussions

MikroTik App
 
aizensama
just joined
Topic Author
Posts: 1
Joined: Fri Apr 02, 2021 2:06 pm

CRS Switch Rule : Objective: change VLAN ID from different ISPs to avoid internal VLAN ID conflict

Fri Apr 02, 2021 2:55 pm

Marvell 98DX3236
CRS326-24G-2S+
6.46.7 (long-term)
Synopsis: Switch is an edge switch connecting access L2 links from different services providers (about 6), meaning 6 trunks from service providers. Sometimes you might get into a situation where service providers X and Y would provide the same VLAN ID or maybe a VLAN ID which already exists within your environment.

The solution would be to change VLAN IDs as they come through from each service provider, this way - I have control & a bit of independence on internal VLAN management.

(me)CCR - IP 192.168.52.1 /25 Vlan 500
SW2 - VLAN 500 passed through
SW1 - VLAN500 converted to VLAN 400
L2ISPX VLAN 400
Client CPE VLAN 400 IP 192.168.52.2/25

Objective: change VLAN ID from different ISPs to avoid VLAN ID conflict.

/interface bridge export
/interface bridge
add arp=disabled name=bridge-Switch priority=0xE000 vlan-filtering=yes
/interface bridge port
add bridge=bridge-Switch interface=ether2
add bridge=bridge-Switch interface=ether23

/interface bridge vlan
add bridge=bridge-Switch comment="Converted VLAN" tagged=ether2,ether23-CRS-SW vlan-ids=500

/interface ethernet switch rule
add new-vlan-id=500 ports=ether2 switch=switch1 vlan-header=present vlan-id=400


VLAN comes through(from ISP) tagged (SW1) on Ether 2 Vlan 400, change it to VLAN 500, pass it on as VLAN 500 to SW2 2 on ether 23.
All ports are in a switch group with Hardware offload and VLAN filtering activated.

CCR - IP 192.168.52.1 /25 Vlan 500
SW2 - VLAN 500 passed through
SW1 - VLAN500 converted to VLAN 400
ISP VLAN 400
Client CPE VLAN 400 IP 192.168.52.2/25

Have applied the above for the setup and also tried different options, no luck.


What am i missing?

Would be glad if anyone has done this succefully?

Who is online

Users browsing this forum: Cr4shOnPc and 81 guests