Configure a DSCP-to-CoS Mutation Map

Use the DSCP value of ingress packets to remap the egress 802.1p CoS priority values.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Create a named QoS DSCP-to-CoS mutation map.
    device(config)# qos map dscp-cos dscpCosMap 
    
    This step also places the system in dscp-cos map mode so that you can map DSCP values to CoS values.
  3. Map ingress DSCP values to egress CoS values.
    device(dscp-cos-dscpCosMap)# map dscp 23 to cos 4
    
    In this example, the DSCP value 23 is mapped to CoS priority 4.
    device(dscp-cos-dscpCosMap)# map dscp 43 to cos 5
    
    In this example, DSCP value 43 is mapped to CoS priority 5.
  4. Return to privileged EXEC mode.
    device(dscp-cos-dscpCosMap)# end
    
  5. Verify the configuration.
    device#  show qos maps dscp-cos 
    
    Dscp-to-CoS map 'dscpCosMap' (dscp= d1d2)
    d1 :  d2 0  1  2  3  4  5  6  7  8  9
    -------------------------------------
    0 :     00 00 00 00 00 00 00 00 01 01
    1 :     01 01 01 01 01 01 02 02 02 02
    2 :     02 02 02 04 03 03 03 03 03 03
    3 :     03 03 04 04 04 04 04 04 04 04
    4 :     05 05 05 05 05 05 05 05 06 06
    5 :     06 06 06 06 06 06 07 07 07 07
    6 :     07 07 07 07
    
    Enabled on the following interfaces:
     Eth 1/3
  6. Save the running-config file to the startup-config file
    device# copy running-config startup-config