The pre-shared-key command configures the pre-shared key used by IKE peers to perform pre-shared key authentication.
The undo pre-shared-key command deletes the pre-shared key used by IKE peers to perform pre-shared key authentication.
By default, the pre-shared key used by IKE peers to perform pre-shared key authentication is not configured.
Parameter |
Description |
Value |
|---|---|---|
key |
Specifies the pre-shared key used by IKE peers to perform pre-shared key authentication. |
The value is a string of case-sensitive characters. A plaintext key contains 1 to 128 characters, and a ciphertext key contains 48 to 188 characters. |
Usage Scenario
During IKE negotiation, IPSec can use pre-shared key authentication to verify identities of communication parties. After pre-shared key authentication is configured, the initiator encrypts data using the pre-shared key before transmitting the data, and the receiver decrypts the data using the same pre-shared key. If the receiver succeeds in data decryption, the initiator passes the identity verification.
Prerequisites
Pre-shared key authentication has been specified in an IKE proposal.
Precautions
Both ends of IKE negotiation must be configured with the same pre-shared key.