Configuring a DSCP-to-DSCP mutation map

Follow these steps to create a DSCP mutation map and remap the incoming DSCP value of the ingress packet to egress DSCP values.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Create the DSCP-to-DSCP mutation map by specifying a map name, which places the system in DSCP mutation mode so that you can map to traffic classes.
    device(config)# qos map dscp-mutation dscpMap 
    
  3. Map ingress DSCP values to egress DSCP values.
    1. Set the DSCP input value 24 to output as DSCP value 50.
      device(dscp-mutation-dscpMap)# map dscp 24 to dscp 50
      
    2. Set the DSCP input value 33 to output as DSCP value 35.
      device(dscp-mutation-dscpMap)# map dscp 33 to dscp 35  
      
    3. Set the DSCP input value 53 to output as DSCP value 61.
      device(dscp-mutation-dscpMap)# map dscp 53 to dscp 61
      
    4. Set the DSCP input value 60 to output as DSCP value 40.
       device(dscp-mutation-dscpMap)# map dscp 60 to dscp 40
      
  4. Return to privileged EXEC mode.
    device(dscp-mutation-dscpMap# end
    
  5. Verify the configuration.
    device# show qos map dscp-mutation dscpMap
    Dscp-to-Dscp Mutation map 'dscpMap' (dscp= d1d2)
    d1 :  d2 0  1  2  3  4  5  6  7  8  9
    -------------------------------------
    0 :    00 01 02 03 04 05 06 07 08 09
    1 :    10 11 12 13 14 15 16 17 18 19
    2 :    20 21 22 23 24 25 26 27 28 29
    3 :    30 31 32 33 34 35 36 37 38 39
    4 :    40 41 42 43 44 45 46 47 48 49
    5 :    50 51 52 53 54 55 56 57 58 59
    6 :    40 61 62 63
    
       Enabled on the following interfaces:
    
  6. Save the running-config file to the startup-config file
    device# copy running-config startup-config
    

QoS DSCP-to-DSCP mutation map configuration example

device# configure terminal
device(config)# qos map dscp-mutation dscpMap
device(dscp-mutation-dscpMap)# map dscp 60 to dscp 40
device(dscp-mutation-dscpMap)# map dscp 24 to dscp 50
device(dscp-mutation-dscpMap)# map dscp 33 to dscp 35
device(dscp-mutation-dscpMap)# map dscp 53 to dscp 61
device(dscp-mutation-dscpMap# end
device# show qos map dscp-mutation dscpMap
device# copy running-config startup-config