These steps are for MikroTik devices on RouterOS 7 that show a WiFi menu in WinBox (for example hAP ax, cAP ax and wAP ax). If your device shows Wireless instead, use the MikroTik legacy Wireless guide. If your access points are CAPs managed by CAPsMAN, make these changes on the CAPsMAN router, as it sends the RADIUS requests for every CAP. Log in with WinBox and click RADIUS on the left menu.
RADIUS
Click + and configure:
Service: | wireless (ticked, all others unticked) |
Address: | **radius_server_ip_1** |
Protocol: | udp |
Secret: | **radius_secret** |
Authentication Port: | **radius_auth_port** |
Accounting Port: | **radius_acct_port** |
Click OK, then click + again and add:
Service: | wireless (ticked, all others unticked) |
Address: | **radius_server_ip_2** |
Protocol: | udp |
Secret: | **radius_secret** |
Authentication Port: | **radius_auth_port** |
Accounting Port: | **radius_acct_port** |
Click OK. In the RADIUS window click Incoming and check:
Accept: | Unticked |
Security
Click WiFi on the left menu, open the Security tab, click + and configure:
Name: | purple-staff |
Authentication Types: | WPA2 EAP (ticked, all others unticked) |
EAP Accounting: | Ticked |
Management Protection: | disabled |
Click OK.
AAA
Open the AAA tab, click + and configure:
Name: | purple-staff |
NAS Identifier: | **nasid** |
Click OK.
Configuration
Open the Configurations tab, click + and configure:
Name: | purple-staff |
SSID: | Staff WiFi (or whatever we've agreed) |
Country: | The country the device is in |
Security: | purple-staff |
AAA: | purple-staff |
Click OK.
Interfaces
Open the WiFi tab. To broadcast Staff WiFi alongside your existing network, click + and configure:
Name: | staff-wifi1 |
Master Interface: | wifi1 |
Configuration: | purple-staff |
Click OK, then enable the new interface. If the device has a second radio, do the same with Name staff-wifi2 and Master Interface wifi2. To use a radio for Staff WiFi alone, open wifi1 (and wifi2) instead and set Configuration to purple-staff.
Click Bridge on the left menu, open the Ports tab, click + and add each new interface to the bridge your staff network uses (or give it the VLAN your staff network uses).
Terminal
You can make the same changes from New Terminal instead. Change the country and the bridge name to match your device, and leave out the staff-wifi2 lines on a single-radio device:
/radius add service=wireless address=**radius_server_ip_1** secret=**radius_secret** authentication-port=**radius_auth_port** accounting-port=**radius_acct_port**
/radius add service=wireless address=**radius_server_ip_2** secret=**radius_secret** authentication-port=**radius_auth_port** accounting-port=**radius_acct_port**
/radius incoming set accept=no
/interface wifi security add name=purple-staff authentication-types=wpa2-eap eap-accounting=yes management-protection=disabled
/interface wifi aaa add name=purple-staff nas-identifier="**nasid**"
/interface wifi configuration add name=purple-staff ssid="Staff WiFi" country="United Kingdom" security=purple-staff aaa=purple-staff
/interface wifi add name=staff-wifi1 master-interface=wifi1 configuration=purple-staff disabled=no
/interface wifi add name=staff-wifi2 master-interface=wifi2 configuration=purple-staff disabled=no
/interface bridge port add bridge=bridge interface=staff-wifi1
/interface bridge port add bridge=bridge interface=staff-wifi2RouterOS applies each change as soon as you click OK or run the command.
Configuration Complete
The configuration is now complete.