The dhcp snooping alarm threshold command configures an alarm threshold for the number of discarded ARP packets, IP packets, DHCP reply packets (received on the untrusted interface), and DHCP request packets and the percentage threshold for the maximum DHCP snooping users.
The undo dhcp snooping alarm threshold command restores the default settings.
By default:
dhcp snooping alarm { { ip | arp | dhcp-chaddr | dhcp-request | dhcp-reply } { enable | threshold threshold-value } | user-limit { enable | threshold user-threshold-value } }
undo dhcp snooping alarm { ip | arp | dhcp-chaddr | dhcp-request | dhcp-reply | user-limit } enable
undo dhcp snooping alarm { ip | arp | dhcp-chaddr | dhcp-request | dhcp-reply | user-limit } threshold
Parameter | Description | Value |
---|---|---|
ip |
Indicates the alarm threshold for the number of discarded IP packets that mismatch the binding entries. |
- |
arp |
Indicates the alarm threshold for the number of discarded ARP packets that mismatch the binding entries. |
- |
dhcp-chaddr |
Indicates the alarm threshold for discarded DHCP packets with a client hardware address (CHADDR) mismatching the source MAC address in the Ethernet frame header. |
- |
dhcp-request |
Indicates the alarm threshold for the number of discarded DHCP request packets for extending the IP address lease. |
- |
dhcp-reply |
Indicates the alarm threshold for discarded DHCP reply packets received on untrusted interfaces. |
- |
enable |
Enables DHCP snooping. |
- |
threshold threshold-value |
Specifies an alarm threshold. |
For the alarm threshold for the number of discarded packets, the value is an integer ranging from 1 to 1000. For the percentage threshold for the maximum DHCP snooping users, the value is an integer ranging from 1 to 100. |
threshold user-threshold-value |
Specifies a threshold value percent. |
The value is an integer ranging from 1 to 100. |
user-limit |
Indicates the alarm threshold for the maximum DHCP snooping users. |
- |
Usage Scenario
To configure the alarm threshold for the maximum discarded packets and the percentage threshold for the maximum DHCP snooping users in the BD view, run the dhcp snooping alarm threshold command.
The configuration of the alarm threshold for discarded packets in a BD can be one of the following situations:Prerequisites
Precautions
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 10 [*HUAWEI-bd10] dhcp snooping enable [*HUAWEI-bd10] dhcp snooping alarm dhcp-reply enable
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 10 [*HUAWEI-bd10] dhcp snooping enable [*HUAWEI-bd10] dhcp snooping alarm user-limit threshold 50
<HUAWEI> system-view [~HUAWEI] dhcp snooping enable [*HUAWEI] bridge-domain 20 [*HUAWEI-bd20] dhcp snooping enable [*HUAWEI-bd20] dhcp snooping alarm arp threshold 200