< Home

dhcp snooping alarm

Function

The dhcp snooping alarm command enables sending alarms when the number of the discarded ARP packets, IP packets, DHCP reply messages (discarded on the untrusted interface) and DHCP request messages reaches the alarm threshold.

The undo dhcp snooping alarm command disables sending alarms.

Format

dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } enable [ interface interface-type interface-number ]

undo dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } 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-reply Indicates that the alarm occurs when the number of the DHCP response messages discarded on the untrusted interface reaches the threshold, including the Offer, ACK, and NAK messages. -
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 and VLAN view

Default Level

2: Configuration level

Usage Guidelines

By default, the alarm of the discarded packets is disabled.

After running the dhcp snooping alarm command enables sending alarms to the NMS. The default threshold in a VLAN or on the interface is the default global alarm threshold. It is 100.

Example

# Enable sending alarms for discarded ARP packets on VLAN 2.

<sysname> system-view
[sysname] vlan 2
[sysname-vlan-2] dhcp snooping alarm arp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >