Figure 7-3 Networking diagram of a local MAC swap loopback test
Ethernet
Tester
SwitchA
SwitchB
Users
XGE0/0/2
XGE0/0/1
Configuration Roadmap
The configuration roadmap is as follows:
1. Create a VLAN, configure XGE 0/0/1 as a trunk interface and XGE 0/0/2 as a hybrid
interface, and add the interfaces to the VLAN.
2. Configure local MAC swap loopback on Switch B.
3. Enable the MAC swap loopback function on Switch B.
Data Preparation
To complete the configuration, you need the following data:
l VLAN ID: 100
l Source and destination MAC addresses of test Ethernet frames: 0018-2000-0085 and
0018-2000-0070
l Timeout period of the loopback test: 80s
Procedure
Step 1 Create VLAN 100, configure XGE 0/0/1 as trunk interface and XGE 0/0/2 as a hybrid interface,
and add the interfaces to VLAN 100.
<Quidway> system-view
[Quidway] sysname SwitchB
[SwitchB] vlan batch 100
[SwitchB] interface xgigabitethernet0/0/1
[SwitchB-XGigabitEthernet0/0/1] port link-type trunk
[SwitchB-XGigabitEthernet0/0/1] port trunk allow-pass vlan 100
[SwitchB-XGigabitEthernet0/0/1] quit
[SwitchB] interface xgigabitethernet0/0/2
[SwitchB-XGigabitEthernet0/0/2] port hybrid pvid vlan 100
[SwitchB-XGigabitEthernet0/0/2] port hybrid untagged vlan 100
Step 2 Configure local MAC swap loopback on XGE 0/0/2 and specify XGE 0/0/1 as the outbound
interface of loopback Ethernet frames. Enable the MAC swap loopback function.
[SwitchB-XGigabitEthernet0/0/2] loopback local swap-mac source-mac 0018-2000-0085
dest-mac 018-2000-0070 vlan 100 interface xgigabitethernet 0/0/1 timeout 80
[SwitchB-XGigabitEthernet0/0/2] loopback swap-mac start
[SwitchB-XGigabitEthernet0/0/2] quit
Quidway S6700 Series Ethernet Switches
Configuration Guide - Reliability 7 MAC Swap Loopback Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
282