key (RADIUS scheme view)
Use key to set the shared key for secure RADIUS communication.
Use undo key to restore the default.
Syntax
key { accounting | authentication } { cipher | simple } string
undo key { accounting | authentication }
Default
No shared key is configured.
Views
RADIUS scheme view
Predefined user roles
network-admin
Parameters
accounting: Sets the shared key for secure RADIUS accounting communication.
authentication: Sets the shared key for secure RADIUS authentication communication.
cipher: Sets a cipher text shared key.
simple: Sets a plain text shared key.
string: Specifies the shared key string. This argument is case sensitive. In non-FIPS mode, a ciphertext
password is a string of 1 to 117 characters and a plaintext password is a string of 1 to 64 characters. In
FIPS mode, a ciphertext password is a string of 15 to 117 characters and a plaintext password is a string
of 15 to 64 characters that must contain numbers, uppercase letters, lowercase letters, and special
characters.
Usage guidelines
The shared keys configured by using this command apply to all servers in the scheme. The shared keys
specified for specific RADIUS servers, if any, take precedence.
The shared keys configured on the device must match those configured on the RADIUS servers.
For security purpose, all shared keys, including shared keys configured in plain text, are saved in cipher
text.
Examples
# For RADIUS scheme radius1, set the shared key for secure accounting communication to ok in plain
text.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] key accounting simple ok
39