![H3C S5120-SI Series Operation Manual Download Page 334](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174334.webp)
2-3
Form
Description
source-mac
mac-address
Specifies to match the packets with a specified source MAC
address.
The matching criteria listed below must be unique in a traffic class with the operator being
AND
.
Therefore, even though you can define multiple
if-match
clauses for these matching criteria or input
multiple values for a
list
argument (such as the
8021p-list
argument) listed below in a traffic class, avoid
doing that. Otherwise, the QoS policy referencing the class cannot be applied to interfaces successfully.
z
customer-dot1p
8021p-list
z
customer-vlan-id
vlan-id-list
z
destination-mac
mac-address
z
dscp dscp-list
z
ip-precedence ip-precedence-list
z
service-vlan-id
vlan-id-list
z
source-mac
mac-address
To create multiple if-match clauses or specify multiple values for a list argument for any of the matching
criteria listed above, ensure that the operator of the class is
OR
.
Defining a Traffic Behavior
A traffic behavior is a set of QoS actions. To define a traffic behavior, you must first create it and then
configure actions for the behavior as required in traffic behavior view.
Follow these steps to define a traffic behavior:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a traffic behavior and
enter traffic behavior view
traffic behavior
behavior-name
Required
Drop or send packets
filter
{
deny
|
permit
}
Optional
z
deny
Dropping packets.
z
permit
Permitting packets
to pass through.
Redirect traffic to a specified
target
redirect interface
interface-type interface-number
Optional
Defining a Policy
A policy defines the mapping between a class and a traffic behavior.