Using the dhcp snooping check dhcp-rate enable alarm enable command, you can:
By default, the device does not check the rate of sending DHCP messages to the processing unit; the maximum rate of sending DHCP messages to the processing unit is 100 pps; the device does not generate an alarm when the number of discarded DHCP messages reaches the threshold; the alarm threshold for the number of discarded DHCP messages is 100.
dhcp snooping check dhcp-rate enable [ [ rate ] rate ] alarm [ dhcp-rate ] { enable | [ enable ] threshold threshold }
Parameter |
Description |
Value |
---|---|---|
[ rate ] rate |
Specifies the rate limit of sending DHCP messages to the processing unit. |
The value is an integer that ranges from 1 to 100, in pps. The default value is 100. |
dhcp-rate |
Generates an alarm when the number of discarded DHCP messages reaches the threshold. |
- |
threshold threshold |
Specifies the alarm threshold. When the number of discarded DHCP messages reaches the threshold, an alarm is generated. |
The value is an integer that ranges from 1 to 1000. The default value is 100. |
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.
# Enable the function of checking the rate of sending DHCP messages to the processing unit, set the rate limit of sending DHCP messages to the processing unit to 50 pps, enable the DHCP message discard alarm, and set the alarm threshold for discarded DHCP messages to 50.
<HUAWEI> system-view [HUAWEI] dhcp snooping check dhcp-rate enable 50 alarm dhcp-rate enable threshold 50