Reference Guide
Class-map (qos): bluevlan
set qos-group 6
Service-policy(qos) input: redacl
Class-map (qos): blueacl
set cos 6
set qos-group 6
Service-policy(qos) input: ag2
Class-map (qos): accgrp
set qos-group 6
IP precedence classication
Classify the QoS trac based on an IP header precedence eld. If DSCP-based classication—DSCP as match criterion—is used in a
class-map, IP precedence cannot be used as another match criterion.
1 Create a class-map and type qos in CONFIGURATION mode.
class—map type qos class—map-name
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.
Quality of service
555