The dhcpv6 packet-rate command enables rate limit of DHCPv6 messages and sets the rate threshold for DHCPv6 messages.
The undo dhcpv6 packet-rate command disables rate limit of DHCPv6 messages and deletes the rate threshold for DHCPv6 messages.
By default, rate limit of DHCPv6 messages is disabled.
Parameter |
Description |
Value |
---|---|---|
packet-rate |
Specifies the rate threshold for DHCPv6 messages. |
The value is an integer that ranges from 0 to 400, in pps. If the value is 0, rate limit of DHCPv6 messages is disabled. |
Usage Scenario
To prevent clients from sending a large number of messages to attack the device, the device limits the rate of DHCPv6 messages. After the DHCPv6 packet rate limit is enabled and the rate threshold is configured using the dhcpv6 packet-rate command, the DHCPv6 packets are discarded when the packet rate exceeds the rate threshold.
Prerequisites
DHCP functions have been enabled globally using the dhcp enable command.
Precautions
When the value of packet-rate is greater than 200, you need to run the car packet-type dhcpv6-reply cir cir-value command to increase the maximum rate of DHCPv6 Reply messages.