370
Examples
# Set the subnet type of the peer security gateway to multiple.
<Sysname> system-view
[Sysname] ike peer xhy
[Sysname-ike-peer-xhy] peer multi-subnet
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%
proposal (IKE peer view)
Syntax
proposal proposal-number&<1-6>
undo proposal [ proposal-number ]
View
IKE peer view
Default level
2: System level