Configuring global DSCP and CoS remarking

Follow these steps to configure global DSCP and CoS remarking. DSCP and CoS remarking are disabled by default.

Note: When configuring DSCP and CoS values globally, remember that any DSCP values set using ACLs or set for individual ports take precedence over gl;obally configured DSCP or CoS values.
  1. Enter global configuration mode.
    
    device# configure terminal
    
  2. Set the DSCP value.
    
    device(config)# ip dscp-remark 3
    
    This example shows how to set the DSCP value to 3 for all IP packets.
    Note: If DHCP snooping is enabled, you cannot globally enable DSCP remarking. When you enter the global configuration ip dscp-remark command, the following error message is displayed.
    Error: DHCP Snooping is configured on the system. Cannot enable DSCP remarking
  3. Enable CoS marking globally and set the PCP value to 3 for all VLAN tagged packets.
    
    device(config)# ip pcp-remark 3
    
  4. Return to privileged EXEC mode.
    
    device(config)# exit
    
  5. Save the configuration.
    
    device# write memory
    

Global remarking configuration example:


device# configure terminal
device(config)# ip dscp-remark 3
device(config)# ip pcp-remark 3
device(config)# exit
device# write memory