dhcp relay client-info

Function

The dhcp relay client-info command allows a DHCP relay agent to record specified DHCP packets.

The undo dhcp relay client-info command restores the default configuration.

By default, a DHCP relay agent does not record any DHCP packet.

Format

dhcp relay client-info option option-code [ sub-option sub-option-code ]

undo dhcp relay client-info option

Parameters

Parameter Description Value
sub-option sub-option-code

Specifies the sib-option code of the DHCP packets to be recorded by a DHCP relay agent.

The value is an integer ranging from 1 to 255.

option option-code

Specifies the option code of the DHCP packets to be recorded by a DHCP relay agent.

The value is an integer ranging from 1 to 255.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

To locate the fault that a DHCP client fails to correctly obtain an IP address, run the dhcp relay client-info command to configure a DHCP relay agent to record specified DHCP packets. After that, the DHCP relay agent records the information exchanged between the DHCP client and server based on the specified option code and sub-option code in DHCP packets.

Configuration Impact

  • If the dhcp relay client-info command is run more than once, the latest configuration overrides the previous one.
  • With the option code and sub-option code specified, the DHCP relay agent records a maximum of 2500 qualified DHCP packets. If more than 2500 such DHCP packets exist, the latest record overwrites the earliest one.

Example

# Configure the DHCP relay agent to record the DHCP packets carrying the Option 53 field.
<HUAWEI> system-view
[~HUAWEI] dhcp relay client-info option 53
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >