# Set up Aruba CX switches for Trustaige RADIUS

> Configure an AOS-CX switch for 802.1X with MAC authentication fallback against Trustaige RADIUS, with dynamic VLANs, accounting and disconnects.

Source: https://docs.trustaige.com/manage/switch-aruba-cx

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.

AOS-CX passes each port's EAP through to RADIUS, and its MAC authentication
sends CHAP by default, over the MAC in lowercase without separators. Trustaige
checks a CHAP MAC authentication against the MAC itself, so the defaults work.

Read [Run a wired office on Trustaige RADIUS](/manage/wired-8021x) first for
the hub's side. Register the switch with the make **Aruba**.

## Before you start

| You need | Why |
|---|---|
| AOS-CX 10.10.1140, 10.13.1040, 10.14.1010 or later | HPE's fix for Blast-RADIUS (HPESBNW04662) is in these releases. Trustaige drops requests without Message-Authenticator. |
| A 4100i, 6100, 6200, 6300 or 6400 | The 8320, 8325 and 8360 have no port access authentication. |
| The VLANs Trustaige will name, on the switch | `vlan <your-restricted-vlan>`, and the wired network's **VLAN** if you set one. |

## RADIUS servers and accounting

```txt title="AOS-CX"
radius-server host <your-radius-server> key plaintext <your-radius-secret>
aaa group server radius trustaige
    server <your-radius-server>
aaa accounting port-access start-stop interim 5 group trustaige
```

- If the hub's **Port** isn't `1812`, add `port` and `acct-port` to the
  `radius-server host` line. Add the secondary server the same way.
- Add `vrf mgmt` to the host and group server lines if the switch reaches
  Trustaige through its management port.

## 802.1X and MAC authentication

```txt title="AOS-CX"
aaa authentication port-access dot1x authenticator
    radius server-group trustaige
    enable
aaa authentication port-access mac-auth
    radius server-group trustaige
    enable
```

- Leave `auth-method` at its default, `chap`, or set `pap`; Trustaige takes
  either. Leave `addr-format` at its default, `no-delimiter`; Trustaige reads
  any format.
- Don't set `aaa authentication port-access mac-auth password`. It gives every
  device one shared password, which Trustaige refuses.

## Access ports

```txt title="AOS-CX"
interface 1/1/10
    no shutdown
    vlan access 10
    aaa authentication port-access client-limit 4
    aaa authentication port-access auth-precedence dot1x mac-auth
    aaa authentication port-access dot1x authenticator
        enable
    aaa authentication port-access mac-auth
        enable
```

- `client-limit` above 1 lets a PC behind an IP phone and the phone each be
  decided separately. It counts every method together.
- `auth-precedence dot1x mac-auth` tries 802.1X first.

AOS-CX applies `Tunnel-Private-Group-ID`, `Session-Timeout` and
`Termination-Action` from the Access-Accept: the VLAN Trustaige names, and a
fresh request before the timeout.

## Disconnects

Trustaige sends Disconnect-Requests to Aruba switches on UDP 3799, the port
AOS-CX listens on. Allow each address the hub lists when you choose
**Disconnects on UDP 3799** beside the switch:

```txt title="AOS-CX"
radius dyn-authorization enable
radius dyn-authorization client 198.51.100.7 secret-key plaintext <your-radius-secret>
```

Add one `client` line for each address the hub lists, in place of
`198.51.100.7`. Leave `replay-protection` and `time-window` at their
defaults: every Disconnect-Request from Trustaige carries an
`Event-Timestamp`.

## Check it works

1. Plug a managed PC into the port, then a printer.
2. On the switch:

   ```txt title="AOS-CX"
   show aaa authentication port-access interface 1/1/10 client-status
   show radius dyn-authorization
   ```

   Each device shows its method, its VLAN and the session timeout Trustaige
   sent.
3. In the hub, **Recent joins** shows each decision, and the activity names
   the port.
4. Block the PC in the hub. Its session ends within seconds, and the
   dyn-authorization counters show the request.

## Troubleshooting

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

The release predates HPE's Blast-RADIUS fix. Update to one of the releases
under [Before you start](#before-you-start).

**The client status shows Server-Reject for a printer**

Check the activity in the hub for the reason: a printer that isn't
registered is listed under **Seen but not registered**, and one that moved
port is refused until you accept the move.

**The hub shows a Disconnect-Request as not acknowledged**

Check `radius dyn-authorization enable`, the client address and secret, and
that accounting reaches Trustaige. Trustaige puts an `Event-Timestamp` in
every Disconnect-Request, so keep the switch's clock in sync over NTP for
replay protection to accept it.

## What hasn't been confirmed yet

- HPE doesn't say whether its Blast-RADIUS fix adds Message-Authenticator to
  MAC authentication requests. Trustaige's lab has exercised CHAP MAB as
  AOS-CX sends it, not a real switch's request.
- The defaults for `replay-protection` and `time-window` on a
  dyn-authorization client aren't documented; the guide leaves both at their
  defaults.
- How long a port waits on 802.1X before MAC authentication isn't documented.

## HPE Aruba Networking documentation

- [`radius-server host`, AOS-CX 10.13](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/HTML/security_6200-6300-6400/Content/Rem_AAA_cmds/rad-ser-hos-10.htm)
- [`mac-auth auth-method`, AOS-CX 10.13](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/HTML/security_6200-6300-6400/Content/Chp_Port_acc/Port_acc_MAC_cmds/aaa-aut-por-acc-mac-aut-aut-met-fl-10.htm)
- [`radius dyn-authorization client`, AOS-CX 10.13](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/HTML/security_6200-6300-6400/Content/Chp_RAD_dyn_auth/RAD_dyn_auth_cmds/rad-dyn-aut-cli-fl-10.htm)
- [HPESBNW04662: RADIUS protocol vulnerability](https://csaf.arubanetworking.hpe.com/2024/hpe_aruba_networking_-_hpesbnw04662.txt)
