42-2
To do…
Use the command…
Remarks
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.
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.
Configuring Port State Auto Recovery
covery:
Follow these steps to configure port state auto re
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable port state auto-recovery
recover enable
dhcp protective-down
Required
By default, this function is
disabled.
Configure the port state
auto-recovery interval
dhcp protective-down
recover interval interval
Optional
By default, the auto-discovery
interval is 300 seconds.
Rate
N
Limit Configuration Example
etwork requirements
As shown in
Figure 42-1
, Ethernet 1/0/1 of the S4500 switch is connected to the DHCP server. Ethernet
/0/2 is connected to client B and Ethernet 1/0/11 is connected to client A.
z
Enable DHCP snooping on the switch, and specify Ethernet 1/0/1 as the DHCP snooping trusted
port.
z
Configure DHCP packet rate limit on Ethernet 1/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.
1