Skip to content
Trustaige Docs

Set up Cisco Catalyst switches for Trustaige RADIUS

Configure a Catalyst switch on IOS XE 17 for 802.1X with MAB fallback against Trustaige RADIUS, with dynamic VLANs, accounting and disconnects.

  • Scale
  • Needs Cisco Catalyst on IOS XE 17
  • About 30 minutes
  • Rolling out
View as Markdown

A Catalyst switch passes each port’s EAP conversation through to Trustaige RADIUS, and asks about a device that answers no EAPOL by its MAC (MAB). Plain mab sends PAP with the MAC as the password and Service-Type set to Call-Check, which is what Trustaige accepts. The commands below use the classic authentication style, which IOS XE 17 still takes.

Read Run a wired office on Trustaige RADIUS first for the hub’s side. Register the switch with the make Cisco.

Before you start

You needWhy
IOS XE 17.18.1 or later, preferablyCisco lists Message-Authenticator on every RADIUS packet as new in 17.18.1. Trustaige drops requests without it.
The wired network served at a site, with the switch registered thereThe hub gives you the servers, the port and the shared secret.
The VLANs Trustaige will name, on the switchvlan <your-restricted-vlan>, and the wired network’s VLAN if you set one.

RADIUS servers

aaa new-model
!
radius server trustaige-1
 address ipv4 <your-radius-server> auth-port 1812 acct-port 1813
 key <your-radius-secret>
!
aaa group server radius trustaige
 server name trustaige-1
!
aaa authentication dot1x default group trustaige
aaa authorization network default group trustaige
aaa accounting dot1x default start-stop group trustaige
aaa accounting update newinfo periodic 5
dot1x system-auth-control
  • Always give auth-port and acct-port: Cisco’s documentation names more than one default. Set auth-port to the hub’s Port, and acct-port to the port after it.
  • If the hub showed a secondary server, add trustaige-2 the same way and list it in the group.
  • aaa authorization network is what lets the switch apply the VLAN Trustaige names.
aaa new-model
!
radius server trustaige-1
 address ipv4 <your-radius-server> auth-port 1812 acct-port 1813
 key <your-radius-secret>
!
aaa group server radius trustaige
 server name trustaige-1
!
aaa authentication dot1x default group trustaige
aaa authorization network default group trustaige
aaa accounting dot1x default start-stop group trustaige
aaa accounting update newinfo periodic 5
dot1x system-auth-control

Disconnects

Trustaige sends Disconnect-Requests to Cisco switches on UDP 1700. Allow each address the hub lists when you choose Disconnects on UDP 1700 beside the switch:

aaa server radius dynamic-author
 client 198.51.100.7 server-key <your-radius-secret>
 port 1700
 auth-type any

Add one client line for each address the hub lists, in place of 198.51.100.7.

aaa server radius dynamic-author
 client 198.51.100.7 server-key <your-radius-secret>
 port 1700
 auth-type any

Access ports

interface GigabitEthernet1/0/10
 switchport mode access
 switchport access vlan 10
 switchport voice vlan 20
 authentication host-mode multi-domain
 authentication order dot1x mab
 authentication priority dot1x mab
 authentication port-control auto
 authentication periodic
 authentication timer reauthenticate server
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 10
 spanning-tree portfast
  • mab, without eap. mab eap sends EAP-MD5, which Trustaige refuses.
  • The MAC format can stay at the default. Trustaige reads the MAC in any format. Don’t set mab request format attribute 2: it gives every device one shared password, which Trustaige refuses.
  • Fallback. With the defaults (tx-period 30 seconds, max-reauth-req 2), MAB starts about 90 seconds after the link comes up. tx-period 10 brings that to about 30 seconds.
  • Host mode. multi-domain admits one device in the voice VLAN and one in the data VLAN: an IP phone with a PC behind it. Trustaige marks a device registered with the kind Phone as a voice device (device-traffic-class=voice) on switches registered with the make Cisco, whether it joins by MAC or by certificate. Give the phone the port’s voice VLAN as its VLAN of its own, so the VLAN Trustaige names matches it. Where a port has more than one data device, or no phone, use multi-auth instead, which decides each device separately.
  • authentication timer reauthenticate server with authentication periodic has the switch ask again at the Session-Timeout Trustaige sends.

On a switch already converted to the new style (authentication convert-to new-style), the classic commands are refused. Use a control policy with the same order, host mode and re-authentication, under access-session.

interface GigabitEthernet1/0/10
 switchport mode access
 switchport access vlan 10
 switchport voice vlan 20
 authentication host-mode multi-domain
 authentication order dot1x mab
 authentication priority dot1x mab
 authentication port-control auto
 authentication periodic
 authentication timer reauthenticate server
 mab
 dot1x pae authenticator
 dot1x timeout tx-period 10
 spanning-tree portfast

Message-Authenticator

EAP requests always carry Message-Authenticator. MAB requests carry it on IOS XE 17.18.1 and later. On an earlier release, plug a headless device into a configured port and watch Live test: if the activity says “The access point does not sign its requests”, MAB requests lack it, and the switch needs a later release before it can admit devices by MAC.

Check it works

  1. Plug a managed PC into the port, then a printer.

  2. On the switch:

    show access-session interface GigabitEthernet1/0/10 details

    Each device shows its method (dot1x or mab), Authorized, the 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. With disconnects reaching the switch, its session ends within seconds; debug aaa pod shows the request arriving.

Troubleshooting

The printer doesn’t reach MAB

The port is still waiting on 802.1X. Check authentication order dot1x mab, and wait out the fallback, about 90 seconds with the default timers.

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

The switch sent EAP-MD5 (mab eap) or a shared password. Use plain mab and remove mab request format attribute 2.

The session is authorized, but in the port's own VLAN

The switch didn’t apply the VLAN. Check aaa authorization network default group trustaige, and that the VLAN exists on the switch.

The hub shows a Disconnect-Request as not acknowledged

The switch didn’t take it. Check the client lines and the shared secret under aaa server radius dynamic-author, the port, and that accounting reaches Trustaige.

What hasn’t been confirmed yet

  • Whether releases before 17.18.1 add Message-Authenticator to MAB requests hasn’t been recorded in Trustaige’s lab, and Cisco’s documentation doesn’t say.
  • Cisco documents the MAB user name format commands for IOS 15, and its 17.x command reference doesn’t list them. Trustaige accepts the default, so the guide doesn’t rely on them.
  • 1700 as the default for aaa server radius dynamic-author is documented for older Catalyst models only; the guide sets it explicitly.
  • How a Catalyst treats a VLAN named for a device in the voice domain hasn’t been recorded in Trustaige’s lab, which is why the guide sets the phone’s own VLAN to the port’s voice VLAN.