Users Guide
2 Apply the L3 precedence match criteria for the QoS policy in the CLASS-MAP conguration mode. Congure the match IP
precedence value as single, comma-delimited, or hyphenated range—0 to 7. Use the match not command to match all values
except the values congured.
• match ip precedence precedence-value | precedence-list | precedence-range—IPv4 protocol use
• match ipv6 precedence precedence-value | precedence-list | precedence-range—IPv6 protocol use
3 Enter a policy-map name and type qos in CONFIGURATION mode.
policy-map type qos policy—map-name
4 Associate a policy-map with a class-map in POLICY-MAP mode.
class class-map-name
5 Enter a queue number for matched ow as qos-group ID in POLICY-MAP-CLASS-MAP mode—0 to 7.
set qos-group queue-number
Congure IP precedence classication
OS10(config)# class-map type qos bluedscp
OS10(conf-cmap-qos)# match ip precedence 5
OS10(conf-cmap-qos)# exit
OS10(config)# policy-map type qos reddscp
OS10(conf-pmap-qos)# class bluedscp
OS10(conf-pmap-c-qos)# set qos-group 6
View policy-map
OS10(conf-pmap-c-qos)# do show policy-map
Service-policy(qos) input: reddscp
Class-map (qos): bluedscp
set qos-group 6
OS10(conf-pmap-c-qos)# do show policy-map
Service-policy(qos) input: pmap1
Class-map (qos): class-trust
trust dot1p
Mark trac
Marking allows you to add or set the 802.1p priorities to a L2 header, or set the DSCP value to L3 header. You can mark classied trac
with a trac-class ID (qos-group Id) as well. Since trac-class ID (qos-group ID) and queue ID have a one-to-one mapping, you can use
qos-group and queue interchangeably. Marking packet elds allows you to identify the trac type based on the congured QoS information
for a specic packet.
CoS (or dot1P
values)
Use the set cos dot1p-values command to mark the CoS eld - 0 to 7.
DSCP Use the set dscp dscp-values command to mark the DSCP eld - 0 to 63.
QoS group Use the set qos-group queue-number command to mark the QoS Group eld - 0 to 11.
Class of service marking
To tag an incoming packet with 802.1p priorities, or modify incoming packets you can mark class of service (CoS). The set cos command
is only supported under the ingress QoS policy type
qos.
1 Create a policy-map of type qos and congure a name for the policy-map in CONFIGURATION mode.
policy-map type qos policy-map-name
2 Congure a QoS class for classied trac in POLICY-MAP mode (up to 32 characters).
class class-name
3 Congure marking for CoS in POLICY-MAP-CLASS-MAP mode (0 to 7).
set cos dot1p-value
Quality of service
449










