The display loopback swap-mac information command displays the MAC swap loopback configuration.
Usage Scenario
To ensure a successful loopback test, use this command to check the loopback configuration before the loopback test. After the loopback test is complete, use this command to view the number of loopback test packets and the number of discarded test packets, and compare them with the number of packets sent from the tester to check network performance.
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.
# Display the MAC swap loopback configuration.
Models excluding the S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:
<HUAWEI> display loopback swap-mac information Loopback type : local Loopback state : running Loopback test time(s) : 60 Loopback interface : GigabitEthernet0/0/1 Loopback output interface : GigabitEthernet0/0/2 Loopback source MAC : 0001-0001-0001 Loopback destination MAC : 0002-0002-0002 Loopback vlan : 10 Loopback inner vlan : 0 Loopback packets : 0 Drop packets : 3
S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735-S-I, and S5735S-S:
<HUAWEI> display loopback swap-mac information Loopback type : remote Loopback state : running Loopback test time(s) : 60 Loopback interface : GigabitEthernet0/0/1 Loopback output interface : GigabitEthernet0/0/2
Item |
Description |
---|---|
Loopback type |
Type of the MAC swap loopback test:
Run the following commands to configure loopback type. loopback local swap-mac loopback remote swap-mac |
Loopback state |
Status of the MAC swap loopback function:
Run the following commands to configure loopback state. loopback swap-mac |
Loopback test time(s) |
Timeout period of the loopback test. If the value is none, the loopback test timeout function is disabled. |
Loopback interface |
Interface where the loopback test is performed. |
Loopback output interface |
Outbound interface that sends test packets back to the tester. |
Loopback source MAC |
Source MAC address of test packets. |
Loopback destination MAC |
Destination MAC address of test packets. |
Loopback vlan |
VLAN ID of test packets. |
Loopback inner vlan |
Inner VLAN ID of test packets. |
Loopback packets |
Number of received loopback packets. |
Drop packets |
Number of discarded packets. This field is displayed only when a local MAC swap loopback test is performed. |