display ike peer

Syntax

display ike peer [ peer-name ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

peer-name: Name of the IKE peer, a string of 1 to 32 characters.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use the display ike peer command to display information about IKE peers.

If you do not specify any parameters, the command displays information about all IKE peers.

Related commands: ike peer.

Examples

# Display information about all IKE peers.

<Sysname> display ike peer

---------------------------
 IKE Peer: aaa
   exchange mode: main on phase 1
   peer id type: ip
   peer ip address: 0.0.0.0 ~ 255.255.255.255
   local ip address:
   peer name:
   nat traversal: disable
   dpd:
---------------------------

Table 61: Output description

Field

Description

exchange mode

IKE negotiation mode in phase 1

pre-shared-key

Pre-shared key used in phase 1

peer id type

ID type used in phase 1

peer ip address

IP address of the remote security gateway

local ip address

IP address of the local security gateway

peer name

Name of the remote security gateway

nat traversal

Whether NAT traversal is enabled

dpd

Name of the peer DPD detector