The dhcp snooping alarm threshold command configures the alarm threshold of the number of the discarded ARP packets, IP packets, DHCP reply messages (received on the untrusted interface) and DHCP request messages.
The undo dhcp snooping alarm threshold command restores the default value of the alarm threshold.
dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } threshold threshold interface interface-type interface-number
undo dhcp snooping alarm { arp | ip | dhcp-request | dhcp-chaddr | dhcp-reply } threshold interface interface-type interface-number
| 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. | - |
| threshold threshold | Specifies the alarm threshold. | The value ranges from 1 to 1000. The default value is 100. |
| interface interface-type interface-number | Specifies the type and number of an interface. | - |
You can run the dhcp snooping alarm threshold command in the VLAN view to set the alarm threshold for discarded packets in the VLAN.
If no alarm threshold is configured in the VLAN view, the global alarm threshold is used.
If alarm thresholds are configured in both the system view and the VLAN view, only the alarm threshold configured in the VLAN view takes effect.