Applying a DSCP-to-CoS mutation map to an interface

Follow these steps to map an ingress DSCP value to an outgoing 802.1p value. This can be done by configuring a DSCP-to-CoS mutation map on the ingress interface.

Before you begin

A QoS DSCP-to-CoS mutation map has been configured.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Enter interface configuration mode.
    device(config)# interface ethernet 1/5 
    
  3. Enable the DSCP mutation map on the interface.
    device(conf-if-eth-1/5)# qos dscp-cos dscpCosMap  
    
  4. Return to privileged EXEC mode.
    device(conf-if-eth-1/5)# 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/5
    
  6. Save the running-config file to the startup-config file.
    device# copy running-config startup-config
    

Applying a QoS DSCP-to-CoS mutation map to an interface configuration example

device# configure terminal
device(config)# interface ethernet 1/5 
device(conf-if-eth-1/5)# qos dscp-cos dscpCosMap 
device(conf-if-eth-1/5)# end 
device# show qos maps dscp-cos
device# copy running-config startup-config