< Home

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

Function

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

  • Enable the function of checking the rate of sending DHCP messages to the DHCP protocol stack.
  • Set the rate limit of sending DHCP messages to the DHCP protocol stack.
  • Enable the DHCP message discard alarm.
  • Set the alarm threshold for discarded DHCP messages.

By default, the function of checking the rate of sending DHCP messages to the DHCP stack is disabled; the rate limit of sending DHCP messages to the DHCP stack is 100 pps; the DHCP message discard alarm is disabled; the alarm threshold for discarded DHCP messages is 100.

Format

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

Parameters

Parameter

Description

Value

[ rate ] rate

Specifies the rate limit of sending DHCP messages to the DHCP protocol stack.

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

alarm dhcp-rate enable

Enables the DHCP message discard alarm.

-

threshold threshold-value

Specifies the alarm threshold for discarded DHCP messages. After the function is enabled, an alarm is generated when the number of discarded DHCP messages reaches the alarm threshold on an interface.

The value ranges from 1 to 1000. The default value is 100.

Views

Ethernet interface view, GE interface view, XGE interface view, Eth-Trunk interface view, Port-group 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

# On GE 0/0/1, enable the function of checking the rate of sending DHCP messages, set the rate limit of sending DHCP messages to the DHCP protocol stack to 50 pps, enable the DHCP message discard alarm, and set the alarm threshold for discarded DHCP messages to 50.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] 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 >