4.4.2 Replacing Double Tags
Context
Do as follows on the S7700 where you need to replace the double VLAN tags.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
The Ethernet interface view is displayed.
Step 3 Run:
port link-type trunk
The link type of the interface is set to trunk.
Step 4 Run:
port trunk allow-pass vlan vlan-id
The interface is added to the VLAN whose ID will replace the outer VLAN tag of frames.
Step 5 Run:
port vlan-mapping vlan vlan-id1 inner-vlan vlan-id2 map-vlan vlan-id3 map-inner-
vlan vlan-id4 [ remark-8021p 8021p-value ]
The double VLAN tags are replaced.
Currently, only the E-series and F-series boards supports VLAN mapping of double tags.
When the VLAN tags of a packet match both a single-tag VLAN mapping entry and a double-
tag VLAN mapping entry, the double-tag VLAN mapping takes effect for the packet.
----End
4.4.3 Replacing the Outer VLAN Tag
Context
Do as follows on the S7700 where you need to replace the outer VLAN tags.
Procedure
Step 1 Run:
system-view
The system view is displayed.
Step 2 Run:
interface interface-type interface-number
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.
162