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

This configuration is not supported on SLX 9150/Extreme 8520 devices.
  1. Enter global configuration mode.
    device# configure terminal
    
  2. Create and name an MPLS QoS traffic class-to-EXP mutation map.
    device(config)# qos-mpls map traffic-class-exp tcExpMap
    
  3. Define the traffic class-to-EXP values.
    device(traffic-class-exp-tcExpMap)# traffic-class 0 drop-precedence 0 to exp 7 
    device(traffic-class-exp-tcExpMap)# traffic-class 1 drop-precedence 0 to exp 6
    device(traffic-class-exp-tcExpMap)# traffic-class 4 drop-precedence 0 to exp 3
    device(traffic-class-exp-tcExpMap)# traffic-class 5 drop-precedence 0 to exp 2
    device(traffic-class-exp-tcExpMap)# traffic-class 6 drop-precedence 0 to exp 2
    device(traffic-class-exp-tcExpMap)# traffic-class 7 drop-precedence 0 to exp 1
    device(traffic-class-exp-tcExpMap)# end
    
  4. Return to privileged exec mode.
    device(traffic-class-exp-tcExpMap)# end
    
  5. Verify the configuration.
    device#  show qos-mpls maps traffic-class-exp
    
    traffic-class-cos map    'TcExpMap' (Drop-Precedence = dp)
     dp: traffic-class  :  0  1  2  3  4  5  6  7
     ------------------- ------------------------
     0: exp             :  7  6  2  3  3  2  2  1
     1:                 :  0  1  2  3  4  5  6  7
     2:                 :  0  1  2  3  4  5  6  7
     3:                 :  0  1  2  3  4  5  6  7
    
    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 traffic-class-exp tcExpMap
device(traffic-class-exp-tcExpMap)# traffic-class 0 drop-precedence 0 to exp 7 
device(traffic-class-exp-tcExpMap)# traffic-class 1 drop-precedence 0 to exp 6
device(traffic-class-exp-tcExpMap)# traffic-class 4 drop-precedence 0 to exp 3
device(traffic-class-exp-tcExpMap)# traffic-class 5 drop-precedence 0 to exp 2
device(traffic-class-exp-tcExpMap)# traffic-class 6 drop-precedence 0 to exp 2
device(traffic-class-exp-tcExpMap)# traffic-class 7 drop-precedence 0 to exp 1
device(traffic-class-exp-tcExpMap)# end
device# show qos-mpls maps traffic-class-exp
device# copy running-config startup-config