< Home

dhcpv6 packet-rate

Function

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.

Format

dhcpv6 packet-rate packet-rate

undo dhcpv6 packet-rate

Parameters

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.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable rate limit of DHCPv6 messages and set the rate threshold for DHCPv6 messages to 200 pps.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcpv6 packet-rate 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >