H3C Technologies H3C WX3000 Series Unified Switches User Manual
Page 363
37-19
When configuring traffic policing, you can define the action of marking the 802.1p priority and DSCP
precedence for packets exceeding the traffic specification. Refer to
.
z
Through the traffic-priority command
You can use the traffic priority command to mark the 802.1p priority and DSCP precedence of the
packets.
Configuration prerequisites
The following items are defined or determined before the configuration:
z
The ACL rules used for traffic classification are specified. Refer to the ACL module of this manual
for related information.
z
The type and value of the precedence to be marked for the packets matching the ACL rules are
determined.
Configuration procedure
You can mark priority for all the packets matching specific ACL rules, or for packets that match specific
ACL rules and are of a VLAN, of a port group, or pass a port.
Follow these steps to mark the priority for the packets matching specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Mark the priorities for packets matching
specific ACL rules
traffic-priority inbound
acl-rule { dscp
dscp-value
| cos cos-value }
Required
Follow these steps to mark the priority for packets that are of a VLAN and match specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Mark the priorities for packets
matching specific ACL rules
traffic-priority vlan vlan-id inbound
acl-rule
{ dscp dscp-value | cos
cos-value
}
Required
Follow these steps to mark the priority for packets that are of a port group and match specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter port group view
port-group
group-id —
Mark the priorities for packets
matching specific ACL rules
traffic-priority inbound
acl-rule { dscp
dscp-value
| cos cos-value }
Required
Follow these steps to mark the priority for packets passing a port and matching specific ACL rules:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface
interface-type interface-number
—
Mark the priorities for packets
matching specific ACL rules
traffic-priority inbound
acl-rule { dscp dscp-value | cos
cos-value
}
Required