loop-detect mac-withdraw enable

Function

The loop-detect mac-withdraw enable command enables a sub-interface or an interface to delete MAC address entries when its loop detection status changes.

The undo loop-detect mac-withdraw enable command disables a sub-interface or an interface from deleting MAC address entries when its loop detection status changes.

By default, when a sub-interface and interface's loop detection status changes, it does not delete its MAC address entries.

Format

loop-detect mac-withdraw enable

undo loop-detect mac-withdraw enable

Parameters

None

Views

Eth-Trunk sub-interface view, Eth-Trunk interface view, GE sub-interface view, GE interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vlan write

Usage Guidelines

Usage Scenario

On a VPLS network, after an AC sub-interface or interface has loop detection enabled using the loop-detect enable command, if the access link or device fails, the devices bound to the same VSI cannot immediately detect this failure and therefore cannot promptly update their MAC address entries. To resolve this problem, run the loop-detect mac-withdraw enable command on the AC sub-interface or interface to enable it to delete MAC address entries when its loop detection status changes.

The loop-detect mac-withdraw enable command speeds up traffic switching.

Prerequisites

  • Loop detection has been enabled using the loop-detect enable command.
  • The sub-interface or the interface has been bound to a VSI using the l2 binding command.

Example

# Enable a sub-interface to delete MAC address entries when its loop detection status changes.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/1.1
[*HUAWEI-GigabitEthernet0/1/1.1] loop-detect mac-withdraw enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >