display dhcp relay security

Syntax

display dhcp relay security [ ip-address | dynamic | static ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

ip-address: Displays binding information about an IP address.

dynamic: Displays information about dynamic bindings.

static: Displays information about static bindings.

|: 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 display dhcp relay security to display information about bindings of DHCP relay agents. If no parameter is specified, this command displays information about all bindings.

You must enable address check, or IP source guard on the DHCP relay agent before it can generate dynamic client entries. For more information about IP source guard, see Security Configuration Guide.

Examples

# Display information about all bindings.

<Sysname> display dhcp relay security
IP Address      MAC Address     Type       Interface
 10.1.1.5       00e0-0000-0000  Static     Vlan2
---   1 dhcp-security item(s) found   ---

Table 12: Command output

Field

Description

IP Address

Client IP address.

MAC Address

Client MAC address.

Type

Type of binding, dynamic, static, and temporary.

Interface

Layer 3 interface connecting to the DHCP client. If no interface is recorded in the binding entry, N/A is displayed.