< Home

loopback swap-mac

Function

The loopback swap-mac command enables or disables the MAC swap loopback function.

By default, the MAC swap loopback function is disabled.

Format

loopback swap-mac { start | stop }

Parameters

Parameter

Description

Value

start

Enables the MAC swap loopback function.

-

stop

Disables the MAC swap loopback function.

-

Views

Ethernet interface view, GE interface view, XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view, MultiGE interface view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Both local and remote loopback tests deteriorate network performance. To minimize impact of a loopback test, enable the MAC swap loopback function when the loopback test begins and disable it immediately after the loopback test is complete.

A MAC swap loopback test stops when you disable the MAC swap loopback function or the loopback test times out. To perform the loopback test again, run the loopback swap-mac start command.

Pre-configuration Tasks

The local MAC swap loopback function has been configured by using the loopback local swap-mac command or the local MAC swap loopback function has been configured by using the loopback remote swap-mac command.

Precautions

An Eth-Trunk interface supports the MAC swap loopback function but an Eth-Trunk member interface does not.

An Eth-Trunk interface in LACP mode does not support the local MAC swap loopback function.

To ensure service provisioning on the interface, disable the MAC swap loopback function immediately after the loopback test is complete.

The loopback swap-mac command is a one-time command and is not saved in the configuration file.

Example

# Enable the MAC swap loopback function.

<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] loopback swap-mac start
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic