Reference Guide
View policy-map
OS10(conf-if-eth1/1/5)# do show policy-map
Service-policy(queuing) output: solar
Class-map (queuing): magnum
priority
Class of service or dot1p classication
Classication allows you to manage network trac by separating it into dierent categories. Packets are identied and categorized into
trac classes. You can use the match command to apply a match to place network trac into specic trac classes.
You can classify the QoS trac based on class of service (CoS) or 802.1 p (dot1p) values. You cannot have two match statements with the
same match criterion. If you enter two match statements with the same match criterion, the second statement overwrites the rst
statement.
1 Create a class-map and qos type in CONFIGURATION mode.
class—map type qos class—map-name
2 Add the match criteria for the CoS values in CLASS-MAP mode. Congure dot1p values of incoming packets to match in single,
comma-delimited, or hyphenated range - 0 to 7.
match cos cos cos-value|cos-list|cos-range
3 Return to CONFIGURATION mode.
exit
4 Enter a policy-map name and qos type in CONFIGURATION mode.
policy-map type qos policy—map-name
5 Associate the policy-map with a class-map in POLICY-MAP mode.
class class-map-name
6 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 CoS classication
OS10(config)# class-map type qos bluedot1p
OS10(conf-cmap-qos)# match cos 6
OS10(conf-cmap-qos)# exit
OS10(config)# policy-map type qos red
OS10(conf-pmap-qos)# class bluedot1p
OS10(conf-pmap-c-qos)# set qos-group 5
View policy-map
OS10(conf-pmap-c-qos)# do show policy-map
Service-policy(qos) input: red
Class-map (qos): bluedot1p
set qos-group 5
DSCP classication
Classify trac based on the DSCP value. The value of the QoS group represents the queue to which you direct a specic class of trac.
You cannot have two match statements with the same match criterion. If you enter two match statements with same lter-type, the
second statement overwrites the rst statement.
1 Create a class-map, and enter the type as qos in CLASS-MAP mode.
class—map type qos class—map-name
2 Apply an L3 DSCP match criteria and congure the DSCP values to match from incoming packets in CLASS-MAP mode. Enter DSCP
values in single, comma-delimited, or hyphenated range—0 to 63. Use the match not command to match all valid values other than
the congured values.
480
Quality of service