39
755
User Guidelines
This command is used after the
This command is only available when QoS is in advanced mode.
Policing uses a token bucket algorithm.
This command does not work in Layer 3 mode.
Examples
Example 1. The following example defines a policer for classified traffic. When the
traffic rate exceeds 124,000 kbps and the normal burst size exceeds 9600 bytes,
the packet is dropped. The class is called class1 and is in a policy map called
policy1.
switchxxxxxx(config)# policy-map
switchxxxxxx(config-pmap)#
switchxxxxxx(config-pmap-c)# police 124000 9600 exceed-action drop
39.13 service-policy
Use the service-policy Interface (Ethernet, Port Channel) Configuration mode
mode command to bind a policy map to an interface. Use the no form of this
command to detach a policy map from an interface.
Syntax
policy-map-name
service-policy input
no service-policy input
Parameters
•
input—Specifies an ingress policy.
•
policy-map-name
interface. (Length: 1–32 characters)
•
default-action—Specifies the default action. If the keyword is not
configured then the deny-any default action is applied.
•
deny-any—Deny all the packets (which were ingress of the port) that do not
meet the rules in a policy.
policy-map
and
policy1
[default-action {permit-any | deny-any}]
—Specifies the policy map name to apply to the input
OL-32830-01 Command Line Interface Reference Guide
Quality of Service (QoS) Commands
class
commands.