wifiwave2 dynamic VLAN support

I think that this feature is not (yet) implemented, but before asking it to the MikroTik support team. Has anyone been able to get dynamic VLAN assignement working on the wifiwave2 package?

I have configured a FreeRADIUS server to be able to send VLAN’s based on mac-address in order to segment several device types without broadcasting multiple SSID’s, because I don’t want to disrupt an already crowded airspace anymore.

On RouterOS 7.5 en 7.6 the wifiwave2 package seems just to ignore the Radius response with a tagged VLAN. (In the MikroTik-Wireless-VLAN-ID radius attribute), on version 7.7beta6 the logs show the following:

xx:xx:xx:xx:xx:xx@wifi4 disconnected, can not assign vlan, signal strength -79

The wireless interface shows an additional comment that “client was disconnected because could not assign vlan

/interface bridge
add admin-mac=C4:AD:34:2D:FD:D8 auto-mac=no comment=defconf ingress-filtering=no name=bridge vlan-filtering=yes
/interface bridge port
add bridge=bridge interface=ether1
add bridge=bridge interface=wifi1-24
add bridge=bridge interface=wifi2-5
add bridge=bridge interface=ether2
add bridge=bridge interface=wifi4
/interface bridge vlan
add bridge=bridge tagged=bridge,ether1 vlan-ids=70
add bridge=bridge tagged=ether1,bridge,wifi4 vlan-ids=40

/interface ethernet
set [ find default-name=ether1 ] mtu=1508

/interface vlan
add interface=bridge name=70-MGMT vlan-id=70

/interface wifiwave2 channel
add band=2ghz-n frequency=2412,2437,2462 name=24-Ghz width=20mhz
add frequency=5180,5260,5500,5580 name=5Ghz skip-dfs-channels=10min-cac width=20/40/80mhz

/interface wifiwave2 security
add authentication-types=wpa2-psk dh-groups=19,20,21 encryption=ccmp group-encryption=ccmp group-key-update=5m management-encryption=cmac management-protection=allowed name=Home-Wireless-Security wps=disable

/interface wifiwave2
# client was disconnected because could not assign vlan
add channel=5Ghz channel.frequency=5180 configuration.country=Netherlands .mode=ap .ssid="Test Me Up" disabled=no mac-address=C6:AD:34:2D:FD:DA master-interface=wifi2-5 name=wifi4 security=Home-Wireless-Security

/interface wifiwave2 access-list
add action=query-radius disabled=no interface=wifi4 radius-accounting=no

In release notes of ROS v7.7beta (3,4 and 6) , dynamic VLAN support mentioned as added for 802.11ax interface.
If it can be done in access-list , maybe it will also work for RADIUS

*) wifiwave2 - added option to set per-client vlan-id in access list (only supported on 802.11ax interfaces) (CLI only);

Use cases: https://www.portnox.com/blog/network-segmentation-dynamic-vlan-assignment/

https://forum.mikrotik.com/viewtopic.php?p=989540#p989540

Hi …
i was just wondering if that dynamic VLAN feature within wifiwave2 became available in the meanwhile -
either with RADIUS or through AccessLists?
thank you for a short update

Hi,

My assumption is that depending on the mac address you want to assign different Vlans using radius.

I’ve implemented by simply configuring the bridge vlan and then per user in user manager In user manage I’m the adding the vlan attribute to specify for each user the vlan and other parameters it should use.

I’ve tested the approach with AX using the new WIfi packages and also on wifi 5 devices with the wireless packages.

Wave 2 on my wifi 5 doesn’t permit assining vlan’s this way.

regards

Luis Meira

Would you be so kind to share that with us, @lmeira? Perhaps an export of the relevant part?
I currently use PPSK, but am looking for a more future proof solution (that supports WPA3 as well).

Hi,

Attached you have my sample configuration.

Radius is being used to authenticate Wireless and Dot1x ( Ethernet Ports ) using mac address authentication.

Once the mac addresss is authenticated, User Manager & Radius return a specific VLAN. Depending on the processs being authenticated ( Wireless / Ethernet ) different attributes are used to return the vlan.

For the sake of testing two bridge vlan’s are configured Vlan 99 - Management Vlana and Vlan 20 - Home Devices.

I’ve left two mac address to examplify the parameters expected to be passed when performing the different type of authentication.



regards
backup.rsc (8.92 KB)

I see “/interface wireless …” in provided .rsc file.
That means - you are using legacy wireless drivers, not wifi-qcom-ac drivers.

Hi,

Yes I’m using the wireless interface regretely.

I’ve still not able to upgrade. One of my routers if i upgrade will loose 5ghz radio, on the other router vlan assignment still doensn’t work.

It’s a problem of the config but on the new wave2 drivers for ac devices.

I’ve tested similar setup on two AX router without issues.

There a few slight changes on the radius setup for eg in wave2:

  1. you’ll need to add an access list enty in Wifi-> Access List to call the Radius for authentication. Previously this was in Wifi-> Security → Radius.

  2. In Wifi → AAA , you’ll define the radius parameters format. This values were previously fixed.

  3. You’ll need to assign the AAA format that you want to use to your configuration.

Attach you have some sreenshots.

I would like to use wave2, it would have solve a lot of my issues. But, it’s too unstable at least for my level of knowlege.

I’ve got a lot of wifi smar devices and for some of the old ones, for some reason I’ve stugling for ages, they disconeect and reconnect every few seconds. For this reason I’ve posponing the swap.


regards

Luis
radius - accesslist.png
radius- aaa setup.png