Configure a Cos-to-traffic class map to use the ingress 802.1p priority values to classify traffic to a specific traffic class (priority queue) and drop precedence.
If a CoS-to-traffic class mutation map is not defined, the default CoS is used as value of the traffic class, and 0 is used for the drop precedence.
device# configure terminal
device(config)# qos map cos-traffic-class cosTCMap
device(config-cos-traffic-class-cosTCMap)# map cos 4 to traffic-class 3 drop-precedence 0 device(config-cos-traffic-class-cosTCMap)# map cos 5 to traffic-class 5 drop-precedence 1 device(config-cos-traffic-class-cosTCMap)# map cos 6 to traffic-class 6 drop-precedence 0 device(config-cos-traffic-class-cosTCMap)# map cos 7 to traffic-class 6 drop-precedence 1
device(config-cos-traffic-class-cosTCMap)# end
device# show qos maps cos-traffic-class Cos-to-Traffic Class map 'cosTCMap' In-Cos : 0 1 2 3 4 5 6 7 -------------------------------------- TrafficClass : 0 1 2 3 3 6 6 6 DropPrecedence: 0 0 0 0 0 1 0 1
The following example summarizes the commands in this procedure.
device# configure terminal device(config)# qos map cos-traffic-class cosTCMap device(config-cos-traffic-class-cosTCMap)# map cos 4 to traffic-class 3 drop-precedence 0 device(config-cos-traffic-class-cosTCMap)# map cos 5 to traffic-class 5 drop-precedence 1 device(config-cos-traffic-class-cosTCMap)# map cos 6 to traffic-class 6 drop-precedence 0 device(config-cos-traffic-class-cosTCMap)# map cos 7 to traffic-class 6 drop-precedence 1 device(config-cos-traffic-class-cosTCMap)# end device# show qos maps cos-traffic-class