< Home

dhcp snooping alarm dhcpv6-rate threshold

Function

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

The undo dhcp snooping alarm dhcpv6-rate threshold command restores the default setting.

By default, the alarm threshold for globally discarded DHCPv6 messages is 100 packets, and the alarm threshold for discarded DHCPv6 messages on an interface is the same as the configured value in the system view.

Format

dhcp snooping alarm dhcpv6-rate threshold threshold

undo dhcp snooping alarm dhcpv6-rate threshold

Parameters

Parameter Description Value

threshold

Specifies the alarm threshold. When the number of discarded DHCPv6 messages reaches the threshold, the device generates an alarm.

The value is an integer that ranges from 1 to 1000, in packets.

Views

System view, Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, MultiGE interface view, 40GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the device is enabled to generate an alarm when the number of discarded DHCPv6 messages reaches the threshold using the dhcp snooping alarm dhcpv6-rate enable command, you can run the dhcp snooping alarm dhcpv6-rate threshold threshold command to configure the alarm threshold for discarded DHCPv6 messages. The device generates an alarm when the number of discarded DHCPv6 messages reaches the configured alarm threshold.

Prerequisites

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

Precautions

  • If the dhcp snooping alarm dhcpv6-rate threshold command is run in the system view, the configuration takes effect for all the interfaces on the device. If this command is run in the interface view, the configuration takes effect only for the specified interface.

  • If an alarm threshold is configured in the system view and interface view simultaneously, the smaller one takes effect.

Example

# Set the alarm threshold for discarded DHCPv6 messages to 500 packets in the system view.

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