Mikrotik VLANs - CRS1xx & CRS2xx - Mikrotik Tutorial

Опубликовано: 08 Октябрь 2024
на канале: Wilmer Almazan / The Network Trip
34,157
577

Learn to configure VLANS on Mikrotik CSR3XX step by step.

This process applies only to switches from the families CRS1xx and CRS2xx. If you wan to configure a CRS3xx please follow the following procedure:
   • Mikrotik VLANs - CRS3XX Step by Step ...  


#MikrotikTutorial #MikrotikVLANs #ConfigureVLANsMikrotik

EXAMPLE: CONFIGURATION ON S-2

STEP 1
/interface bridge
add name=bridge
STEP 2
/interface bridge port
add bridge=bridge interface=sfp1
add bridge=bridge interface=sfp2
add bridge=bridge interface=sfp3

STEP 3
/interface ethernet switch ingress-vlan-translation
add customer-vid=0 new-customer-vid=20 ports=sfp2,sfp3

STEP 4
/interface ethernet switch egress-vlan-tag
add tagged-ports=sfp1 vlan-id=20
add tagged-ports=switch1-cpu,sfp1 vlan-id=99

STEP 5
/interface vlan
add interface=bridge name=vlan-99 vlan-id=99
/ip address
add address=172.16.99.3/24 interface=vlan-99 network=172.16.99.0
/ip route
add distance=1 gateway=172.16.99.1

STEP 6
/interface ethernet switch vlan
add ports=sfp2,sfp1,sfp3 vlan-id=20
add ports=switch1-cpu,sfp1 vlan-id=99

STEP 7
/interface ethernet switch
set drop-if-invalid-or-src-port-not-member-of-vlan-on-ports=sfp1,sfp2,sfp3