Community discussions

MikroTik App
 
AstroPig7
newbie
Topic Author
Posts: 31
Joined: Mon Feb 17, 2020 12:28 am

Multi-passphrase VLAN issue

Fri Apr 25, 2025 9:13 pm

Device: hAP ax³
RouterOS: 7.18.2

I currently have three Wi-Fi interfaces, one of which is a guest network:
/interface wifi
set [ find default-name=wifi1 ] configuration=5GHz disabled=no security=5GHz
set [ find default-name=wifi2 ] configuration=2GHz disabled=no security=2GHz
add configuration=Guest mac-address=<REPLACED> master-interface=wifi2 name=wifi3 security=Guest
/interface bridge
add admin-mac=<REPLACED> auto-mac=no comment=defconf name=bridge port-cost-mode=short protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge comment="5 GHz Wi-Fi" frame-types=admit-only-untagged-and-priority-tagged interface=wifi1 pvid=10
add bridge=bridge comment="2.4 GHz Wi-Fi" frame-types=admit-only-untagged-and-priority-tagged interface=wifi2 pvid=10
add bridge=bridge comment="Guest Wi-Fi" frame-types=admit-only-untagged-and-priority-tagged interface=wifi3 pvid=40
add bridge=bridge comment="Trunk" frame-types=admit-only-vlan-tagged interface=ether1
/interface bridge vlan
add bridge=bridge tagged=ether1,bridge untagged=ether3 vlan-ids=99
add bridge=bridge tagged=ether1 untagged=wifi1,wifi2 vlan-ids=10
add bridge=bridge tagged=ether1 untagged=wifi3 vlan-ids=40
This works, but I want to consolidate my SSIDs by removing the interface wifi3 and using a multi-passphrase group to assign VLAN IDs. After removing wifi3 (and its bridge port and VLAN entries), I created a multi-passphrase configuration, removed the passphrase for wifi2, and assigned it to the multi-passphrase group:
/interface wifi security multi-passphrase
add group=2GHz passphrase=passphrase1 vlan-id=40 isolation=yes
add group=2GHz passphrase=passphrase2 vlan-id=10
/interface wifi security
add authentication-types=wpa3-psk name=5GHZ passphrase=passphrase0 wps=disable
add authentication-types=wpa2-psk name=2GHZ multi-passphrase-group=2GHz wps=disable
Immediately, no clients on wifi2 were able to get an IP address or do anything on the network. Per the registration table, the clients are connected to the AP, but their packets go nowhere. I’m using bridge VLAN filtering because the switch chip in the hAP ax³ doesn’t support VLAN tables. Should I be assigning the VLAN ID in a different way to allow the multi-passphrase configuration to work? Note that this device connects to a core switch via ether1 and is doing no routing on its own.

Things I have tried include setting pvid=1 for wifi2 in /interface bridge port and setting frame-types=admit-all for the same, but neither had any noticeable effect. Also note that if I unset the vlan-id values in the multi-passphrase configuration, everything works as expected (except both passphrases put users on the same VLAN).
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13750
Joined: Thu Mar 03, 2016 10:23 pm

Re: Multi-passphrase VLAN issue  [SOLVED]

Fri Apr 25, 2025 9:55 pm

Just guessing ... I think that wifiX bridge ports should be set as tagged members of relevant VLANs ... all that are used in multi-passphrase configuration.
 
AstroPig7
newbie
Topic Author
Posts: 31
Joined: Mon Feb 17, 2020 12:28 am

Re: Multi-passphrase VLAN issue

Fri Apr 25, 2025 10:28 pm

Just guessing ... I think that wifiX bridge ports should be set as tagged members of relevant VLANs ... all that are used in multi-passphrase configuration.
I just tested this hypothesis with the following:
/interface bridge vlan
add bridge=bridge tagged=ether1,bridge untagged=ether3 vlan-ids=99
add bridge=bridge tagged=ether1,wifi2 untagged=wifi1 vlan-ids=10
add bridge=bridge tagged=ether1,wifi2 vlan-ids=40
Unfortunately, the outcome was the same.
 
AstroPig7
newbie
Topic Author
Posts: 31
Joined: Mon Feb 17, 2020 12:28 am

Re: Multi-passphrase VLAN issue

Fri Apr 25, 2025 10:38 pm

Just guessing ... I think that wifiX bridge ports should be set as tagged members of relevant VLANs ... all that are used in multi-passphrase configuration.
I just tested this hypothesis with the following:
/interface bridge vlan
add bridge=bridge tagged=ether1,bridge untagged=ether3 vlan-ids=99
add bridge=bridge tagged=ether1,wifi2 untagged=wifi1 vlan-ids=10
add bridge=bridge tagged=ether1,wifi2 vlan-ids=40
Unfortunately, the outcome was the same.
D’oh! I forgot to change the admitted frame types for wifi2. It was still set to admit-only-untagged-and-priority-tagged.