Follow these steps to configure a QoS DSCP-to-traffic class map.
device# configure terminal
device(config)# qos map dscp-traffic-class dscpTcMap
device(config-dscp-traffic-class-dscpTcMap)# map dscp 10 to traffic-class 3 device(config-dscp-traffic-class-dscpTcMap)# map dscp 40 to traffic-class 4 device(config-dscp-traffic-class-dscpTcMap)# map dscp 45 to traffic-class 5 device(config-dscp-traffic-class-dscpTcMap)# map dscp 52 to traffic-class 3
device(config-dscp-traffic-class-dscpTcMap)# end
device# show qos maps dscp-traffic-class Dscp-to-Traffic-Class map 'dscpTcMap' {x/y: traffic-class = x, drop-precedence = y & dscp = d1d2} d1 : d2 0 1 2 3 4 5 6 7 8 9 ------------------------------------------------ 0 : 0/0 0/0 0/0 0/0 0/0 0/0 0/0 0/0 4/2 1/0 1 : 1/0 1/0 1/0 1/0 1/0 1/0 2/0 2/0 2/0 2/0 2 : 2/0 2/0 2/0 2/0 3/0 3/0 3/0 3/0 3/0 3/0 3 : 3/0 3/0 4/0 4/0 4/0 4/0 4/0 4/0 4/0 4/0 4 : 5/0 5/0 5/0 5/0 5/0 5/0 5/0 5/0 6/0 6/0 5 : 6/0 6/0 6/0 6/0 6/0 6/0 7/0 7/0 7/0 7/0 6 : 7/0 7/0 7/0 7/0 Enabled on the following interfaces:
device# copy running-config startup-config
device# configure terminal device(config)# qos map dscp-traffic-class dscpTcMap device(config-dscp-traffic-class-dscpTcMap)# map dscp 10 to traffic-class 3 device(config-dscp-traffic-class-dscpTcMap)# map dscp 40 to traffic-class 4 device(config-dscp-traffic-class-dscpTcMap)# map dscp 45 to traffic-class 5 device(config-dscp-traffic-class-dscpTcMap)# map dscp 52 to traffic-class 3 device(config-dscp-traffic-class-dscpTcMap)# end device# show qos maps dscp-traffic-class device# copy running-config startup-config