Configuring Traffic Class to DSCP Mappings

Follow these steps to configure Traffic Class to DSCP mappings.

Note

Note

This topic does not apply to Extreme 8820, SLX 9740, SLX 9640, and SLX 9540 platforms.

  1. Enter global configuration mode.
    device# configure terminal
  2. Configure the QoS traffic class-to-DSCP map
    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
  3. Return to privileged exec mode.
    device(config)# exit
  4. Verify the configuration.
    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 
  5. Save the running-config file to the startup-config file:
    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