Command Reference
S9300 and S9300X V200R019C10
This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view
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.
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.