loop-detect eth-loop assist-stp enable

Function

The loop-detect eth-loop assist-stp enable command allows both STP and MAC flapping-based loop detection to be enabled.

The undo loop-detect eth-loop assist-stp enable command prevents both STP and MAC flapping-based loop detection from being enabled.

By default, STP and MAC flapping-based loop detection cannot be both enabled.

Format

loop-detect eth-loop assist-stp enable

undo loop-detect eth-loop assist-stp enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mflp write

Usage Guidelines

Usage Scenario

On an STP-capable Layer 2 network, packets with the same source MAC address may form loops. To prevent loops, an interface must be blocked, and an alarm must be reported to the NMS. However, STP and MAC flapping-based loop detection are mutually exclusive by default. To allow both STP and MAC-flapping-based loop detection to be enabled, run the loop-detect eth-loop assist-stp enable command.

Precautions

If the undo loop-detect eth-loop assist-stp enable command is run after both STP and MAC flapping-based loop detection are enabled, neither of the two configurations is deleted. The undo loop-detect eth-loop assist-stp enable command can be executed only after STP or MAC flapping-based loop detection is disabled.

NOTE: STP and MAC flapping-based loop detection have different blocking principles and may block different interfaces on a network, leading to temporary traffic interruptions. Therefore, exercise caution when running the loop-detect eth-loop assist-stp enable command.

Example

# Allow both STP and MAC flapping-based loop detection to be enabled.
<HUAWEI> system-view
[~HUAWEI] loop-detect eth-loop assist-stp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >