6. Run:
remark vlan-id vlan-id2
The S7700 is configured to replace the original VLAN ID of the packets matching the
traffic classifier with the specified VLAN ID.
7. Run:
quit
Return to the system view.
8. Run:
traffic policy policy-name1
A traffic policy is created and the policy view is displayed.
9. Run:
classifier classifier-name1 behavior behavior-name1
The traffic classifier is bound to the traffic behavior in the traffic policy.
10. Run:
quit
Return to the system view.
11. Run:
interface interface-type interface-number
The interface view is displayed.
12. Run:
port link-type trunk
The link type of the interface is set to trunk.
13. Run:
port trunk allow-pass vlan vlan-id2
The interface is added to the VLAN specified by the translated VLAN ID.
14. Run:
traffic-policy policy-name1 inbound
The traffic policy is applied in the inbound direction of the interface.
l Applying a traffic policy in the outbound direction of an interface
1. Run:
system-view
The system view is displayed.
2. Run:
traffic classifier classifier-name2
A traffic classifier is created and the traffic classifier view is displayed.
3. Run:
if-match vlan-id vlan-id2
The packet matching rule, that is, the original VLAN ID of packets matching the
classifier, is set.
4. Run:
quit
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.
165