< Home

dhcp snooping check dhcp-rate

Function

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

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

By default, the maximum rate of sending DHCP messages to the processing unit is 100 pps.

Format

dhcp snooping check dhcp-rate rate

undo dhcp snooping check dhcp-rate

Parameters

Parameter Description Value

rate

Specifies the maximum rate of sending DHCP messages to the processing unit.

The value ranges from 1 to 100, in pps. The default value is 100.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After DHCP snooping is enabled, the device sends all the received DHCP Request messages and Reply messages to the processing unit. If the rate of sending DHCP messages is high, processing efficiency of the processing unit is affected. After the device is enabled to check the rate of sending DHCP messages to the processing unit, run the dhcp snooping check dhcp-rate command to set the maximum rate of sending DHCP messages to the processing unit. DHCP messages that exceed the rate are discarded.

Prerequisites

The device has been enabled to check the rate of sending DHCP messages to the processing unit using the dhcp snooping check dhcp-rate enable command.

Example

# Set the maximum rate of sending DHCP messages to the processing unit to 50 pps.

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