display dhcp relay information
Syntax
display dhcp relay information { all | interface interface-type interface-number } [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
all: Displays Option 82 configuration information about all interfaces.
interface interface-type interface-number: Displays Option 82 configuration information about a specific interface.
|: 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 information to display Option 82 configuration information on the DHCP relay agent.
Examples
# Display Option 82 configuration information about all interfaces.
<Sysname> display dhcp relay information all Interface: Vlan-interface100 Status: Enable Strategy: Replace Format: Verbose Circuit ID format-type: HEX Remote ID format-type: ASCII Node identifier: aabbcc User defined: Circuit ID: company001 Interface: Vlan-interface200 Status: Enable Strategy: Keep Format: Normal Circuit ID format-type: HEX Remote ID format-type: ASCII User defined: Remote ID: device001
Table 11: Command output
Field | Description |
---|---|
Interface | Interface name. |
Status | Option 82 state, which can be Enable or Disable. |
Strategy | Handling strategy for requesting messages containing Option 82, which can be Drop, Keep, or Replace. |
Format | Padding format of Option 82, which can be Normal or Verbose. |
Circuit ID format-type | Non-user-defined code type of the circuit ID sub-option, which can be ASCII or HEX. |
Remote ID format-type | Non-user-defined code type of the remote ID sub-option, which can be ASCII or HEX. |
Node identifier | Access node identifier. |
User defined | Content of user-defined sub-options. |
Circuit ID | User-defined padding content of the circuit ID sub-option. |
Remote ID | User-defined padding content of the remote ID sub-option. |