< Home

radius-server shared-key (RADIUS server template view)

Function

The radius-server shared-key command configures the shared key of a RADIUS server.

The undo radius-server shared-key command deletes the shared key of a RADIUS server.

The versions earlier than V600R007C20SPC300 have a default shared key. You can obtain the default key from the Huawei Security Product Default Accounts and Passwords (Enterprise Network or Carrier). You need permission to obtain this document. For details about the permission to upgrade this document, see the online help.

The V600R007C20SPC300 and later versions do not have a default shared key.

When an upgrade from a version earlier than V600R007C20SPC300 to V600R007C20SPC300 or a later version, If the radius-server template command has been run in the source version but no shared key is configured in the source version, the default shared key is retained in the target version.

Format

radius-server shared-key cipher key-string

undo radius-server shared-key

Parameters

Parameter

Description

Value

cipher

Indicates the shared key in cipher text.

-

key-string

Specifies the shared key of a RADIUS server.

The value is a case-sensitive character string that cannot contain spaces, question marks (?), and single quotation marks ('), in simple text or cipher text. The length is as follows:

  • Simple text: 1 to 128. The system encrypts the entered character string and saves it in the configuration file.
  • Ciphertext: The length value can be only 48, 68, 88, 108, 128, 148, 168, or 188. If a user enters a shared key with 32, 56, 80, 104, or 128 characters and the system can decrypt the shared key, the system determines that the shared key is ciphertext. If the system cannot decrypt the shared key, the system determines that the shared key is simple text.

Views

RADIUS server template view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The shared key is used to encrypt the password and generate the response authenticator.

When exchanging authentication packets with a RADIUS server, the device uses MD5 to encrypt important data such as the password to ensure security of data transmission over the network. To ensure validity of both communication parties, the device and RADIUS server must be configured with the same shared key.

Precautions

For the versions earlier than V600R007C20SPC300, to improve security, change the default shared key immediately. It is recommended that the new shared key contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 6 characters.

Example

# Set the shared key of a RADIUS server to Huawei@2012 in cipher text.

<sysname> system-view
[sysname] radius-server template template1
[sysname-radius-template1] radius-server shared-key cipher Huawei@2012
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >