Configuring Remote MAC Swap Loopback
Context
Before performing a remote MAC swap loopback test, configure the source MAC address, destination MAC address, and VLAN ID of test packets on the Switch. Only the packets with the specified source MAC address, destination MAC address, and VLAN ID are looped back.
A remote MAC swap loopback test modifies only Ethernet frames matching the MAC swap loopback configuration on an interface, and other Ethernet frames can still be forwarded on the interface. However, if a large number of test packets are sent, test packets occupy bandwidth of other services on the interface.
Procedure
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The interface view is displayed.
- Configure remote MAC swap loopback.
loopback remote swap-mac source-mac source-mac-address dest-mac dest-mac-address vlan vlan-id [ timeout { time-value | none } ]
QinQ and MAC swap loopback cannot be used simultaneously on a loopback interface of the switch. If a loopback interface joins a VLAN in untagged mode, packets sent from the loopback interface do not carry tags. If a loopback interface joins a VLAN in tagged mode, packets sent from the loopback interface carry tags.