loop-detect eth-loop priority

Function

The loop-detect eth-loop priority command configures the blocking priority of an interface for MAC flapping-based loop detection.

The undo loop-detect eth-loop priority command restores the default setting.

By default, the blocking priority of an interface is 1.

Format

loop-detect eth-loop priority priority

undo loop-detect eth-loop priority

Parameters

Parameter Description Value
priority priority

Specifies the blocking priority of an interface.

The value is an integer ranging from 1 to 4.

If a loop occurs, the device blocks an interface with a low blocking priority value. If the value is 4 on an interface or a PW, the interface or PW is never blocked, and the MAC flapping-based loop detection is invalid.

Views

Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Layer 2 sub-interface view, Sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
mflp write

Usage Guidelines

Usage Scenario

After MAC flapping-based loop detection is configured on devices of a BD (Bridge-Domain), if a device detects a loop, the device blocks an interface based on its blocking priority. To configure the blocking priority of an interface, run the loop-detect eth-loop priority command.

Precautions

If a loop occurs and the AC-side interfaces have the same blocking priority, the AC-side interfaces are all blocked.

If MAC flapping-based loop detection is configured for a BD using the loop-detect eth-loop loop-times loop-times detect-cycle detect-cycle-time cycles cycles command with detect-cycle-time and cycles specified and a blocking priority is configured on an interface bound to the BD using the loop-detect eth-loop priority priority command, the detection cycle is as follows:

  • If priority is 1, the detection cycle is calculated as follows: Detection cycle = 1 x detect-cycle-time × cycles
  • If priority is 2, the detection cycle is calculated as follows: Detection cycle = 4 x detect-cycle-time × cycles
  • If priority is 3, the detection cycle is calculated as follows: Detection cycle = 8 x detect-cycle-time × cycles
  • If priority is 4, the interface is never blocked, and the MAC flapping-based loop detection function does not take effect.

    High-priority interfaces have a longer detection time, and low-priority interfaces are preferentially blocked if the MAC flapping based-loop detection function detects a loop.

Example

# Configure the blocking priority of GE 0/1/1 as 4.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1
[*HUAWEI-GigabitEthernet0/1/1] loop-detect eth-loop priority 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >