Interworking for WiFi6
CLI reference:/interface/wifi/interface/wifi/interworking/certificate/radius
Package: wifi-qcom
Beacons and probe responses carry only a little information about a network: its name, security and capabilities. IEEE 802.11u (Interworking with External Networks) adds more, so that a client can choose an access point by the networks and services behind it before it associates.
Hotspot 2.0 is a Wi-Fi Alliance specification built on Interworking. It gives Wi-Fi a more cellular-like experience: a client with credentials from a service provider finds and joins the access points that accept them. Hotspot 2.0 access points use WPA2-Enterprise (802.1X) authentication. RouterOS implements Interworking according to IEEE 802.11u and Hotspot 2.0 Release 1.
How it works
An interworking profile, /interface/wifi/interworking, holds the information the access point advertises. Assign it to an interface with interworking=<profile>, or set its parameters on the interface itself as interworking.<parameter>. In WinBox, use the WiFi > Interworking tab for profiles, and the Interworking tab of the interface for the profile or the inline values.
The information reaches the client in two ways.
In beacons and probe responses
The access point adds these elements to its beacons and probe responses:
- The Interworking element, with the access network type (
network-type), internet access (internet), emergency services reachable (esr), unauthenticated emergency services accessible (uesa), the venue group and type (venue), and the HESSID whenhessidis set. - The Advertisement Protocol element, which names ANQP as the protocol for queries.
- The Roaming Consortium element, with the organization identifiers from
roaming-ois(the three OIs of the example below). - The Hotspot 2.0 Indication element, when
hotspot20=yes. Withhotspot20-dgaf=no, it says that downstream group-addressed forwarding is disabled.
hessid identifies a homogeneous ESS: access points that give access to the same external networks use the same HESSID, written as a MAC address. Use one of the MAC addresses of an access point in that set, so that the value is unique.
Through ANQP
The other parameters are ANQP (Access Network Query Protocol) elements. They are not in the beacons; a client asks the access point for the elements it needs before it associates. These include the venue names, domain names, NAI realms, 3GPP cellular network information, the operator names, the IPv4 and IPv6 address availability, the WAN metrics and the connection capabilities.
The /interface/wifi/interworking CLI reference describes each parameter and its values.
NAI realms by hand
realms takes realm names and EAP methods, for example realms=Test:eap-tls. To set the NAI Realm element by hand, use realms-raw: a list of hex strings, each the contents of one NAI Realm Tuple without the NAI Realm Data Field Length field. Each string consists of these fields:
- NAI Realm Encoding (1 byte)
- NAI Realm Length (1 byte)
- NAI Realm (variable)
- EAP Method Count (1 byte)
- EAP Method Tuples (variable)
For example, 00045465737401020d00 decodes as:
- NAI Realm Encoding: 0 (rfc4282)
- NAI Realm Length: 4
- NAI Realm: Test
- EAP Method Count: 1
- EAP Method Length: 2
- EAP Method Tuple: TLS, no EAP method parameters
realms-raw=00045465737401020d00 gives the same advertisement as realms=Test:eap-tls. For the full encoding, see IEEE 802.11-2016, section 9.4.5.10.
Hotspot 2.0 with RadSec and Orion Wifi
This example connects an access point to Orion Wifi, a Hotspot 2.0 service provider. The steps are the same for other providers: they give you the certificates, the RADIUS server address and the values for the interworking profile.
The access point and the provider's RADIUS server talk over RadSec (RADIUS over TLS), which encrypts all AAA traffic between them.
Import the RadSec certificates
Download the certificates from the Orion portal: in the Manage tab, under RadSec Certificates > Download Orion Certificates > Generate Client Certificate Bundle.
Upload the three files to the router: drag and drop them into WinBox, or use FTP or SFTP. Check that they are there:
/file/print where name~".pem"
Columns: NAME, TYPE, SIZE, LAST-MODIFIED
# NAME TYPE SIZE LAST-MODIFIED
7 key.pem .pem file 241 2026-12-03 11:49:31
8 cert.pem .pem file 542 2026-12-03 11:49:31
9 bw.radsec.cacert.pem .pem file 554 2026-12-03 11:49:31
Import the files one by one. Start with the RadSec CA certificate:
/certificate/import file-name=bw.radsec.cacert.pem passphrase=""
Then the client certificate, which the access point uses for the RadSec connection:
/certificate/import file-name=cert.pem passphrase=""
Then the private key of the client certificate:
/certificate/import file-name=key.pem passphrase=""
The CA certificate is trusted (T), and the client certificate is trusted and has its private key (K):
/certificate/print where name~".pem"
Flags: K - PRIVATE-KEY; T - TRUSTED
Columns: NAME, TRUST-STORE, COMMON-NAME
# NAME TRUST-STORE COMMON-NAME
2 T bw.radsec.cacert.pem_0 all Example RadSec CA
3 KT cert.pem_0 all ap1.radsec.example.net
Add the RADIUS server
/radius
add address=216.239.32.91 certificate=cert.pem_0 protocol=radsec \
radsec-timeout=1s500ms service=
Set up the Wi-Fi interface
Add a security profile for 802.1X authentication:
/interface/wifi/security
add authentication-types=wpa2-eap disabled=no eap-accounting=yes \
management-protection=allowed name=orion_password_profile \
wps=disable
Add the interworking profile:
/interface/wifi/interworking
add disabled=no domain-names=orion.area120.com hotspot20=yes \
hotspot20-dgaf=yes internet=yes ipv4-availability=public \
ipv6-availability=not-available name=interworking \
network-type=public-chargeable operator-names=Orion:eng \
realms=orion.area120.com:eap-tls \
roaming-ois=f4f5e8f5f4,baa2D00100,baa2d00000 \
venue=business-unspecified venue-names=Orion:eng wan-downlink=50 \
wan-status=up wan-uplink=50
wan-downlink=50 and wan-uplink=50 are placeholders: set the speeds of your connection. Some clients use them to decide whether to join the network. Set venue, venue-names and the other values for your site. domain-names is the domain of the Hotspot 2.0 operator.
Set the network name and assign both profiles to the interface:
/interface/wifi
set [ find default-name=wifi1 ] configuration.country=Latvia .mode=ap \
.ssid=Orion disabled=no interworking=interworking \
security=orion_password_profile
Set the country you are in. The example uses wifi1; the same command works for the other Wi-Fi interfaces.
The interface shows the values it got from the profiles:
/interface/wifi/print detail where name=wifi1
Flags: M - MASTER; B - BOUND
0 MB ;;; DFS channel availability check (1 min)
default-name="wifi1" name="wifi1" l2mtu=1560
mac-address=02:00:00:00:01:00 arp-timeout=auto
radio-mac=02:00:00:00:01:00 configuration.ssid="Orion" .mode=ap
.country=Latvia security=orion_password_profile
security.management-protection=allowed .wps=disable .eap-accounting=yes
.authentication-types=wpa2-eap interworking=interworking
interworking.network-type=public-chargeable .internet=yes
.venue=business-unspecified .hotspot20=yes .hotspot20-dgaf=yes
.roaming-ois=f4f5e8f5f4,baa2D00100,baa2d00000 .venue-names=Orion:eng
.ipv4-availability=public .ipv6-availability=not-available
.realms=orion.area120.com:eap-tls .domain-names=orion.area120.com
.operator-names=Orion:eng .wan-status=up .wan-downlink=50 .wan-uplink=50
Orion uses the NAS identifier to tell networks apart, and it is the system identity of the router. To change it, set the identity, for example /system/identity/set name=exampleName.
Troubleshooting
The RADIUS menu shows how many requests the server got, accepted and rejected, and how many timed out:

On the command line, find the number of the server with /radius/print, and monitor it:
/radius/monitor 0 once
pending: 0
requests: 2
accepts: 0
rejects: 0
challenges: 0
accounting-responses: 0
other-replies: 0
resends: 0
timeouts: 2
bad-replies: 0
last-request-rtt: 0ms
timeouts counts the requests that got no answer; in this output, the server did not answer. For more detail, log the RADIUS packets:
/system/logging
add topics=radius,debug,packet
The messages appear in the log. The clients that are connected appear in /interface/wifi/registration-table/print.