5-2
Configuring DHCP Packet Rate Limit
Configuring DHCP Packet Rate Limit
Follow these steps to configure rate limit of DHCP packets:
To do…
Use the command…
Remarks
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.
Configuring Port State Auto Recovery
Follow these steps to configure port state auto recovery:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable port state auto-recovery
dhcp protective-down
recover enable
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.