11. Run:
classifier classifier-name2 behavior behavior-name2
The traffic classifier is bound to the traffic behavior in the traffic policy.
12. Run:
quit
Return to the system view.
13. Run:
interface interface-type interface-number
The interface view is displayed.
14. Run:
traffic-policy policy-name2 outbound
The traffic policy is applied in the outbound direction of the interface.
----End
4.5.4 Replacing the Outer VLAN Tag
Context
Do as follows as the S7700 that needs to replace the outer tags 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 operator and
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 outer VLAN ID of packets matching the
classifier, is set.
4. Run:
if-match cvlan-id vlan-id2
The packet matching rule, that is, the inner VLAN IDs of packets matching the
classifier, is set.
5. Run:
quit
Return to the system view.
6. Run:
traffic behavior behavior-name1
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.
169