5. Configure other community switches. The configuration is similar to the configuration on
SwitchB.
Data preparation
To complete the configuration, you need the following data:
l VLANs to which GE 1/0/0 of SwitchB is added in tagged mode: VLAN 1000 to VLAN
1100, VLAN 1101, VLAN 1102, VLAN 1103, and VLAN 101
l VLANs to which GE 2/0/0 of SwitchB is added in tagged mode: VLAN 101 to VLAN 150,
VLAN 1101, VLAN 1102, and VLAN 1103
l VLANs to which GE 1/0/0 of SwitchA is added in tagged mode: VLAN 1101, VLAN 1102,
and VLAN 1103
l VLANs to which GE 1/0/0 of SwitchA is added in untagged mode: VLAN 21
l Interface on SwitchB where VLAN mapping is configured: GE 1/0/0
l Interface on SwitchA where selective QinQ is configured: GE 1/0/0
Procedure
Step 1 # Configure SwitchA.
# Create VLANs.
<Quidway> system-view
[Quidway] vlan batch 21 to 70 1101 to 1103
# Add related GE 1/0/0 to the VLANs.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port hybrid untagged vlan 21
[Quidway-GigabitEthernet1/0/0] port hybrid tagged vlan 1101 to 1103
[Quidway-GigabitEthernet1/0/0] quit
# Configure selective QinQ on GE 1/0/0.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port vlan-stacking vlan 101 to 150 stack-vlan 21
[Quidway-GigabitEthernet1/0/0] quit
Step 2 # Configure SwitchB.
# Create VLANs.
<Quidway> system-view
[Quidway] vlan batch 101 to 150 1000 to 1103
# Add GE 1/0/0 and GE 2/0/0 to the VLANs.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port hybrid tagged vlan 101 1000 to 1103
[Quidway-GigabitEthernet1/0/0] quit
[Quidway] interface gigabitethernet 2/0/0
[Quidway-GigabitEthernet2/0/0] port hybrid tagged vlan 101 to 150 1101 to 1103
[Quidway-GigabitEthernet2/0/0] quit
# Configure VLAN mapping on GE 1/0/0.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port vlan-mapping vlan 1000 to 1100 map-vlan 101
[Quidway-GigabitEthernet1/0/0] quit
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 5 QinQ Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
223