# Add related GE 1/0/0 to the VLANs.
[Quidway] interface gigabitethernet 1/0/0
[Quidway-GigabitEthernet1/0/0] port hybrid tagged vlan 10 100 to 200
# Configure VLAN mapping on GE 1/0/0.
[Quidway-GigabitEthernet1/0/0] port vlan-mapping vlan 100 to 200 map-vlan 10
[Quidway-GigabitEthernet1/0/0] quit
Step 2 Verify the configuration.
Users in VLAN 100 to VLAN 200 can connect to the Internet through the Switch.
----End
Configuration Files
l Configuration file of the Switch
#
sysname Quidway
#
vlan batch 10 100 to 200
#
interface GigabitEthernet1/0/0
port hybrid tagged vlan 10 100 to 200
port vlan-mapping vlan 100 to 200 map-vlan 10
#
return
4.7.3 Example for Configuring Mapping of Double VLAN Tags (2
to 2)
Networking Requirements
As shown in Figure 4-3, outer VLAN ID 100 and inner VLAN ID 10 are assigned to Enterprise
A; outer VLAN ID 200 and inner VLAN ID 20 are assigned to Enterprise B. Hosts in Enterprise
A and Enterprise B communicate through the ISP network. Outer VLAN ID 300 and inner VLAN
30 are assigned to the ISP network.
Figure 4-3 Networking diagram for configuring VLAN mapping of double VLAN tags
Enterprise B
Outer: VLAN 200
Inner: VLAN 20
Enterprise A
Outer: VLAN 100
Inner: VLAN 10
ISP
Outer: VLAN 300
Inner: VLAN 30
GE1/0/1 GE1/0/2
SwitchB
SwitchA
SwitchC
SwitchD
GE1/0/1
GE1/0/2
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.
180