reset dhcp relay client-info

Function

The reset dhcp relay client-info command clears the history records of message exchange between the DHCP client and DHCP server over a DHCP relay.

Format

reset dhcp relay client-info [ interface { interface-name | interface-type interface-number } [ pevlan pevlan-id [ end-pevlan-id ] [ cevlan cevlan-id [ end-cevlan-id ] ] ] | mac-address mac-address | option option-value ]

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies an interface on a DHCP relay agent.

  • interface-type: specifies the type of the interface.
  • interface-number: specifies the number of the interface.

-

pevlan pevlan-id

Specifies the outer VLAN ID of the interface or the start value of the outer VLAN ID range.

The value is an integer ranging from 1 to 4094.

end-pevlan-id

Specifies the end value of the outer VLAN ID range.

The value is an integer ranging from 1 to 4094.

The value of end-pevlan-id must be greater than the value of pevlan-id.

cevlan cevlan-id

Specifies the inner VLAN ID of the interface or the start value of the inner VLAN ID range.

The value is an integer ranging from 1 to 4094.

end-cevlan-id

Specifies the end value of the inner VLAN ID range.

The value is an integer ranging from 1 to 4094.

The value of end-cevlan-id must be greater than the value of cevlan-id.

mac-address mac-address

Specifies the MAC address of the DHCP client.

The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0.

option option-value

Specifies the option value of a DHCP packet.

The value is a string of 1 to 64 characters in hexadecimal notation.

Views

User view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp execute

Usage Guidelines

Usage Scenario

To collect statistics about the exchanges between a DHCP client and a DHCP server over a DHCP relay agent within a specified period of time, run the reset dhcp relay client-info command to clear history records on the DHCP relay agent and then run the display dhcp relay client-info command to view the desired statistics.

Precautions

The cleared history records of information exchange cannot be restored. Exercise caution while running the reset dhcp relay client-info command.

Example

# Clear all history records.
<HUAWEI> reset dhcp relay client-info
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >