detect loop-times (EVPN-MAC-DUP view)

Function

The detect loop-times command sets loop detection parameters for MAC duplication suppression.

The undo detect loop-times command restores the default configuration.

By default, the loop detection period for MAC duplication suppression is 180s, and the threshold for MAC entry flaps is 5 within a detection period.

Format

detect loop-times loop-times detect-cycle detect-cycle-time

undo detect loop-times detect-cycle

undo detect loop-times loop-times detect-cycle detect-cycle-time

Parameters

Parameter Description Value
loop-times

Specifies the maximum number of times MAC entry flapping is allowed in a detection period.

The value is an integer ranging from 3 to 10.

detect-cycle detect-cycle-time

Specifies a detection period.

The value is an integer ranging from 60 to 900, in seconds. The value must be a multiple of 10.

Views

EVPN-MAC-DUP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

On an EVPN E-LAN, two PEs may be interconnected both through network-side and access-side links. If this is the case, a BUM traffic loop and MAC route flapping both occur, preventing devices from working properly. In this case, MAC duplication suppression on the devices works. By default, the system checks the number of times a MAC entry flaps within a detection period (180s by default). If the number of MAC flaps exceeds the upper threshold (5 by default), the system considers MAC route flapping to be occurring on the network and consequently suppresses the flapping MAC routes. The suppressed MAC routes cannot be sent to a remote PE through a BGP EVPN peer relationship. To modify the detection period or the threshold for MAC entry flaps, run the detect loop-times command.

Configuration Impact

If the detect loop-times command is run in both EVPN instance view and global EVPN configuration view, the configuration in the EVPN instance view takes precedence.

Precautions

This command takes effect does not take effect for MAC/IP routes but takes effect only for MAC routes.

Example

# Set loop detection parameters for MAC duplication suppression.
<HUAWEI> system-view
[~HUAWEI] evpn
[*HUAWEI-evpn] mac-duplication
[*HUAWEI-evpn-mac-dup] detect loop-times 4 detect-cycle 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >