mac threshold-alarm

Function

The mac threshold-alarm command configures MAC address alarm thresholds for an EVPN instance.

The undo mac threshold-alarm command restores the default MAC address alarm thresholds.

By default, the alarm reporting threshold is 80%, and the alarm clearing threshold is 70%.

Format

mac threshold-alarm upper-limit upper-limit-value lower-limit lower-limit-value

undo mac threshold-alarm

Parameters

Parameter Description Value
lower-limit lower-limit-value

Specifies the alarm clearing threshold for MAC addresses in an EVPN instance.

The value is an integer ranging from 1 to 100, in percent.

lower-percent must be smaller than upper-percent. If you do not want alarms to be frequently reported and cleared due to route flapping, ensure that lower-percent is smaller than upper-percent by 10 at least.

upper-limit upper-limit-value

Specifies the alarm reporting threshold for MAC addresses in an EVPN instance.

The value is an integer ranging from 1 to 100, in percent.

It is recommended that you specify a value smaller than 95 for upper-percent.

Views

BD EVPN view, EVPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vstm write

Usage Guidelines

Usage Scenario

The number of MAC addresses allowed by an EVPN instance is limited. If the number exceeds the maximum limit, services may be interrupted. To address this problem, configure alarm thresholds for MAC addresses in the EVPN instance. You can then check whether exceptions have occurred based on reported alarms and take immediate measures to prevent excess MAC addresses from being learned by the EVPN instance.

To adjust alarm reporting and clearing thresholds, run the mac threshold-alarm command.

Precautions

The mac threshold-alarm command simply configures alarm thresholds for MAC addresses in an EVPN instance. A threshold-crossing alarm can be reported only if the following conditions are met:

  • The alarm function is enabled using the snmp-agent trap enable feature-name evpn command.
  • The number of MAC addresses in the EVPN instance exceeds the alarm reporting threshold or falls below the alarm clearing threshold.

Example

# Configure an alarm reporting threshold of 85% and an alarm clearing threshold of 65% for MAC addresses in an EVPN instance.
<HUAWEI> system-view
[~HUAWEI] evpn vpn-instance evpn1
[*HUAWEI-evpn-instance-evpn1] mac threshold-alarm upper-limit 85 lower-limit 65
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >