Skip to content
Trustaige Docs

Set up H3C switches for Trustaige RADIUS

Configure an H3C Comware 7 switch for 802.1X with EAP relay and MAC authentication against Trustaige RADIUS, with VLANs, accounting and disconnects.

  • Scale
  • Needs an H3C switch on Comware 7
  • About 30 minutes
  • Rolling out
View as Markdown

Comware 7 runs 802.1X and MAC authentication on the same port. By default its MAC authentication sends PAP with the MAC, in lowercase without hyphens, as both user name and password, which Trustaige accepts. Two defaults need changing: 802.1X ends EAP on the switch (CHAP) until told to relay it, and a domain must authorize as well as authenticate for VLANs to apply.

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

Before you start

You needWhy
An H3C switch on Comware 7The commands below are Comware 7’s. Check each with ? on your model.
The VLANs Trustaige will name, on the switchvlan <your-restricted-vlan>, and the wired network’s VLAN if you set one.

RADIUS scheme and domain

radius scheme trustaige
 primary authentication <your-radius-server> 1812 key simple <your-radius-secret>
 primary accounting <your-radius-server> 1813 key simple <your-radius-secret>
 user-name-format without-domain
 nas-ip 10.0.0.2
 quit
domain trustaige
 authentication lan-access radius-scheme trustaige
 authorization lan-access radius-scheme trustaige
 accounting lan-access radius-scheme trustaige
 quit
domain default enable trustaige
  • Use the hub’s Port for authentication and the port after it for accounting. Add the secondary server with secondary authentication and secondary accounting.
  • authorization lan-access lets the switch apply the VLAN Trustaige names.
  • nas-ip is the switch address Trustaige hears from: the address you registered.
radius scheme trustaige
 primary authentication <your-radius-server> 1812 key simple <your-radius-secret>
 primary accounting <your-radius-server> 1813 key simple <your-radius-secret>
 user-name-format without-domain
 nas-ip 10.0.0.2
 quit
domain trustaige
 authentication lan-access radius-scheme trustaige
 authorization lan-access radius-scheme trustaige
 accounting lan-access radius-scheme trustaige
 quit
domain default enable trustaige

802.1X and MAC authentication

dot1x
dot1x authentication-method eap
mac-authentication
mac-authentication domain trustaige
  • dot1x authentication-method eap relays EAP to Trustaige. The default, chap, ends it on the switch, and managed computers can’t join.
  • Keep the default MAC user name format, mac-address, and its default PAP method; chap works as well. Don’t add the password keyword to mac-authentication user-name-format, and don’t use the fixed format: both give every device one shared password, which Trustaige refuses.
dot1x
dot1x authentication-method eap
mac-authentication
mac-authentication domain trustaige

Access ports

interface GigabitEthernet1/0/10
 port access vlan 10
 dot1x
 dot1x port-method macbased
 mac-authentication
 mac-authentication timer auth-delay 30
  • dot1x port-method macbased, the default, decides each device on the port separately, such as a PC behind an IP phone.
  • mac-authentication timer auth-delay 30 gives 802.1X 30 seconds before the switch tries the MAC.

Comware applies the VLAN Trustaige names, and with Termination-Action set to RADIUS-Request it asks again at the Session-Timeout instead of its own re-authentication timer.

interface GigabitEthernet1/0/10
 port access vlan 10
 dot1x
 dot1x port-method macbased
 mac-authentication
 mac-authentication timer auth-delay 30

Disconnects

radius dynamic-author server
 client ip 198.51.100.7 key simple <your-radius-secret>

Comware takes Disconnect-Requests on UDP 3799, the port the hub uses for Other. Add one client line for each address the hub lists when you choose Disconnects on UDP 3799 beside the switch, in place of 198.51.100.7.

radius dynamic-author server
 client ip 198.51.100.7 key simple <your-radius-secret>

Check it works

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

  2. On the switch:

    display dot1x connection
    display mac-authentication connection

    Each shows the device, 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.

Troubleshooting

Managed PCs are refused, and the activity says “The device asked for a sign-in method other than a certificate.”

802.1X is ending EAP on the switch. Set dot1x authentication-method eap.

Printers are refused with the same message

MAC authentication sends a shared password. Remove the password keyword or the fixed format from mac-authentication user-name-format.

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

The switch sent a MAC authentication request without Message-Authenticator. If your release offers auth-attribute message-authenticator force-mode request in the RADIUS scheme, set it; otherwise ask H3C which release adds it.

What hasn’t been confirmed yet

  • Whether Comware switches add Message-Authenticator to MAC authentication requests isn’t documented. auth-attribute message-authenticator force-mode appears in H3C’s documentation for its routers only, and H3C has published no Blast-RADIUS notice that could be found.
  • The commands come from H3C’s Comware 7 security guides for the S5590 series; other models may differ. Trustaige’s lab hasn’t yet recorded an H3C switch.