< Home

loopback-detect auto action

Function

The loopback-detect auto action command specifies an action when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

The undo loopback-detect auto action command restores the default action when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

By default, the action is trap when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

Format

loopback-detect auto action { trap | quitvlan }

undo loopback-detect auto action

Parameters

Parameter

Description

Value

trap

Indicates that the interface only sends a trap when loops are detected.

-

quitvlan

Indicates that the interface is removed from the VLAN where MAC address flapping is detected.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenarios

When the switch is configured with MAC address flapping detection and automatic LBDT, if MAC address flapping is detected in a VLAN, automatic LBDT is triggered to detect loops in the VLAN. Then you can run the loopback-detect auto action command to configure an action on the interface to minimize the impact of loops on the entire network.

When automatic LBDT is triggered to automatically detect loops in the VLAN where MAC address flapping is detected, you can configure either of the following actions on the interface:
  • trap: The interface only sends a trap.
  • quitvlan: The interface is removed from the VLAN where a loop occurs.

Prerequisites

  • MAC address flapping detection has been enabled. For details on how to configure MAC address flapping detection, see Configuring MAC Address Flapping Detection.
  • Automatic LBDT has been enabled using the undo loopback-detect auto disable command.

Follow-up Procedure

Run the loopback-detect recovery-time command to configure the recovery time of the problematic interface.

Precautions

The quitvlan action that is configured using this command takes effect only in the scenario where automatic LBDT is triggered to detect a loop between interfaces in the VLAN where MAC address flapping is detected. The trap action is used in the scenario where automatic LBDT is triggered to detect a loop on the downstream network or device in the VLAN where MAC address flapping is detected.

Example

# Configure the quitvlan action when automatic LBDT is triggered to detect loops in the VLAN where MAC address flapping is detected.

<HUAWEI> system-view
[HUAWEI] mac-address flapping detection
[HUAWEI] undo loopback-detect auto disable
[HUAWEI] loopback-detect auto action quitvlan
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >