< Home

dhcp snooping check dhcpv6-rate

Function

The dhcp snooping check dhcpv6-rate command sets the maximum rate of sending DHCPv6 messages to the processing unit.

The undo dhcp snooping check dhcpv6-rate command restores the default maximum rate of sending DHCPv6 messages to the processing unit.

By default, the maximum rate of DHCPv6 messages sent to the processing unit is 100 pps.

Format

dhcp snooping check dhcpv6-rate rate

undo dhcp snooping check dhcpv6-rate

Parameters

Parameter Description Value

rate

Specifies the maximum rate of DHCPv6 messages sent to the processing unit.

The value is an integer that ranges from 1 to 400, in pps.

Views

System view, VLAN view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After DHCP snooping is enabled, the device sends all the received DHCPv6 messages to the processing unit. If the rate of sending DHCPv6 messages is high, processing efficiency of the processing unit is affected. After the device is enabled to check the rate of sending DHCPv6 messages to the processing unit, DHCPv6 messages that exceed the specified rate are discarded.

Before the maximum rate of DHCP messages sent to the DHCP message processing unit is configured, ensure that the dhcp snooping check dhcpv6-rate enable command has been executed to enable the device to check the rate of sending DHCPv6 messages to the processing unit. Otherwise, the configuration does not take effect.

Prerequisites

DHCP snooping has been enabled on the device using the dhcp snooping enable command.

Precautions

  • If you run the dhcp snooping check dhcpv6-rate command in the system view, the configuration takes effect for all the interfaces on the device. If you run this command in the interface view, the configuration takes effect only for the specified interface. If you run this command in the VLAN view, the configuration takes effect for all the interfaces in this VLAN.

  • If the maximum rates of sending DHCPv6 messages to the processing unit are set in the system view, VLAN view, and interface view simultaneously, the smallest value takes effect.

Example

# In the system view, set the maximum rate of sending DHCPv6 messages to the processing unit to 50 pps.

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