device of the public network so that the VLANs of private networks and public network can be
separated. This saves VLAN resources of the public network.
Pre-configuration Tasks
l Before configuring VLAN mapping, configure the VLANs.
Data Preparation
Before configuring VLAN mapping, you need the following data.
No. Data
1 Outer VLAN ID before VLAN mapping
2 Inner VLAN ID before VLAN mapping
3 Outer VLAN ID after VLAN mapping
4 Inner VLAN ID after VLAN mapping
4.5.2 Replacing a Single Tag
Context
Do as follows as the S7700 that needs to replace a single tag of packets.
Procedure
l Applying a traffic policy in the inbound direction of an interface
1. Run:
system-view
The system view is displayed.
2. Run:
traffic classifier classifier-name1
A traffic classifier is created and the traffic classifier view is displayed.
3. Run:
if-match vlan-id vlan-id1
The packet matching rule, that is, the original VLAN ID of packets matching the
classifier, is set.
4. Run:
quit
Return to the system view.
5. Run:
traffic behavior behavior-name1
A traffic behavior is created and the traffic behavior view is displayed.
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.
164