Classifier: c2
Operator: AND
Rule(s) : if-match cvlan-id 200
Classifier: c1
Operator: AND
Rule(s) : if-match cvlan-id 100
Total classifier number is 2
# Check the configuration of the traffic policy.
<Switch>
display traffic policy user-defined p1
User Defined Traffic Policy Information:
Policy: p1
Classifier: c1
Operator: AND
Behavior: b1
Remark:
Remark 8021p 4
Classifier: c2
Operator: AND
Behavior: b2
Remark:
Remark 8021p 2
----End
Configuration Files
l
Configuration file of the Switch
#
sysname Switch
#
vlan batch 100 200 300
#
traffic classifier c2 operator and
if-match cvlan-id 200
traffic classifier c1 operator and
if-match cvlan-id 100
#
traffic behavior b2
remark 8021p 2
traffic behavior b1
remark 8021p 4
#
traffic policy p1
classifier c1 behavior b1
classifier c2 behavior b2
#
interface Vlanif300
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1
qinq vlan-translation enable
port hybrid pvid vlan
100
port hybrid untagged vlan 100 300
port vlan-stacking vlan 100 stack-vlan 300
traffic-policy p1 inbound
#
interface GigabitEthernet0/0/2
qinq vlan-translation enable
port hybrid pvid vlan
200
port hybrid untagged vlan 200 300
port vlan-stacking vlan 200 stack-vlan 300
traffic-policy p1 inbound
#
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
44