< Home

dhcp snooping check

Function

The dhcp snooping check command enables the packet checking.

The undo dhcp snooping check command disables the packet checking.

Format

Layer-3 interface view:

dhcp snooping check { arp | ip | dhcp-chaddr | dhcp-request } enable

undo dhcp snooping check { arp | ip | dhcp-chaddr | dhcp-request } enable

VLAN view:

dhcp snooping check { arp | ip | dhcp-chaddr | dhcp-request } enable interface interface-type interface-number

undo dhcp snooping check { arp | ip | dhcp-chaddr | dhcp-request } enable interface interface-type interface-number

Parameters

Parameter Description Value
arp Indicates that the alarm occurs when the number of the discarded ARP packets reaches the threshold. -
ip Indicates that the alarm occurs when the number of the discarded IP packets reaches the threshold. -
dhcp-chaddr Indicates that the alarm occurs when the number of discarded DHCP messages, in which the CHADDR field is inconsistent with the source MAC of the Ethernet frame, reaches the threshold. -
dhcp-request Indicates that the alarm occurs when the number of the discarded DHCP request messages reaches the threshold. -
interface interface-type interface-number Specifies the type and number of an interface. It can be configured only in the VLAN view.

Views

Layer-3 interface view or VLAN view

Default Level

2: Configuration level

Usage Guidelines

By default, the packet checking is disabled.

The dhcp snooping check command takes effect only after DHCP snooping is enabled.

Example

# Enable IP packet checking through DHCP snooping on the Vlanif 1 interface.

<sysname> system-view
[sysname] interface Vlanif 1
[sysname-Vlanif1] dhcp snooping check ip enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >