< Home

dhcpv6 packet-rate drop-alarm threshold

Function

The dhcpv6 packet-rate drop-alarm threshold command sets the alarm threshold for the number of DHCPv6 messages discarded when the rate of DHCPv6 messages exceeds the rate limit.

The undo dhcpv6 packet-rate drop-alarm threshold command restores the default alarm threshold of the number of DHCPv6 messages discarded.

By default, the alarm threshold is 100 packets when the alarm function of DHCPv6 messages discarded is enabled.

Format

dhcpv6 packet-rate drop-alarm threshold threshold

undo dhcpv6 packet-rate drop-alarm threshold

Parameters

Parameter

Description

Value

threshold

Specifies the alarm threshold for the number of DHCPv6 messages discarded when the rate of DHCPv6 messages exceeds the rate limit.

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

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the alarm function of DHCPv6 messages discarded is enabled using the dhcpv6 packet-rate drop-alarm enable command, the device records alarm information when the number of DHCPv6 packets that are discarded exceeds the alarm threshold.

Prerequisites

  1. The DHCP function has been enabled globally using the dhcp enable command.

  2. The DHCPv6 packet rate limit has been enabled using the dhcpv6 packet-rate packet-rate command.

  3. The alarm function for discarding DHCPv6 messages when the rate of DHCPv6 messages exceeds the limit has been enabled using the dhcpv6 packet-rate drop-alarm enable command.

Example

# Configure the device to generate an alarm when the number of DHCPv6 messages discarded exceeds 150 packets.

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