To configure a RADIUS shared secret key, use the radius-server key command. To remove a configured shared secret, use the no form of this command.
radius-server key [0 | 7] shared-secret
no radius-server key [0 | 7] shared-secret
0 |
(Optional) Configures a preshared key specified in clear text to authenticate communication between the RADIUS client and server. |
7 |
(Optional) Configures a preshared key specified in encrypted text to authenticate communication between the RADIUS client and server. |
shared-secret |
Preshared key used to authenticate communication between the RADIUS client and server. The preshared key can include any printable ASCII characters (white spaces are not allowed), is case sensitive, and has a maximum of 63 characters. |
Clear text authentication
Global configuration mode
Release |
Modification |
4.0(0)N1(1a) |
This command was introduced. |
You must configure the RADIUS preshared key to authenticate the switch to the RADIUS server. The length of the key is restricted to 65 characters and can include any printable ASCII characters (white spaces are not allowed). You can configure a global key to be used for all RADIUS server configurations on the switch. You can override this global key assignment by using the key keyword in the radius-server host command.
This example shows how to provide various scenarios to configure RADIUS authentication:
switch(config)# radius-server key AnyWord
switch(config)# radius-server key 0 AnyWord
switch(config)# radius-server key 7 public pac
Command |
Description |
---|---|
show radius-server |
Displays RADIUS server information. |