< Home

display loopback swap-mac information

Function

The display loopback swap-mac information command displays the MAC swap loopback configuration.

Format

display loopback swap-mac information

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# 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                          
Table 1 Description of the display loopback swap-mac information command output

Item

Description

Loopback type

Type of the MAC swap loopback test:
  • local: local MAC swap loopback test
  • remote: remote 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:
  • running: The MAC swap loopback function is enabled.
  • stop: The MAC swap loopback function is disabled.

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >