dhcp rate-limit

Function

The dhcp rate-limit command disables global rate limiting for DHCP messages or sets a rate limit for DHCP messages.

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

By default, global rate limiting is enabled for DHCP messages, and the default rate limit for DHCP messages is 800 pps.

Format

dhcp rate-limit disable

dhcp rate-limit rateLimitValue

undo dhcp rate-limit disable

undo dhcp rate-limit [ rateLimitValue ]

Parameters

Parameter Description Value
rateLimitValue

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

The value is an integer ranging from 1 to 4000.

disable

Disables global rate limiting for DHCP 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 DHCP clients go online directly, a large number of DHCP clients go online through a DHCP relay agent, or the DHCP relay agent or DHCP server is busy due to message attacks, run the dhcp rate-limit command to set a rate limit for DHCP messages. If the rate of DHCP messages exceeds the limit, some DHCP messages are discarded, reducing CPU usage and increasing the user access rate. The rate limit for DHCP messages can be adjusted based on network conditions.

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

Example

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