The loopback swap-mac command enables or disables the MAC swap loopback function.
By default, the MAC swap loopback function is disabled.
Parameter |
Description |
Value |
---|---|---|
start |
Enables the MAC swap loopback function. |
- |
stop |
Disables the MAC swap loopback function. |
- |
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
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.