Configure an MPLS QoS EXP-to-Traffic Class Mutation Map

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Create and name an MPLS QoS EXP-to-traffic class mutation map.
    device(config)# qos-mpls map exp-traffic-class expTcMap
    
  3. Define the EXP-to-traffic class values.
    device(exp-traffic-class-expTcMap)# exp 0 to traffic-class 7 drop-precedence 0
    device(exp-traffic-class-expTcMap)# exp 1 to traffic-class 7 drop-precedence 1
    device(exp-traffic-class-expTcMap)# exp 4 to traffic-class 7 drop-precedence 0
    device(exp-traffic-class-expTcMap)# exp 5 to traffic-class 7 drop-precedence 1
    device(exp-traffic-class-expTcMap)# exp 6 to traffic-class 7 drop-precedence 2
    device(exp-traffic-class-expTcMap)# exp 7 to traffic-class 7 drop-precedence 3
    
    You can enter eight mappings corresponding to EXP values of 0 to 7.
  4. Return to privileged EXEC mode.
    device(exp-traffic-class-expTcMap)# end
    
  5. Verify the configuration.
    device# show qos-mpls maps exp-traffic-class 
    exp-traffic-class map 'expTcMap'
        Exp   :    0  1  2  3  4  5  6  7
       ------- ------------------------
    Traffic-class: 5  5  4  6  5  5  5  5
    Drop-Preced  : 0  1  1  1  0  2  2  1
    
       Enabled on the following slots:
    
  6. Save the running-config file to the startup-config file.
    device# copy running-config startup-config
    

This example summarizes the commands in this procedure.

device# configure terminal
device(config)# qos-mpls map exp-traffic-class expTcMap
device(exp-traffic-class-expTcMap)# exp 0 to traffic-class 7 drop-precedence 0
device(exp-traffic-class-expTcMap)# exp 1 to traffic-class 7 drop-precedence 1
device(exp-traffic-class-expTcMap)# exp 4 to traffic-class 7 drop-precedence 0
device(exp-traffic-class-expTcMap)# exp 5 to traffic-class 7 drop-precedence 1
device(exp-traffic-class-expTcMap)# exp 6 to traffic-class 7 drop-precedence 2
device(exp-traffic-class-expTcMap)# exp 7 to traffic-class 7 drop-precedence 3
device(exp-traffic-class-expTcMap)# end
device# show qos-mpls maps exp-traffic-class
device# copy running-config startup-config