Community discussions

MikroTik App
 
robvangils
just joined
Topic Author
Posts: 4
Joined: Sun Jan 17, 2021 4:52 pm

Reaching 2 VLAN's on a single port for a client device

Mon May 01, 2023 10:59 am

Hi all,

equiptment used:
CRS328-4C-20S-4S+RM (Main Switch)
CRS-106-1C-2S (Field Switch)
mAP Lite (WiFi Client)

What i am trying to do:
On the Main Switch:
Combo 1 trunk port carrying VLAN 10 and 20
Combo 2 Acces/Client port carrying VLAN 10 and 20 (Computer needs to acces both VLAN's)
Combo 4 Acces/Client port carrying VLAN 10

On the Field Switch:
SFP1 trunk port carrying VLAN 10 and 20
SFP 2 Acces/Client port carrying VLAN 10
SFP 3 Acces/Client port carrying VLAN 10
Combo 1 Acces/Client port carrying VLAN 20

VLAN 10 will be used to send data to control a lighting instalation
VLAN 20 will be used to connect a 4G modem at the Field Switch and have that accessible at the Main Switch

The mAP Lite is now connected to the combo1 port on the Field Switch, he is set up as a wifi client to simulate the 4G Modem

I already managed to create the trunk between the 2 switches. the single VLAN access ports also work fine, now i need to get the access port with both vlans working

Main Switch config:
# may/01/2023 09:55:12 by RouterOS 6.48.6
# software id = HKMI-SCQX
# model = CRS328-4C-20S-4S+
# serial number = HE508HDYECJ
/interface bridge
add name=BR-VLAN10
add name=BR-VLAN20
/interface vlan
add interface=combo1 name=vlan10 vlan-id=10
add interface=combo1 name=vlan20 vlan-id=20
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/interface bridge port
add bridge=BR-VLAN10 interface=vlan10
add bridge=BR-VLAN10 interface=combo4
add bridge=BR-VLAN20 interface=vlan20
add bridge=BR-VLAN20 interface=combo2
/interface bridge vlan
add vlan-ids=10,20
/ip address
add address=10.0.10.1/8 interface=vlan10 network=10.0.0.0
add address=10.0.20.1/8 interface=vlan20 network=10.0.0.0
/system clock
set time-zone-name=Europe/Amsterdam
/system identity
set name="Main Switch 1"
/system routerboard settings
set boot-os=router-os
Field Switch Config:
# may/01/2023 09:55:53 by RouterOS 6.48.6
# software id = 4S29-DICX
# model = CRS106-1C-5S
# serial number = HE908YESN9B
/interface bridge
add name=BR-VLAN10
add name=BR-VLAN20
/interface vlan
add interface=sfp1 name=vlan10 vlan-id=10
add interface=sfp1 name=vlan20 vlan-id=20
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/interface bridge port
add bridge=BR-VLAN10 interface=vlan10
add bridge=BR-VLAN10 interface=sfp2
add bridge=BR-VLAN20 interface=combo1
add bridge=BR-VLAN20 interface=vlan20
/ip address
add address=10.0.10.2/8 interface=vlan10 network=10.0.0.0
add address=10.0.20.2/8 interface=vlan20 network=10.0.0.0
/system clock
set time-zone-name=Europe/Amsterdam
/system identity
set name="Field Switch 2"
 
tdw
Forum Guru
Forum Guru
Posts: 1841
Joined: Sat May 05, 2018 11:55 am

Re: Reaching 2 VLAN's on a single port for a client device

Mon May 01, 2023 1:36 pm

Stop using multiple bridges. Since the introduction of VLAN-aware bridges you should use a single bridge to avoid many pitfalls https://help.mikrotik.com/docs/display/ ... figuration.
There is an excellent guide viewtopic.php?t=143620, the basic information on them is in the help pages https://help.mikrotik.com/docs/display/ ... NFiltering or https://help.mikrotik.com/docs/pages/vi ... mples-VLAN for CRS1xx/2xx.

Who is online

Users browsing this forum: Cmon169, dioeyandika and 29 guests