4-2
Configuring DHCP Packet Rate Limit
Configuring DHCP Packet Rate Limit
Follow these steps to configure rate limit of DHCP packets:
Operation
Command
Description
Enter system view
system-view
—
Enter port view
interface interface-type
interface-number
—
Enable the DHCP packet rate
limit function
dhcp rate-limit enable
Required
By default, DHCP packet rate
limit is disabled.
Configure the maximum DHCP
packet rate allowed on the port
dhcp rate-limit rate
Optional
By default, the maximum rate is
15 pps.
Enable the port state
auto-recovery function
dhcp protective-down
recover enable
Optional
By default, the port state
auto-recovery function is
disabled.
Set the port state
auto-recovery interval
dhcp protective-down
recover interval interval
Optional
The port state auto-recovery
interval is 300 seconds.
z
Enable the port state auto-recovery function before setting the auto-recovery interval.
z
You are not recommended to configure DHCP packet rate limit on the ports of an aggregation
group.
Rate Limit Configuration Example
Network requirements
As shown in
Figure 4-1
, Ethernet1/0/1 of the switch is connected to the DHCP server. Ethernet1/0/2 is
connected to client B and Ethernet1/0/11 is connected to client A.
z
Enable DHCP snooping on the switch, and specify Ethernet1/0/1 as the DHCP snooping trusted
port.
z
Configure DHCP packet rate limit on Ethernet1/0/11 and set the maximum DHCP packet rate
allowed on the port to 100 pps.
z
Set the port state auto-recovery interval to 30 seconds on the switch.