Configuring DSCP and CoS remarking at the interface level

Follow these steps to configure DSCP and CoS remarking for specific ports. DSCP and CoS remarking are disabled by default.

  1. Enter global configuration mode.
    
    device# configure terminal
    
  2. Enter interface configuration mode to set DSCP and CoS values for a specific port.
    
    device(config)# interface ethernet 1/1/1
    
  3. Set the DSCP value to 4 of all IP packets on the port.
    
    device(config-if-e1000-1/1/1)# ip dscp-remark 4
    
  4. Set the PCP value to 4 of all IP packets on the port.
    
    device(config-if-e1000-1/1/1)# ip pcp-remark 4
    
  5. Return to privileged EXEC mode.
    
    device(config-if-e1000-1/1/1)# end
    
  6. Verify the configuration.
    
    device# show running-config interface ethernet 1/1/1
    interface ethernet 1/1/1
     port-name ERSPAN
     dual-mode
     ip dscp-remark 4
     ip pcp-remark 4
     rate-limit input fixed 40000 burst 120000
     mon profile 1 both
     priority 7
     speed-duplex 1000-full
     broadcast limit 96 kbps
     multicast limit 400 kbps
     unknown-unicast limit 96 kbps
     pvst-mode
     port security
     age 2 absolute
    !
    
  7. Save the configuration.
    
    device# write memory
    

DSCP and CoS remarking configuration example for Ethernet interface 1/1/1:


device# configure terminal
device(config)# interface ethernet 1/1/1
device(config-if-e1000-1/1/1)# ip dscp-remark 4
device(config-if-e1000-1/1/1)# ip pcp-remark 4
device(config-if-e1000-1/1/1)# end
device# show running-config interface ethernet 1/1/1
device# write memory