Follow these steps to configure Traffic Class to DSCP mappings.
Note
This topic does not apply to Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 platforms.
device# configure terminal
device(config)# qos map traffic-class-dscp TcDscpMap device(traffic-class-dscp-TcDscpMap)# map traffic-class 1 drop-precedence 1 to dscp 30 device(traffic-class-dscp-TcDscpMap)# map traffic-class 3 drop-precedence 2 to dscp 61
device(config)# exit
device(traffic-class-dscp-TcDscpMap)# do show qos maps traffic-class-dscp [Note:CoS = Class of Service, TC = Traffic Class, DP = Drop Precedence, DSCP = Differentiated Services Code Point] TC-to-DSCP Map: TcDscpMap In-TC: 0 1 2 3 4 5 6 7 ------------------------------------------ Out-DSCP(DP=0): 00 08 16 24 32 40 48 56 Out-DSCP(DP=1): 00 30 16 24 32 40 48 56 Out-DSCP(DP=2): 00 08 16 61 32 40 48 56 Out-DSCP(DP=3): 00 08 16 24 32 40 48 56 Enabled on the following interface: Eth 0/2
device# copy running-config startup-config
This example shows the above steps in a consolidated format.
device(config)# qos map traffic-class-dscp TcDscpMap device(traffic-class-dscp-TcDscpMap)# map traffic-class 1 drop-precedence 1 to dscp 30 device(traffic-class-dscp-TcDscpMap)# map traffic-class 3 drop-precedence 2 to dscp 61 device# end device# show qos maps traffic-class-dscp device# copy running-config startup-config