radius-server host
Usage Guidelines
We recommend that you configure the UDP port for the RADIUS accounting server and the UDP port
for the RADIUS authentication server to nondefault values.
Use the test username name keywords to enable automatic server testing of the RADIUS server status
and to specify the username to be used.
You can configure the authentication and encryption key by using the radius-server host ip-address key
string or the radius-server key {0 string | 7 string | string} global configuration command. Always
configure the key as the last item in this command.
Examples
This example shows how to configure 1500 as the UDP port for the accounting server and 1510 as the
UDP port for the authentication server:
Switch(config)# radius-server host 1.1.1.1 acct-port 1500 auth-port 1510
This example shows how to configure the UDP port for the accounting server and the authentication
server, enable automated testing of the RADIUS server status, specify the username to be used, and
configure a key string:
Switch(config)# radius-server host 1.1.1.2 acct-port 800 auth-port 900 test username
aaafail idle-time 75 key abc123
You can verify your settings by entering the show running-config privileged EXEC command.
Related Commands
Command
dot1x critical (global configuration)
dot1x critical (interface
configuration)
radius-server key {0 string | 7 string |
string}
show running-config
Catalyst 2960 Switch Command Reference
2-272
Chapter 2
Description
Configures the parameters for the inaccessible authentication
bypass feature.
Enables the inaccessible authentication bypass feature on an
interface and configures the access VLAN to which the switch
assigns the critical port when the port is in the
critical-authentication state.
Sets the authentication and encryption key for all RADIUS
communications between the router and the RADIUS daemon.
For syntax information, select Cisco IOS Security Command
Reference, Release 12.2 > Server Security Protocols >
RADIUS Commands.
Displays the running configuration on the switch. For syntax
information, select Cisco IOS Configuration Fundamentals
Command Reference, Release 12.2 > File Management
Commands > Configuration File Management Commands.
Catalyst 2960 Switch Cisco IOS Commands
OL-8604-04