Community discussions

MikroTik App
 
remonv76
just joined
Topic Author
Posts: 5
Joined: Mon Jan 31, 2022 8:27 pm

VLANs on CRS326 - how hard can this be?

Thu May 05, 2022 5:35 pm

Hi there,
I'm completely new to Mikrotik switches and bought 2x CRS326-24S+2Q+RM switches. So 2x 40Gbps and the rest 10Gb SFP+. And somehow I can not even get a working VLAN configuration. I'm following the exact manual examples, but still it does not work.

I have 2 servers, an ESXi host and a Storage host and i connect them to the 40Gbps interface.

Switch 1:
Port qsfpplus1-1 (name=Uplink-sw2) = Uplink to switch 2
Port qsfpplus2-1 (name=qsfpplus2-ESXi) = ESXi Host

Switch 2:
Port qsfpplus1-1 (name=qsfpplus1-SAN) = Storage Host
Port qsfpplus2-1 (name=Uplink-sw1) = Uplink to switch 1


Leaving everything default, without any vlans configured and one bridge, i can make the connection from the ESXi host to the Storage. All traffic goes over vlan 1. But as soon as i configure vlan 6, set the uplink as a tagged port and enable vlan filtering, communication stops. In SWOS everything works perfectly, so no vlan issues here.

I keep the config between the switches the same and simple. I know i don't have to set the untagged interface in the bridge-vlan, because RouterOS sees this automatically in the pvid config of the interface. But still, it does not work.

Also tried ingress-filtering=no on the uplink interfaces and bridge interface, but that does not work either. So enabled it on all interfaces and the bridge.
Tried differtent RouterOS versions and i have this problem with all versions.
I'm lost....What am i missing???

Switch 1:
# jan/02/1970 01:23:11 by RouterOS 7.2.3
#
# model = CRS326-24S+2Q+
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=qsfpplus1-1 ] name=Uplink-sw2
set [ find default-name=qsfpplus2-1 ] name=qsfpplus2-ESXi
/disk
set usb1 disabled=no
set usb1-part1 disabled=no name=usbdisk1
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=Uplink-sw2
add bridge=bridge1 interface=qsfpplus2-ESXi pvid=6
/interface bridge vlan
add bridge=bridge1 tagged=Uplink-sw2 untagged=qsfpplus2-ESXi vlan-ids=6
/ip address
add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
/system routerboard settings
set boot-os=router-os


Switch 2:
# jan/02/1970 01:29:45 by RouterOS 7.2.3
#
# model = CRS326-24S+2Q+
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=qsfpplus2-1 ] name=Uplink-sw1
set [ find default-name=qsfpplus1-1 ] name=qsfpplus1-SAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=Uplink-sw1
add bridge=bridge1 interface=qsfpplus1-SAN pvid=6
/ip neighbor discovery-settings
set discover-interface-list=!dynamic
/interface bridge vlan
add bridge=bridge1 tagged=Uplink-sw1 untagged=qsfpplus1-SAN vlan-ids=6
/ip address
add address=192.168.1.3/24 interface=ether1 network=192.168.1.0
/system routerboard settings
set boot-os=router-os
Last edited by remonv76 on Thu May 05, 2022 8:39 pm, edited 5 times in total.
 
remonv76
just joined
Topic Author
Posts: 5
Joined: Mon Jan 31, 2022 8:27 pm

Re: VLANs on CRS326 - how hard can this be?

Thu May 05, 2022 5:46 pm

Ps. VLAN's work perfectly in SWOS, but I have a link detect issue in SWOS. When a server reboots, the link does not come up. I have to manually set the interface on the switch to autodetect or fixed 40Gbps (whatever it previously was set at) and then the link comes up. This problem does not exist in RouterOS. In RouterOS the link comes up after a reboot of a server without any issue's. So I only want to use switching in RouterOS.
 
User avatar
pcunite
Forum Guru
Forum Guru
Posts: 1345
Joined: Sat May 25, 2013 5:13 am
Location: USA

Re: VLANs on CRS326 - how hard can this be?

Fri May 06, 2022 2:46 am

See my signature.
 
User avatar
Buckeye
Forum Veteran
Forum Veteran
Posts: 893
Joined: Tue Sep 11, 2018 2:03 am
Location: Ohio, USA

Re: VLANs on CRS326 - how hard can this be?

Fri May 06, 2022 3:38 am

I'm completely new to Mikrotik switches and bought 2x CRS326-24S+2Q+RM switches. So 2x 40Gbps and the rest 10Gb SFP+. And somehow I can not even get a working VLAN configuration. I'm following the exact manual examples, but still it does not work.

Switch 1:
# jan/02/1970 01:23:11 by RouterOS 7.2.3
#
# model = CRS326-24S+2Q+
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=qsfpplus1-1 ] name=Uplink-sw2
set [ find default-name=qsfpplus2-1 ] name=qsfpplus2-ESXi
...
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=Uplink-sw2
add bridge=bridge1 interface=qsfpplus2-ESXi pvid=6
/interface bridge vlan
add bridge=bridge1 tagged=Uplink-sw2 untagged=qsfpplus2-ESXi vlan-ids=6
/ip address
add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
...


Switch 2:
# jan/02/1970 01:29:45 by RouterOS 7.2.3
#
# model = CRS326-24S+2Q+
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=qsfpplus2-1 ] name=Uplink-sw1
set [ find default-name=qsfpplus1-1 ] name=qsfpplus1-SAN
...
/interface bridge port
add bridge=bridge1 interface=ether1
add bridge=bridge1 interface=Uplink-sw1
add bridge=bridge1 interface=qsfpplus1-SAN pvid=6
...
/interface bridge vlan
add bridge=bridge1 tagged=Uplink-sw1 untagged=qsfpplus1-SAN vlan-ids=6
/ip address
add address=192.168.1.3/24 interface=ether1 network=192.168.1.0
...
What manual example are you following?

I don't have any CRS3x switches, but it seems odd to me that you have added ether1 to the bridge, but then are adding an ip address to ether1.

What I would have expected was to add a vlan interface for a specific vlan, and then to associate ether1 with that vlan in the /interface bridge vlan section.

Have you done a search for CRS3xx vlans on youtube? There's a good video Mikrotik VLANs - CRS3XX Step by Step - Mikrotik Tutorial by the Network Trip.

Who is online

Users browsing this forum: cvalavik and 35 guests