l
To define matching rules based on the VLAN ID in the inner VLAN tag or the VLAN IDs
in inner and outer tags of QinQ packets, run:
l
To define matching rules based on the outer VLAN ID or VLAN IDs of inner and outer tags
of QinQ packets, run:
if-match vlan-id
start-vlan-id
[
to
end-vlan-id
] [
cvlan-id
cvlan-id
]
l
To define matching rules based on discarded packets, run:
if-match discard
l
To define matching rules based on double tags of QinQ packets, run:
if-match double-tag
l
To define matching rules based on the destination MAC address, run:
if-match destination-mac
mac-address
[
mac-address-mask
]
l
To define matching rules based on the source MAC address, run:
if-match source-mac
mac-address
[
mac-address-mask
]
l
To define matching rules based on the incoming interface, run:
if-match inbound-interface
interface-type
interface-number
l
To define matching rules based on the outgoing interface, run:
if-match outbound-interface
interface-type
interface-number
l
To define matching rules based on the protocol field in the Ethernet frame header, run:
if-match l2-protocol
{
arp
|
ip
|
mpls
|
rarp
|
protocol-value
}
l
To define matching rules based on all the packets, run:
if-match any
----End
Creating a Traffic Classifier Based on Layer 3 Information
After traffic classification based on Layer 3 information is configured, the S3700 classifies
packets according to Layer 3 information in packets.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
traffic classifier
classifier-name
[
operator
{
and
|
or
} ]
A traffic classifier based on Layer 3 information is created and the traffic classifier view is
displayed.
The
and
parameter indicates that the relationship between rules in a traffic classifier is AND.
That is, the packets match a traffic classifier only when the packets match all non-ACL rules
and an ACL rule in the traffic classifier. The
or
parameter indicates that the relationship between
rules in a traffic classifier is OR. That is, the packets match a traffic classifier when the packets
match a rule in the traffic classifier.
By default, the relationship between rules in a traffic classifier is AND.
Step 3
Run the following commands as required.
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.
12