pre-shared-key

Syntax

pre-shared-key [ cipher | simple ] key

undo pre-shared-key

View

IKE peer view

Default level

2: System level

Parameters

key: Plaintext pre-shared key to be displayed in cipher text, a case-sensitive string of 8 to 128 characters.

cipher key: Specifies the ciphertext pre-shared key to be displayed in cipher text, a case-sensitive string of 8 to 201 characters.

simple key: Specifies the plaintext pre-shared key to be displayed in plain text, a case-sensitive string of 8 to 128 characters, which must contain digits, upper-case letters, lower-case letters, and special characters.

Description

Use the pre-shared-key command to configure the pre-shared key to be used in IKE negotiation.

Use the undo pre-shared-key command to remove the configuration.

Related commands: authentication-method.

Examples

# Set the pre-shared key used in IKE negotiation to AAbbcc1234%.

<Sysname> system-view
[Sysname] ike peer peer1
[Sysname-ike-peer-peer1] pre-shared-key AAbbcc1234%