# Set up ArubaOS-Switch for Trustaige RADIUS

> Configure an ArubaOS-Switch (2930F and others on 16.11) for 802.1X with MAC-based fallback against Trustaige RADIUS, with VLANs and disconnects.

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

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.

ArubaOS-Switch, the former ProCurve line, runs 802.1X and MAC-based
authentication side by side on a port. With an order set, it tries 802.1X
first. Its MAC-based authentication sends CHAP (`chap-radius`) over the MAC in
lowercase without separators, which Trustaige accepts.

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 |
|---|---|
| ArubaOS-Switch 16.11.0025 or later | It adds Message-Authenticator to RADIUS requests. Trustaige drops requests without it. |
| The VLANs Trustaige will name, on the switch | `vlan <your-restricted-vlan>`, and the wired network's **VLAN** if you set one. |

## RADIUS servers, accounting and disconnects

```txt title="ArubaOS-Switch"
radius-server host <your-radius-server> key "<your-radius-secret>"
radius-server host <your-radius-server> dyn-authorization
aaa accounting network start-stop radius
aaa accounting update periodic 5
```

- Set the server's ports with `auth-port` and `acct-port` if the hub's
  **Port** isn't `1812`. Add the secondary server the same way.
- **`dyn-authorization`** accepts Disconnect-Requests from that host on UDP
  3799, the port the hub uses for **Aruba**. The switch accepts them only from
  addresses configured as RADIUS hosts: if the hub lists a disconnect address,
  under **Disconnects on UDP 3799**, that isn't one of your servers, add it as
  a host with the same key and `dyn-authorization`.
- **`time-window`** stays at its default, 300 seconds: the switch accepts a
  Disconnect-Request whose `Event-Timestamp` is that recent. Trustaige puts
  one in every request, so keep the switch's clock in sync over NTP.

## 802.1X and MAC-based authentication

```txt title="ArubaOS-Switch"
aaa authentication port-access eap-radius
aaa authentication mac-based chap-radius
aaa port-access authenticator 1-24
aaa port-access authenticator 1-24 client-limit 4
aaa port-access mac-based 1-24
aaa port-access 1-24 auth-order authenticator mac-based
aaa port-access 1-24 auth-priority authenticator mac-based
aaa port-access authenticator active
```

- **`client-limit`** makes each device on the port authenticate on its own,
  such as a PC behind an IP phone. Without it, one authentication opens the
  port to every device behind it.
- **`auth-order` and `auth-priority`**, set in that order, make the switch try
  802.1X first. Without them, both methods start at once.
- `pap-radius` works as well as `chap-radius`. Leave `addr-format` at its
  default, `no-delimiter`; Trustaige reads any format.
- Don't set `aaa port-access mac-based password`. It gives every device one
  shared password, which Trustaige refuses.

The switch applies the VLAN Trustaige names in `Tunnel-Private-Group-ID`.
Leave `unauth-vid` unset, so a refused device gets no network.

## Check it works

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

   ```txt title="ArubaOS-Switch"
   show port-access authenticator clients
   show port-access mac-based clients detail
   show radius
   ```

   `show radius` lists the dynamic authorization port.
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.

## Troubleshooting

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

The release predates 16.11.0025. Update the switch.

**A device behind a phone gets the phone's VLAN, or no network**

`client-limit` isn't set, so the port authenticates once for everything
behind it. Set it on the port.

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

Check `dyn-authorization` on a host entry for each address the hub lists,
that the switch's clock is in sync, and that accounting reaches Trustaige.

## What hasn't been confirmed yet

- Whether 16.11.0025's Message-Authenticator covers MAC-based authentication
  requests isn't stated by HPE, and Trustaige's lab hasn't recorded a real
  switch's request.
- That `chap-radius` is the default for `aaa authentication mac-based` isn't
  stated; the guide sets it.
- Whether the switch acts on `Termination-Action` `RADIUS-Request` for a
  MAC-based client isn't documented.

## HPE Aruba Networking documentation

- [RADIUS server configuration, ArubaOS-Switch 16.10](https://arubanetworking.hpe.com/techdocs/AOS-S/16.10/ASG/KB/content/asg%20kb/cnf-swi-acc-rad-ser44.htm)
- [Global RADIUS parameters: dyn-authorization and time-window](https://arubanetworking.hpe.com/techdocs/AOS-S/16.10/ASG/KB/content/asg%20kb/cnf-swi-glo-rad-par.htm)
- [Authentication order and priority](https://arubanetworking.hpe.com/techdocs/AOS-S/16.11/ASG/WC/content/common%20files/aut-ord-pri.htm)
- [ArubaOS-Switch 16.11 enhancements](https://arubanetworking.hpe.com/techdocs/AOS-Switch-RN/Content/16.11RN/WC/Enhancements.htm)
