You can specify the RADIUS server connected to the device in a RADIUS server template. Such a template contains the server IP address, port number, source interface, and shared key settings.
The settings in a RADIUS server template must be the same as those on the RADIUS server.
The system view is displayed.
The RADIUS server template view is displayed.
By default, the RADIUS server template named default is available on the device. This template can only be modified and cannot be deleted.
Step |
Command |
Remarks |
---|---|---|
Configure a RADIUS authentication server. |
|
By default, no RADIUS authentication server is configured. |
Configure a RADIUS accounting server. |
|
By default, no RADIUS accounting server is configured. |
The shared key of the RADIUS server is configured.
By default, no shared key is configured for a RADIUS server.
When a RADIUS server is configured in multiple RADIUS server templates:
When shared keys are configured in both the RADIUS server template view and system view, the configuration in the system view takes effect.
The algorithm for selecting RADIUS servers is configured.
By default, the algorithm for selecting RADIUS servers is primary/secondary (specified by master-backup).
When the algorithm for selecting RADIUS servers is set to primary/secondary, the server with a larger weight is the primary server. If servers have the same weight, the server configured first is the primary server.
If the algorithm for selecting RADIUS servers is set to load balancing, packets are sent to RADIUS servers according to weights of the servers.
The number of times that RADIUS authentication request packets are retransmitted and the timeout interval are set.
By default, RADIUS authentication request packets can be retransmitted three times, and the timeout interval is 5 seconds.
Run radius-server user-name domain-included
The device is configured to encapsulate the domain name in the user name in the RADIUS packets sent to a RADIUS server.
Run radius-server user-name original
The device is configured not to modify the user name entered by a user in the RADIUS packets sent to a RADIUS server.
Run undo radius-server user-name domain-included
The device is configured not to encapsulate the domain name in the user name in the RADIUS packets sent to a RADIUS server.
Run undo radius-server user-name domain-included except-eap
The device is configured not to encapsulate the domain name in the user name in the RADIUS packets sent to a RADIUS server (applicable to other authentication modes except EAP authentication).
By default, the device does not modify the user name entered by a user in the RADIUS packets sent to a RADIUS server.
The traffic unit used by the RADIUS server is configured.
By default, the RADIUS traffic unit is byte on the device.
The reauthentication mode is set to reauthentication only.
By default, the reauthentication mode is reauthentication and reauthorization.
This function takes effect when the Service-Type attribute on the RADIUS server is set to Authenticate Only.
The device is enabled to encapsulate the RADIUS attribute Framed-IP-Address into RADIUS authentication request packets when the RADIUS authentication request packets sent by users do not carry user IP addresses.
By default, the device does not encapsulate the RADIUS attribute Framed-IP-Address into a RADIUS authentication request packet when the RADIUS authentication request packet sent by a user does not carry the user IP address.
Run the display radius-server configuration [ template template-name ] command to check the RADIUS server template configuration.
Run the test-aaa user-name user-password radius-template template-name [ chap | pap | accounting [ start | realtime | stop ] ] command to test the connectivity between the device and RADIUS authentication server or accounting server and check whether the authentication server or accounting server can perform authentication or accounting for users.
If an error message is displayed in the command output, troubleshoot the fault according to Testing Whether a User Can Pass RADIUS Authentication or Accounting.