# Run a wired office on Trustaige RADIUS

> Put your switch ports behind 802.1X with Trustaige RADIUS deciding each one, managed computers by certificate and headless devices by MAC or certificate.

Source: https://docs.trustaige.com/manage/wired-8021x

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.

On a wired office run by Trustaige, every access port asks Trustaige RADIUS
who may use it. Managed Windows PCs and Macs join with the certificate
Trustaige gives them, held in their own hardware. Printers, phones, cameras
and other devices that run no agent join as **headless devices**: by a
certificate whose key they generated themselves, or, more weakly, by their MAC
address into a restricted VLAN.

1. Switch → Device: EAPOL: who are you?
2. Device ↔ Trustaige RADIUS: EAP-TLS with the device certificate, carried by the switch
3. Trustaige RADIUS → Switch: Access-Accept with a VLAN and Session-Timeout, or Access-Reject
4. Switch → Trustaige RADIUS: no EAPOL answer: MAC authentication bypass, the MAC as name and password
5. Trustaige RADIUS → Switch: Access-Accept into the restricted VLAN, or Access-Reject

The switch tries 802.1X first. A device that answers no EAPOL is asked about
by its MAC instead (MAC authentication bypass, or MAB), after a wait each
switch sets in its own way.

## Who joins, and how

| Device | How it proves itself | Where it lands |
|---|---|---|
| Windows PC managed by Trustaige | EAP-TLS with a TPM-protected certificate, through Wired AutoConfig | The wired network's **VLAN**, or the port's own |
| Supervised Mac with Apple silicon or the T2 chip | EAP-TLS with a hardware-bound certificate, on its first active Ethernet port | The wired network's **VLAN**, or the port's own |
| Headless device with a certificate | EAP-TLS with a key it generated, signed by Trustaige | The restricted VLAN, or the device's own VLAN |
| Headless device admitted by MAC | Its MAC address, at the switch port it was first admitted on | The restricted VLAN, or the device's own VLAN |
| Anything else | Nothing Trustaige recognises | Refused |

A device out of compliance can be held in the **Remediation VLAN** for 15
minutes at a time, so it can update. See [Headless devices](/manage/headless-devices)
for registering printers, phones and cameras.

## Before you start

| You need | Why |
|---|---|
| Switches that pass EAP through to RADIUS and fall back to MAB | Trustaige decides EAP-TLS itself; a switch that ends EAP on its own can't carry it. |
| Each switch reachable from Trustaige, or a [site connector](/manage/conduit) on the office network | Switches send RADIUS to Trustaige from a fixed public address, or to a connector on the office network. |
| The VLANs you will use, already on the switches | Trustaige names a VLAN; the switch must already carry it. |

## In Trustaige

1. **Add the wired network.** Open **Devices › Networks**, choose **Add
   network**, and at **Kind** choose **Wired**. At **Server**, choose
   **Trustaige RADIUS**. Set the **VLAN** where managed devices land (empty
   leaves it to the switch port), and optionally a **Remediation VLAN**.

2. **Set the restricted VLAN.** On the wired network's settings, enter the
   **Restricted VLAN for headless devices**, for example
   `<your-restricted-vlan>`. Until it is set, no device is admitted by its
   MAC address.

3. **Connect a site.** Open **Devices › Networks › Sites** and connect a site
   for the office. At **How it connects**, choose **Site connector** (the
   recommended route) or **Access points send RADIUS**, for switches with a
   fixed public address.

4. **Register each switch.** At **Access points**, choose **Access points**,
   then the make: **Cisco**, **Meraki**, **Aruba**, **UniFi**, **MikroTik**,
   or **Other** for Juniper, TP-Link Omada, Ruijie and H3C. Name it and enter
   its address: the **Office network address** behind a connector, otherwise
   its **Public address**.

5. **Copy the values.** The **Server** (or **Primary server** and **Secondary
   server**), the **Port**, and the shared secret, shown once. Each guide
   enters them as `<your-radius-server>` and `<your-radius-secret>`.

6. **Serve the wired network at the site.** A site serves one wired network,
   because a switch names no network. Leave **Live test** open while you set
   up the switch.

## What every switch needs

| Setting | What Trustaige expects |
|---|---|
| RADIUS server | The hub's servers and **Port**, accounting on the port after it, the shared secret. |
| Message-Authenticator | On every Access-Request, MAB included. Trustaige drops a request without it, unanswered (Blast-RADIUS, CVE-2024-3596). |
| 802.1X | EAP passed through to RADIUS, not ended on the switch. |
| MAB | PAP or CHAP with the MAC as the password, or the MAC as the user name alone. `User-Name` must be the same MAC as `Calling-Station-Id`, in any format. EAP-MD5 and one shared MAB password for every device are refused. |
| Host mode | Several devices per port, each decided on its own, for a PC behind an IP phone. |
| Dynamic VLAN | The RFC 3580 attributes: `Tunnel-Type` 13, `Tunnel-Medium-Type` 6, `Tunnel-Private-Group-ID`. |
| Re-authentication | `Session-Timeout` with `Termination-Action` set to `RADIUS-Request`: the switch asks again before the timeout. |
| Accounting | Start, interim and stop, so the hub shows sessions and can disconnect them. |
| Disconnects | RFC 5176 Disconnect-Requests from Trustaige, on the port the hub shows. |

Every Access-Accept carries a `Session-Timeout`, four hours for a device
admitted by MAC, and Trustaige's `Class`. With a VLAN set, it also carries the
three tunnel attributes; without one, the device stays in the port's VLAN.

## Guides for your switch

| Switch | MAB as Trustaige receives it | Falls back to MAB | Disconnect port | Make in the hub |
|---|---|---|---|---|
| [Cisco Catalyst (IOS XE)](/manage/switch-cisco-catalyst) | PAP | About 90 seconds by default | 1700 | Cisco |
| [Cisco Meraki MS](/manage/switch-meraki) | PAP | 8 seconds (Hybrid) | 1700 | Meraki |
| [Aruba CX (AOS-CX)](/manage/switch-aruba-cx) | CHAP | Set by precedence | 3799 | Aruba |
| [ArubaOS-Switch](/manage/switch-arubaos) | CHAP | Set by order | 3799 | Aruba |
| [Juniper EX](/manage/switch-juniper-ex) | PAP, once set | After three unanswered EAPOL requests | 3799 | Other |
| [UniFi](/manage/switch-unifi) | Not documented | Not documented | Not documented | UniFi |
| [TP-Link Omada](/manage/switch-omada) | Not documented | 802.1X, then MAB every 30 seconds | Not documented | Other |
| [MikroTik (RouterOS 7)](/manage/switch-mikrotik) | The MAC as user name alone | 3 × `retrans-timeout` (90 seconds) | 3799, once set | MikroTik |
| [Ruijie (RGOS)](/manage/switch-ruijie) | PAP | After 802.1X times out | 3799 | Other |
| [H3C (Comware 7)](/manage/switch-h3c) | PAP | After `auth-delay` | 3799 | Other |

The disconnect port follows the make you choose in the hub. Where a switch
listens elsewhere, choose **Disconnects on UDP …** beside it on the site's
page and set its **Disconnect port**.

## Disconnects

When a device loses its standing, or an admin chooses **Disconnect now**,
Trustaige sends the switch a Disconnect-Request naming the session by its
`Acct-Session-Id`, `Calling-Station-Id`, `User-Name` and `NAS-Identifier`,
with an `Event-Timestamp` for the switch's replay protection. The switch
must:

- send accounting, since Trustaige can end only a session it saw in
  accounting;
- accept Disconnect-Requests from the addresses the hub lists when you choose
  **Disconnects on UDP …**, with the same shared secret.

A switch that can't take disconnects still asks again within the
`Session-Timeout`, and a device that lost its standing is refused then.

## Check it works

1. On the site's page, keep **Recent joins** in view, or open **Devices ›
   Networks › Activity**.
2. Plug a managed PC or Mac into a configured port. The join appears with the
   device and the reason, and the activity names the switch port it joined on.
3. Plug in a headless device that isn't registered. It is refused, and appears
   under **Seen but not registered** on **Headless devices**, to register.

## Troubleshooting

**The switch marks Trustaige as dead, and the hub shows nothing**

Trustaige drops a request it can't authenticate without answering. Check the
shared secret, that the switch is registered at the address its requests come
from, and that outbound UDP to the hub's **Port** is allowed.

**Activity says “The access point does not sign its requests. Turn on Message-Authenticator in its RADIUS settings.”**

The switch sent an Access-Request without Message-Authenticator. Every guide
turns it on; MAB requests are the usual cause, since EAP requests always carry
it. Update the switch to a release that adds it to every request.

**Activity says “The device asked for a sign-in method other than a certificate.”**

On a MAB request, the switch sent EAP-MD5, or a password that isn't the MAC.
Set MAB to PAP or CHAP, and remove any shared MAB password.

**Activity says “An access point that is not registered sent a request.”**

The request came from an address that isn't registered at the site. Register
the address the switch sends from; behind a connector, **Live test** lists the
addresses the connector heard.

**The device is accepted but lands in the wrong VLAN**

The switch didn't apply the tunnel attributes, or doesn't carry that VLAN.
Check the switch's dynamic VLAN setting in its guide, and that the VLAN exists
on the switch.
