2-7
Example
# Add a traffic policing action to the QoS profile named a123 to limit the rate of the inbound packets
matching ACL 2000 to 128 kbps and drop the packets exceeding 128 kbps.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] qos-profile a123
[Sysname-qos-profile-a123] traffic-limit inbound ip-group 2000 128 exceed drop
traffic-priority
Syntax
traffic-priority inbound acl-rule { dscp dscp-value | cos cos-value | local-precedence pre-value }*
undo traffic-priority inbound acl-rule
View
QoS profile view
Parameter
inbound: Performs priority marking on the inbound packets.
acl-rule: ACL rules to be applied for traffic classification. This argument can be the combination of
multiple ACLs. For more information about this argument, refer to
Table 1-9 and Table 1-10. Note that
the ACL rules referenced must be those defined with the permit keyword specified.
dscp dscp-value: Sets the DSCP precedence. The dscp-value argument is in the range 0 to 63. You
can also enter a keyword listed in
Table 1-15 for this argument.
cos cos-value: Sets the 802.1p precedence. The cos-value argument is in the range 0 to 7. You can
also enter a keyword listed in
Table 1-16 for this argument.
local-precedence pre-value: Sets the local precedence. The pre-value argument ranges from 0 to 3.
Description
Use the traffic-priority command to add a priority marking action to a QoS profile.
Use the undo traffic-priority command to remove a priority marking action from a QoS profile.
The priority marking action of a QoS profile currently applied to a port cannot be removed.
Example
# Add a priority marking action to the QoS profile named a123 to set the 802.1p precedence of the
inbound packets matching ACL 4000 to 1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] qos-profile a123
[Sysname-qos-profile-a123] traffic-priority inbound link-group 4000 cos 1