[SwitchC] interface gigabitethernet 1/0/1
[SwitchC-GigabitEthernet1/0/1] port link-type trunk
[SwitchC-GigabitEthernet1/0/1] port trunk allow-pass vlan 300
# Add GE 1/0/2 on SwitchD to VLAN 300.
[SwitchD] interface gigabitethernet 1/0/2
[SwitchD-GigabitEthernet1/0/2] port link-type trunk
[SwitchD-GigabitEthernet1/0/2] port trunk allow-pass vlan 300
Step 3 Configure VLAN mapping of double tags on the Switches.
# Configure VLAN mapping of double tags on GE 1/0/1 of SwitchA.
<SwitchA> system-view
[SwitchA] interface GigabitEthernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] port vlan-mapping vlan 300 inner-vlan 30 map-vlan 
100 map-inner-vlan 10
# Configure VLAN mapping of double tags on GE 1/0/2 of SwitchB.
<SwitchB> system-view
[SwitchB] interface GigabitEthernet 1/0/2
[SwitchB-GigabitEthernet1/0/2] port vlan-mapping vlan 300 inner-vlan 30 map-vlan 
200 map-inner-vlan 20
Step 4 Verify the configuration.
The hosts in Enterprise A and the hosts in Enterprise B can communicate with each other.
----End
Configuration Files
l Configuration file of SwitchA
#
sysname SwitchA
#
vlan batch 100
#
interface GigabitEthernet1/0/1
 port link-type trunk
 port trunk allow-pass vlan 100
 port vlan-mapping vlan 300 inner-vlan 30 map-vlan 100 map-inner-vlan 10
#
return 
l Configuration file of SwitchB
#
sysname SwitchB
#
vlan batch 200
#
interface GigabitEthernet1/0/2
 port link-type trunk
 port trunk allow-pass vlan 200
 port vlan-mapping vlan 300 inner-vlan 30 map-vlan 200 map-inner-vlan 20
#
return 
l Configuration file of SwitchC
#
sysname SwitchC
#
vlan batch 300
#
interface GigabitEthernet1/0/1
 port link-type trunk
Quidway S7700 Smart Routing Switch
Configuration Guide - Ethernet 4 VLAN Mapping Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
182