< Home

dhcp snooping alarm dhcpv6-rate enable

Function

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

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

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

Format

dhcp snooping alarm dhcpv6-rate enable

undo dhcp snooping alarm dhcpv6-rate enable

Parameters

None

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 DHCP snooping is enabled, the device sends all the received DHCPv6 messages to the processing unit. If the rate of sending DHCPv6 messages is high, processing efficiency of the processing unit is affected. After the device is enabled to check the rate of sending DHCPv6 messages to the processing unit using the dhcp snooping check dhcpv6-rate enable command, DHCPv6 messages that are sent in a specified rate are sent to the processing unit and those that exceed the rate are discarded.

If the dhcp snooping alarm dhcpv6-rate enable command is run, the device generates an alarm when the number of discarded DHCPv6 messages reaches the threshold. You can configure the alarm threshold using the dhcp snooping alarm dhcpv6-rate threshold command.

Prerequisites

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

Precautions

If the dhcp snooping alarm dhcpv6-rate enable 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.

To ensure that alarms can be properly reported, you need to run the snmp-agent trap enable feature-name dhcp command to enable the DHCP module to report the corresponding alarm. You can check whether the DHCP module is enabled to report the corresponding alarm using the display snmp-agent trap feature-name dhcp all command.

Example

# In the system view, enable the device to generate an alarm when the number of discarded DHCPv6 messages reaches the alarm threshold.

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