radius-server host
Use the radius-server host Global Configuration mode command to configure a RADIUS server host. Use the no form of the command to delete the specified RADIUS server host.
Syntax
radius-server host {ip-address | hostname} [auth-port auth-port-number] [acct-port acct-port-number] [timeout timeout] [retransmit retries] [deadtime deadtime] [key key-string] [priority priority] [usage {login | dot1.x | all}]
encrypted radius-server host {ip-address | hostname} [auth-port auth-port-number] [acct-port acct-port-number] [timeout timeout] [retransmit retries] [deadtime deadtime] [key encrypted-key-string] [priority priority] [usage {login | dot1.x | all}]
no radius-server host {ip-address | hostname}
Parameters
-
ip-address—Specifies the RADIUS server host IP address. The IP address can be an IPv4, IPv6 or IPv6z address.
-
hostname—Specifies the RADIUS server host name. Translation to IPv4 addresses only is supported. (Length: 1–158 characters. Maximum label length of each part of the hostname: 63 characters)
-
auth-port auth-port-number—Specifies the port number for authentication requests. If the port number is set to 0, the host is not used for authentication. (Range: 0–65535)
-
acct-port acct-port-number—Port number for accounting requests. The host is not used for accountings if set to 0. If unspecified, the port number defaults to 1813.
-
timeout timeout—Specifies the timeout value in seconds. (Range: 1–30)
-
retransmit retries—Specifies the number of retry retransmissions (Range: 1–15)
-
deadtime deadtime—Specifies the length of time in minutes during which a RADIUS server is skipped over by transaction requests. (Range: 0–2000)
-
key key-string—Specifies the authentication and encryption key for all RADIUS communications between the device and the RADIUS server. This key must match the encryption used on the RADIUS daemon. To specify an empty string, enter "". (Length: 0–128 characters). If this parameter is omitted, the globally-configured radius key will be used.
-
key encrypted-key-string—Same as key-string, but the key is in encrypted format.
-
priority priority—Specifies the order in which servers are used, where 0 has the highest priority. (Range: 0–65535)
-
usage {login | dot1.x | all}—Specifies the RADIUS server usage type. The possible values are:
login—Specifies that the RADIUS server is used for user login parameters authentication.
dot1.x—Specifies that the RADIUS server is used for 802.1x port authentication.
all—Specifies that the RADIUS server is used for user login authentication and 802.1x port authentication.
Default Configuration
The default authentication port number is 1812.
If timeout is not specified, the global value (set in the command) is used.
If retransmit is not specified, the global value (set in the command) is used.
If key-string is not specified, the global value (set in the command) is used.
If the usage keyword is not specified, the all argument is applied.
Command Mode
Global Configuration mode
User Guidelines
To specify multiple hosts, this command is used for each host.
Example
The following example specifies a RADIUS server host with IP address 192.168.10.1, authentication request port number 20, and a 20-second timeout period.
switchxxxxxx(config)# radius-server host 192.168.10.1 auth-port 20 timeout 20