Defining a traffic behavior, Defining a policy – H3C Technologies H3C S5120 Series Switches User Manual
Page 352

2-3
Form
Description
source-mac mac-address
Specifies to match the packets with a specified source MAC
address.
To successfully execute the traffic behavior associated with a traffic class that uses the AND operator,
define only one if-match clause for any of the following match criteria and input only one value for any
of the following list arguments, for example, the 8021p-list argument:
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 for these match criteria or specify multiple values for the list
arguments, 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
Configure actions in the traffic
behavior
See the following chapters based on the purpose of the traffic
behavior: traffic policing, traffic filtering, traffic redirecting, priority
marking, traffic accounting, and so on.
Defining a Policy
A policy defines the mapping between a class and a traffic behavior.
In a policy, multiple class-to-traffic-behavior mappings can be configured, and these mappings are
executed according to the order configured.
Follow these steps to define a policy:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a policy and enter policy
view
qos policy policy-name
Required