pre-shared-key

Syntax

pre-shared-key [ cipher key ]

undo pre-shared-key

View

IKE peer view

Default level

2: System level

Parameters

cipher key: Specifies a ciphertext pre-shared key, a case-sensitive string of 8 to 201 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.

If you do not specify the cipher key option, you set a plaintext pre-shared key in interactive mode. The key is a case-sensitive string of 8 to 128 characters, and it must contain uppercase and lowercase letters, digits, and special characters.

Related commands: authentication-method.

Examples

# Set a pre-shared key used in IKE negotiation.

<Sysname> system-view
[Sysname] ike peer peer1
[Sysname-ike-peer-peer1] pre-shared-key
Enter pre-share-key:***********
Re-enter pre-share-key:***********