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 is used.
| Parameter | Description | Value |
|---|---|---|
| cipher | Displays a shared key in cipher text. |
- |
| key-string | Specifies the shared key. |
The value is a character string. The password can be a string of 32 characters in cipher text (for example, %$%$m^NF$L^SO%2@^y$T`^1'|lcZ%$%$) or a string of 1 to 16 characters in plain text (for example, 1234567). |
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 6 characters.