29-49
Catalyst 2960 Switch SoftwareConfiguration Guide
78-16881-01
Chapter29 Configuring QoS
Configuring Standard QoS
Beginning in privileged EXEC mode, follow these steps to create an aggregate policer:
Command Purpose
Step1 configure terminal Enter global configuration mode.
Step2 mls qos aggregate-policer
aggregate-policer-name rate-bps burst-byte
exceed-action {drop |
policed-dscp-transmit}
Define the policer parameters that can be applied to multiple traffic
classes within the same policy map.
By default, no aggregate policer is defined. For information on the
number of policers supported, see the “Standard QoS Configuration
Guidelines” section on page 29-31.
For aggregate-policer-name, specify the name of the aggregate
policer.
For rate-bps, specify average traffic rate in bits per second
(bps). The range is 1000000 to 1000000000. You can set the
policing rate only in 1-Mbps increments. If you try to set a
policing rate at less than1 Mbps, the switch prompts you for a
correct value.
For burst-byte, specify the normal burst size in bytes. The range
is 8000 to 1000000.
Specify the action to take when the rates are exceeded. Use the
exceed-action drop keywords to drop the packet. Use the
exceed-action policed-dscp-transmit keywords to mark down
the DSCP value (by using the policed-DSCP map) and to send
the packet. For more information, see the “Configuring the
Policed-DSCP Map” section on page 29-53.
Step3 class-map [match-all | match-any]
class-map-name
Create a class map to classify traffic as necessary. For more
information, see the “Classifying Traffic by Using Class Maps”
section on page 29-43.
Step4 policy-map policy-map-name Create a policy map by entering the policy map name, and enter
policy-map configuration mode.
For more information, see the “Classifying, Policing, and Marking
Traffic on Physical Ports by Using Policy Maps” section on
page 29-45.
Step5 class class-map-name Define a traffic classification, and enter policy-map class
configuration mode.
For more information, see the “Classifying, Policing, and Marking
Traffic on Physical Ports by Using Policy Maps” section on
page 29-45.
Step6 police aggregate aggregate-policer-name Apply an aggregate policer to multiple classes in the same policy
map.
For aggregate-policer-name, enter the name specified in Step 2.
Step7 exit Return to global configuration mode.
Step8 interface interface-id Specify the port to attach to the policy map, and enter interface
configuration mode.
Valid interfaces include physical ports.