# Set up TP-Link Omada switches for Trustaige RADIUS

> Configure Omada-managed switches for 802.1X and MAB against Trustaige RADIUS from the Omada controller, with VLAN assignment, accounting and CoA.

Source: https://docs.trustaige.com/manage/switch-omada

Replace these placeholders with your organization's own values:

- `<your-radius-server>`: Trustaige RADIUS server, for example `203.0.113.10`. The Server, or Primary server, the hub shows when you register your RADIUS server at a site.
- `<your-restricted-vlan>`: Restricted VLAN, for example `30`. The Restricted VLAN for headless devices on the wired network’s settings in the hub.
- `<your-radius-secret>`: RADIUS shared secret, a secret. The hub shows it once, when you register your RADIUS server at a site.

The Omada controller sets up 802.1X for its switches from one page. With
**Authentication Mode** set to **Both**, a port tries 802.1X and, when a
device doesn't start it or fails it, tries MAB every 30 seconds, sending the
device's MAC as user name and password. Omada doesn't say whether its MAB
requests carry Message-Authenticator, which Trustaige requires, so check that
first (see [Check what the switch sends](#check-what-the-switch-sends)).

Read [Run a wired office on Trustaige RADIUS](/manage/wired-8021x) first for
the hub's side. Register each switch with the make **Other**, at the address
its RADIUS requests come from.

## Before you start

| You need | Why |
|---|---|
| Omada controller 6.2 or later, with current switch firmware | VLAN assignment on MAC-based ports, **Require Message-Authenticator** and the guest VLAN setting arrived in 6.2; CoA needs switch firmware recommended for 6.1. |
| The VLANs Trustaige will name, created in the controller | `<your-restricted-vlan>`, and the wired network's **VLAN** if you set one. |

## In the Omada controller

1. **Add a RADIUS profile.** Open **Network Settings › Profile › RADIUS
   Profile** and create one named `Trustaige`:
   - **Authentication Server IP/URL** `<your-radius-server>`, **Authentication
     Port** the hub's **Port**, and **Authentication Password** the shared
     secret (`<your-radius-secret>`). Add the secondary server with **Add New
     Authentication Server**.
   - **RADIUS Accounting:** on, with the port after the hub's **Port**.
   - **Require Message-Authenticator:** on. Trustaige signs every reply with
     it.
   - **RADIUS CoA:** on.

2. **Turn on 802.1X.** Open **Network Settings › Authentication › 802.1X**,
   turn it on, and set:
   - **RADIUS Profile:** `Trustaige`.
   - **Authentication Protocol:** **EAP**, so the switch passes EAP through.
   - **Authentication Type:** **MAC-Based**, so each device on a port is
     decided separately.
   - **VLAN Assignment:** on.
   - **Guest VLAN:** off.
   - **MAB Format:** any. Trustaige reads the MAC in any format.

3. **Choose the ports.** Set **Authentication Mode** to **Both** and select
   the access ports.

## Check what the switch sends

Plug a printer into a selected port and watch **Live test** in the hub:

- **The MAC appears** under **Seen but not registered** on **Headless
  devices**: the switch's MAB requests reach Trustaige in a form it accepts.
- **The activity says “The access point does not sign its requests”**: the
  switch sends MAB requests without Message-Authenticator, and Trustaige can't
  admit devices by MAC through it. Managed computers, which join over EAP,
  are unaffected.

## Disconnects

With **RADIUS CoA** on, Omada switches act on Disconnect-Requests. Omada
doesn't name the port they listen on: the hub sends to UDP 3799 for the make
**Other**. If the controller shows another port, choose **Disconnects on UDP
3799** beside the switch on the site's page and set its **Disconnect port**.

## What hasn't been confirmed yet

- Whether Omada switches add Message-Authenticator to MAB requests isn't
  documented. Omada's own guide warns that PAP and CHAP requests typically
  lack it.
- Whether MAB is sent as PAP or CHAP isn't documented; both carry the MAC as
  the password, which Trustaige accepts.
- The values **MAB Format** offers, and the port Omada switches take
  Disconnect-Requests on, aren't documented.
- Whether Omada switches act on `Session-Timeout` with `Termination-Action`
  `RADIUS-Request` isn't documented.
- The menu paths are those of controller 6.1 and later; older controllers
  name them differently. Trustaige's lab hasn't yet recorded an Omada switch.

## TP-Link documentation

- [How to build an 802.1X access authentication system using switches in Omada Controller](https://support.omadanetworks.com/ph/document/12898/)
- [802.1X VLAN assignment and MAB on standalone switches](https://www.omadanetworks.com/en/configuration-guides/configuration_guide_for_802_1x_vlan_assignment_and_mab/)
