< Home

reset dhcp snooping statistics

Function

The reset dhcp snooping statistics command clears DHCP snooping statistics.

Format

reset dhcp snooping statistics { global | interface interface-type interface-number [ vlan vlan-id ] | vlan vlan-id [ interface interface-type interface-number ] }

Parameters

Parameter Description Value

global

Clears global DHCP snooping statistics.

-

interface interface-type interface-number

Clears DHCP Snooping statistics on the specified interface.

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

-

vlan vlan-id

Clears DHCP snooping statistics in the specified VLAN. vlan-id specifies a VLAN ID.

vlan-id is an integer that ranges from 1 to 4094.

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If statistics are collected after DHCP snooping is enabled, you can run the reset dhcp snooping statistics command to clear the statistics.

Precautions

If both interface and vlan are specified, the specified interface must have been added to the specified VLAN. The reset dhcp snooping statistics command is used to clear DHCP snooping statistics in the VLAN to which the specified interface is added.

Example

# Clear DHCP snooping statistics on GE0/0/1.

<HUAWEI> reset dhcp snooping statistics interface gigabitethernet 0/0/1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >