Quality of Service (QoS) Commands
755
OL-32830-01 Command Line Interface Reference Guide
39
User Guidelines
This command is used after the
policy-map
and
class
commands.
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
policy1
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
service-policy input
policy-map-name
[default-action {permit-any | deny-any}]
no service-policy input
Parameters
•
input—Specifies an ingress policy.
•
policy-map-name
—Specifies the policy map name to apply to the input
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.
Summary of Contents for 300 Series
Page 2: ......