ipv6 nd anti-attack rate-limit destination-ip

Function

The ipv6 nd anti-attack rate-limit destination-ip command configures a rate limit for receiving ND messages based on a specified destination IPv6 address, that is, the number of ND messages that can be processed per second based on a specified destination IPv6 address.

The undo ipv6 nd anti-attack rate-limit destination-ip command restores the default configuration.

By default, no rate limit for receiving ND messages based on a specified destination IPv6 address is configured.

Format

ipv6 nd { ns | na | rs | ra } anti-attack rate-limit destination-ip ipv6-address maximum max-value

undo ipv6 nd { ns | na | rs | ra } anti-attack rate-limit destination-ip ipv6-address maximum max-value

Parameters

Parameter Description Value
ns

Sets a rate limit for receiving NS messages.

-

na

Sets a rate limit for receiving NA messages.

-

rs

Sets a rate limit for receiving RS messages.

-

ra

Sets a rate limit for receiving RA messages.

-

destination-ip ipv6-address

Specifies a destination IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

maximum max-value

Specifies a rate limit for receiving ND messages based on a specified destination IPv6 address.

The value is an integer ranging from 0 to 5000, in messages per second.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nd write

Usage Guidelines

Usage Scenario

If a device is attacked, it receives a large number of ND messages within a short period. As a result, the device consumes many CPU resources to learn and respond to ND entries, affecting the processing of other services. To resolve this issue, configure a rate limit for receiving ND messages based on a specified destination IPv6 address. After the configuration is complete, the device counts the number of ND messages received per period based on the specified destination IPv6 address. If the number of ND messages exceeds the configured limit, the device does not process excess ND messages.

Configuration Impact

After a rate limit for receiving ND messages based on a specified destination IPv6 address is configured, the device counts the number of ND messages received per period based on the specified destination IPv6 address. If the number of ND messages exceeds the configured limit, the device does not process excess ND messages. As a result, the device may fail to process valid ND messages, causing user service interruptions.

Precautions

If a low rate limit is configured and the login through Telnet fails because the device receives a large number of attack packets, you can log in to the device through the console port to increase the rate limit.

Example

# Set a rate limit for receiving NS messages based on a specified destination IPv6 address to 550 messages per second.
<HUAWEI> system-view
[~HUAWEI] ipv6 nd ns anti-attack rate-limit destination-ip 2001:db8:1::1 maximum 550
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >