key

Specifies a text string to be used as a shared secret between the device and the Remote Authentication Dial-In User Service (RADIUS) server.

Syntax

key shared_secret
no key

Command Default

The default value is "sharedsecret".

Parameters

shared_secret
The text string that is used as the shared secret between the device and the RADIUS server. The default string is "sharedsecret". The exclamation mark (!) is supported for RADIUS servers, and you can specify the shared secret string in either double quotation marks or by using the escape character (\); for example, "secret!key" or secret\!key.

Modes

RADIUS server host VRF configuration mode

Usage Guidelines

The key command does not support an empty string.

The no form of the command restores the command default value.

Examples

The following example shows how to configure the text string "new#radius*secret" as the shared secret between the device and the RADIUS server.

device# configure terminal
device(config)# radius-server host 10.37.73.180 use-vrf green-vrf
device(config-host-10.37.73.180/green-vrf)# key "new#radius*secret"