The shared-key command configures the shared key that the device uses to exchange information with a Portal server.
The undo shared-key command restores the default setting.
By default, no shared key that the device uses to exchange information with a Portal server is configured.
Parameter | Description | Value |
---|---|---|
cipher |
Displays a shared key in cipher text. |
- |
key-string |
Specifies the shared key. |
The value is a string of case-sensitive characters without spaces. It can be a string of 20 to 392 characters in cipher text, or a string of 1 to 255 characters in plain text. |
Usage Scenario
After a shared key is configured using the shared-key command, the Portal packet exchanged between the device and Portal server carries an authenticator generated according to the shared key, and the authenticator is used to check whether the Portal packet at the receiver is correct. This effectively improves the information exchange security.
Precautions
To improve security, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 16 characters.