< Home

dhcp snooping check dhcp-rate enable alarm enable (upgrade-compatible command)

Function

Using the dhcp snooping check dhcp-rate enable alarm enable command, you can:

  • Enable the function of checking the rate of sending DHCP messages to the processing unit.
  • Set the rate limit of sending DHCP messages to the processing unit.
  • Enable the device to generate an alarm when the number of discarded DHCP messages reaches the threshold.
  • Set the alarm threshold for the number of discarded DHCP messages.

By default, the device does not check the rate of sending DHCP messages to the processing unit; the maximum rate of sending DHCP messages to the processing unit is 100 pps; the device does not generate an alarm when the number of discarded DHCP messages reaches the threshold; the alarm threshold for the number of discarded DHCP messages is 100.

Format

dhcp snooping check dhcp-rate enable [ [ rate ] rate ] alarm [ dhcp-rate ] { enable | [ enable ] threshold threshold }

Parameters

Parameter

Description

Value

[ rate ] rate

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

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

dhcp-rate

Generates an alarm when the number of discarded DHCP messages reaches the threshold.

-

threshold threshold

Specifies the alarm threshold. When the number of discarded DHCP messages reaches the threshold, an alarm is generated.

The value is an integer that ranges from 1 to 1000. The default value is 100.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can be run when it is entered in full.

After the command is used, the DHCP message discard alarm is enabled. If the number of discarded messages reaches the alarm threshold, an alarm is generated.

Example

# Enable the function of checking the rate of sending DHCP messages to the processing unit, set the rate limit of sending DHCP messages to the processing unit to 50 pps, enable the DHCP message discard alarm, and set the alarm threshold for discarded DHCP messages to 50.

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