
[SwitchB-Ethernet0/0/2]
loopback local swap-mac source-mac 0018-2000-0085 dest-mac
018-2000-0070 vlan 100 interface gigabitethernet 0/0/1 timeout 80
[SwitchB-Ethernet0/0/2]
loopback swap-mac start
[SwitchB-Ethernet0/0/2]
quit
Step 3
Verify the configuration.
After completing the configuration, run the
display loopback swap-mac information
command to verify the configuration. If the configuration is correct, send Ethernet frames from
the tester to test network performance.
[SwitchB]
display loopback swap-mac information
Loopback type : local
Loopback state : running
Loopback test time(s) : 80
Loopback interface : Ethernet0/0/2
Loopback output interface : GigabitEthernet0/0/1
Loopback source MAC : 0018-2000-0085
Loopback destination MAC : 0018-2000-0070
Loopback vlan : 100
Loopback inner vlan : 0
Loopback packets : 0
Drop packets : 3
----End
Configuration Files
l
Configuration file of Switch B
#
sysname SwitchB
#
vlan batch 100
#
interface Ethernet0/0/2
port hybrid pvid vlan 100
port hybrid untagged vlan 100
loopback local swap-mac source-mac 0018-2000-0085 dest-mac 0018-2000-0070
vlan
100 interface GigabitEthernet0/0/1 timeout 80
#
interface GigabitEthernet0/0/1
port link-type trunk
port trunk allow-pass vlan 100
#
return
9.5.2 Example for Configuring Remote MAC Swap Loopback
Networking Requirements
As shown in
, Switch B is an S3700. GE 0/0/1 of Switch B is connected to an Ethernet
network.
A remote MAC swap loopback test needs to be performed on GE 0/0/1. A tester sends Ethernet
frames to Switch B. After the Ethernet frames are received on GE 0/0/1, Switch B swaps their
source and destination MAC addresses and sends them back to the tester from GE 0/0/1. The
tester analyzes connectivity and performance of the Ethernet network based on the received
Ethernet frames.
Quidway S3700 Series Ethernet Switches
Configuration Guide - Reliability
9 MAC Swap Loopback Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
384