< Home

dhcp snooping alarm dhcp-rate threshold

Function

The dhcp snooping alarm dhcp-rate threshold command sets the alarm threshold for the number of discarded DHCP messages.

The undo dhcp snooping alarm dhcp-rate threshold command restores the default alarm threshold for the number of discarded DHCP messages.

By default, the global alarm threshold for the number of discarded DHCP messages is 100, and the alarm threshold for the number of discarded DHCP messages on an interface is the same as that configured in the system view.

Format

dhcp snooping alarm dhcp-rate threshold threshold

undo dhcp snooping alarm dhcp-rate threshold

Parameters

Parameter Description Value

threshold

Specifies the alarm threshold. If 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, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you run the dhcp snooping alarm dhcp-rate enable command to enable a device to generate an alarm when the number of discarded DHCP messages reaches the threshold, you can set the alarm threshold using the dhcp snooping alarm dhcp-rate threshold command. An alarm is generated when the number of discarded DHCP messages reaches the threshold.

If the alarm threshold is set in the system view and interface view, the smaller value takes effect.

Prerequisites

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

Example

# Set the alarm threshold for the number of discarded DHCP messages on GE0/0/1 to 50.

<HUAWEI> system-view
[HUAWEI] dhcp enable
[HUAWEI] dhcp snooping enable
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] dhcp snooping alarm dhcp-rate threshold 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >