dhcpv6 rate-limit

Function

The dhcpv6 rate-limit command disables global rate limiting for DHCPv6 messages or sets a rate limit for DHCPv6 messages.

The undo dhcpv6 rate-limit command restores the default configuration.

By default, global rate limiting is enabled for DHCPv6 messages, and the default rate limit for DHCPv6 messages is 512 pps.

Format

dhcpv6 rate-limit rate-limit

dhcpv6 rate-limit disable

undo dhcpv6 rate-limit [ rate-limit ]

undo dhcpv6 rate-limit disable

Parameters

Parameter Description Value
rate-limit

Specifies a rate limit for DHCPv6 messages, expressed in pps.

The value is an integer ranging from 1 to 2000.

disable

Disables global rate limiting for DHCPv6 messages.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

If a large number of DHCPv6 clients go online directly, a large number of DHCPv6 clients go online through a DHCPv6 relay agent, or the DHCPv6 relay agent or DHCPv6 server is busy due to message attacks, run the dhcpv6 rate-limit command to set a rate limit for DHCPv6 messages. If the rate of DHCPv6 messages exceeds the limit, some DHCPv6 messages are discarded, reducing CPU usage and increasing the user access rate. The rate limit for DHCPv6 messages can be adjusted based on network conditions.

If you do not need to limit the rate of DHCPv6 messages, run the dhcpv6 rate-limit disable command to disable global rate limiting for DHCPv6 messages.

Example

# Set a rate limit to 200 pps for DHCPv6 messages.
<HUAWEI> system-view
[~HUAWEI] dhcpv6 rate-limit 200
# Disable global rate limiting for DHCPv6 messages.
<HUAWEI> system-view
[~HUAWEI] dhcpv6 rate-limit disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >