Using the dhcp snooping check dhcp-rate enable alarm dhcp-rate enable command, you can:
By default, the function of checking the rate of sending DHCP messages to the DHCP stack is disabled; the rate limit of sending DHCP messages to the DHCP stack is 100 pps; the DHCP message discard alarm is disabled; the alarm threshold for discarded DHCP messages is 100.
dhcp snooping check dhcp-rate { enable | [ enable ] [ rate ] rate } alarm dhcp-rate { enable | [ enable ] threshold threshold-value }
Parameter |
Description |
Value |
---|---|---|
[ rate ] rate |
Specifies the rate limit of sending DHCP messages to the DHCP protocol stack. |
The value ranges from 1 to 100, in pps. The default value is 100. |
alarm dhcp-rate enable |
Enables the DHCP message discard alarm. |
- |
threshold threshold-value |
Specifies the alarm threshold for discarded DHCP messages. After the function is enabled, an alarm is generated when the number of discarded DHCP messages reaches the alarm threshold on an interface. |
The value ranges from 1 to 1000. The default value is 100. |
Ethernet interface view, GE interface view, XGE interface view, Eth-Trunk interface view, Port-group view
This command is available to aid upgrade compatibility. It can be run when it is entered in full.
After the command is used, the DHCP message discard alarm is enabled. If the number of discarded messages reaches the alarm threshold, an alarm is generated.
# On GE 0/0/1, enable the function of checking the rate of sending DHCP messages, set the rate limit of sending DHCP messages to the DHCP protocol stack to 50 pps, enable the DHCP message discard alarm, and set the alarm threshold for discarded DHCP messages to 50.
<HUAWEI> system-view [HUAWEI] interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1] dhcp snooping check dhcp-rate enable 50 alarm dhcp-rate enable threshold 50