2-142
Catalyst 2350 Switch Command Reference
OL-19055-01
Chapter 2 Catalyst 2350 Switch Cisco IOS Commands
mls qos aggregate-policer
You cannot delete an aggregate policer if it is being used in a policy map. You must first use the
no
police
aggregate
aggregate-policer-name
policy-map class configuration command to delete the aggregate
policer from all policy maps before using the
no mls qos aggregate-policer
aggregate-policer-name
command.
Policing uses a token-bucket algorithm. You configure the bucket depth (the maximum burst that is
tolerated before the bucket overflows) by using the
burst-byte
option of the
police
policy-map class
configuration command or the
mls qos aggregate-policer
global configuration command. You configure
how fast (the average rate) that the tokens are removed from the bucket by using the
rate-bps
option of
the
police
policy-map class configuration command or the
mls qos aggregate-policer
global
configuration command. For more information, see the software configuration guide for this release.
Examples
This example shows how to define the aggregate policer parameters and how to apply the policer to
multiple classes in a policy map:
Switch(config)#
mls qos aggregate-policer agg_policer1 1000000 1000000 exceed-action drop
Switch(config)#
policy-map policy2
Switch(config-pmap)#
class class1
Switch(config-pmap-c)#
police aggregate agg_policer1
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class class2
Switch(config-pmap-c)#
set dscp 10
Switch(config-pmap-c)#
police aggregate agg_policer1
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class class3
Switch(config-pmap-c)#
trust dscp
Switch(config-pmap-c)#
police aggregate agg_policer2
Switch(config-pmap-c)#
exit
You can verify your settings by entering the
show mls qos aggregate-policer
privileged EXEC
command.
Related Commands
Command
Description
police aggregate
Creates a policer that is shared by different classes.
show mls qos aggregate-policer
Displays the quality of service (QoS) aggregate policer
configuration.