< Home

dhcp snooping check dhcp-rate alarm enable

Function

The dhcp snooping check dhcp-rate alarm enable command enables the device to generate an alarm when the number of discarded DHCP messages reaches the threshold.

The undo dhcp snooping check dhcp-rate alarm enable command disables the device from generating an alarm when the number of discarded DHCP messages reaches the threshold.

By default, the device is disabled from generating an alarm when the number of discarded DHCP messages reaches the threshold.

Format

dhcp snooping check dhcp-rate alarm enable

undo dhcp snooping check dhcp-rate alarm enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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 dhcp snooping check dhcp-rate enable command is run, the device checks the rate of sending DHCP messages. DHCP messages that are sent in a specified rate are sent to the processing unit and those that exceed the rate are discarded.

After the alarm function is enabled, the device sends a trap message when the number of discarded DHCP messages reaches the alarm threshold.

The alarm threshold can be set through the dhcp snooping check dhcp-rate alarm threshold command.

Example

# Enable the device to generate an alarm when the number of discarded DHCP messages reaches the threshold.

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