Configuring the QoS policing rate

To configure QoS for rate policing on an interface, you apply a policy map top the interface.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
    
  2. Create a policy map and enter policy map configuration mode.
    device(config)# policy-map policy_1
    
  3. Under policy map configuration mode, attach the classification map to the policy map.
    device(config-policymap)# class default
    
  4. Set the QoS action.
    device(config-policymap-class)# police cir 40000
    
  5. Return to privileged EXEC mode.
    device(config-policymap-class)# end
    
  6. Verify the configuration.
    device#  show policy-map detail policy_1
    
    Policy-Map P1
        Class default
          Police cir 40000
    
      Bound To:None
    
  7. Save the running-config file to the startup-config file.
    device# copy running-config startup-config
    

QoS policing rate configuration example

device# configure terminal
device(config)# policy-map policy_1
device(config-policymap)# class default
device(config-policymap-class)# police cir 40000
device(config-policymap-class)# end
device# show policy-map detail policy_1
device# copy running-config startup-config