Community discussions

MikroTik App
 
lthasenhod
just joined
Topic Author
Posts: 6
Joined: Tue Jul 20, 2021 5:36 pm

CRS317-1G-16S+ VLAN Translation

Thu Feb 17, 2022 12:45 pm

Hi All,

I am trying to do vlan translation on a Mikrotik CRS317-1G-16S+, where i have a trunk on ethernet1 (new system) and ethernet2 (old system).

my goal is to rewrite all vlan tags on "old system" to the new vlan tags on "new system"

example from CRS 2XX

interface ethernet switch ingress-vlan-translation add customer-vid=50 customer-vlan-format=tagged new-customer-vid=1031 ports=ethernet2

how does one do this on CRS317-1G-16S+ running RouterOS 7.1.2 ?
 
spnilsson
just joined
Posts: 1
Joined: Tue Feb 22, 2022 10:48 am

Re: CRS317-1G-16S+ VLAN Translation

Tue Feb 22, 2022 11:14 am

Hi,

I have the exact same issue. Followed the wiki to configure VLAN translation on the CRS317, but I can't get it to work: https://wiki.mikrotik.com/wiki/Manual:C ... ranslation

My scenario is pretty much the same as the image on the wiki:

New switch -> Mikrotik CRS317 (RouterOS) <- Old switch

What I want to achieve is to have the Mikrotik CRS317 translate VLANs between the "new switch" and "old switch".

Best regards
 
lthasenhod
just joined
Topic Author
Posts: 6
Joined: Tue Jul 20, 2021 5:36 pm

Re: CRS317-1G-16S+ VLAN Translation

Tue Feb 22, 2022 12:57 pm

Hi All,

Just an update, i found the commands for the CRS3XX translation commands, but i can not get it to work, have a i hit a bug ?
# feb/22/2022 11:50:49 by RouterOS 7.1.3
# software id = X
#
# model = CRS317-1G-16S+
# serial number = X
/interface bridge
add name=bridge1
add ingress-filtering=no name=bridge2 vlan-filtering=yes
/interface ethernet
set [ find default-name=sfp-sfpplus1 ] name=eth1
set [ find default-name=sfp-sfpplus2 ] name=eth2
set [ find default-name=sfp-sfpplus3 ] name=eth3
set [ find default-name=sfp-sfpplus4 ] name=eth4
set [ find default-name=sfp-sfpplus5 ] name=eth5
set [ find default-name=sfp-sfpplus6 ] name=eth6
set [ find default-name=sfp-sfpplus7 ] name=eth7
set [ find default-name=sfp-sfpplus8 ] name=eth8
set [ find default-name=sfp-sfpplus9 ] name=eth9
set [ find default-name=sfp-sfpplus10 ] name=eth10
set [ find default-name=sfp-sfpplus11 ] name=eth11
set [ find default-name=sfp-sfpplus12 ] name=eth12
set [ find default-name=sfp-sfpplus13 ] name=eth13
set [ find default-name=sfp-sfpplus14 ] name=eth14
set [ find default-name=sfp-sfpplus15 ] name=eth15
set [ find default-name=sfp-sfpplus16 ] name=eth16
set [ find default-name=ether1 ] name=mgmt1
/interface vlan
add interface=bridge1 name=vlan2 vlan-id=2
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface=mgmt1 pvid=2
add bridge=bridge2 interface=eth1
add bridge=bridge2 interface=eth16
/interface bridge vlan
add bridge=bridge1 tagged=bridge1,mgmt1 vlan-ids=2
add bridge=bridge2 tagged=eth1 vlan-ids=1031
add bridge=bridge2 tagged=eth16 vlan-ids=50
/interface ethernet switch rule
add new-dst-ports=eth16 new-vlan-id=50 ports=eth1 switch=switch1 vlan-id=1031
add new-dst-ports=eth1 new-vlan-id=1031 ports=eth16 switch=switch1 vlan-id=50
/ip address
add address=x.x.x.x/x interface=vlan2 network=x.x.x.x
/ip dns
set servers=x.x.x.x,x.x.x.x
/ip route
add disabled=no dst-address=0.0.0.0/0 gateway=x.x.x.x routing-table=main suppress-hw-offload=no
/system clock
set time-zone-name=Europe/Copenhagen
/system routerboard settings
set boot-os=router-os

Who is online

Users browsing this forum: Arnio, johnson73, RFSCoutinho and 103 guests