The dhcp snooping check dhcp-rate command sets the maximum rate of sending DHCP messages to the processing unit.
The undo dhcp snooping check dhcp-rate command restores the default maximum rate of sending DHCP messages to the processing unit.
By default, the maximum rate of sending DHCP messages to the processing unit is 100 pps.
| Parameter | Description | Value |
|---|---|---|
rate |
Specifies the maximum rate of sending DHCP messages to the processing unit. |
The value ranges from 1 to 100, in pps. The default value is 100. |
Usage Scenario
After DHCP snooping is enabled, the device sends all the received DHCP Request messages and Reply messages to the processing unit. If the rate of sending DHCP messages is high, processing efficiency of the processing unit is affected. After the device is enabled to check the rate of sending DHCP messages to the processing unit, run the dhcp snooping check dhcp-rate command to set the maximum rate of sending DHCP messages to the processing unit. DHCP messages that exceed the rate are discarded.
Prerequisites
The device has been enabled to check the rate of sending DHCP messages to the processing unit using the dhcp snooping check dhcp-rate enable command.