key (RADIUS scheme view)
Syntax
View
Parameter
Description
Related command:
Example
nas-ip (RADIUS scheme view)
Syntax
key { accounting | authentication } string
undo key { accounting | authentication }
RADIUS scheme view
accounting: Sets the shared key for RADIUS accounting packets.
authentication: Sets the shared key for RADIUS authentication/authorization
packets.
string: Shared key, a case-sensitive string of up to 16 characters.
Use the
command to set the shared key for RADIUS
key
authentication/authorization or accounting packets.
Use the
undo key
command to restore the default.
By default, no shared key is configured.
Note that:
You must ensure that the same shared key is set on the device and the RADIUS
■
server.
If authentication/authorization and accounting are performed on two servers
■
with different shared keys, you must set separate shared key for each on the
device.
display radius scheme.
# Set the shared key for authentication/authorization packets to hello for RADIUS
scheme radius1.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] key authentication hello
# Set the shared key for accounting packets to ok for RADIUS scheme radius1.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] key accounting ok
nas-ip ip-address
undo nas-ip
1957