Specifications

2-414
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
police (percent)
Command Modes Policy-map c lass configuration mode
Usage Guidelines T his command calcula tes the CIR and PIR on the basi s of a percentage of the maximum a mount of
bandwidth available on the interface. When a policy map is attached to the interface, the equivalent CIR
and PIR values in bits per second (bp s) are calculated on the basis of the interface bandwi dth and the
percent value entered with this command. The show policy-map interface command can then be used
to verify the bps rate calculated.
The calculated CIR and PIR bps ra tes must be in the range of 32,000 and 32,000,00 0,000 bps . If the ra tes
are outside this range, the associated policy map cannot be attached to the interface. If the interface
bandwidth changes (for example, more is added), the bps values of the CIR and the PIR are recalculated
on the basis of the revised amount of ban dwidth. If the CIR and PIR pe rcentages are changed af ter the
policy map is attached to the interface, the bps values of the CIR and PIR are recalculated.
This command also allows you to specify the values for the conform burst size and the peak burst size
in milliseconds. If you want bandwidth to be calculated as a percentage, the conform burst size and the
peak burst size must be specified in milliseconds (ms).
Examples This exampl e shows how to configure traffic pol icing using a CIR and a PIR base d on a percentage of
bandwidth on Gigabit interfa ce 6/2. In this example, a CIR of 20 percent and a PIR of 40 percent have
been specified. Additionally, an optional bc value and be value (300 ms and 400 ms, respectively) have
been specified.
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# policy-map policy1
Switch(config-pmap)# class-map class1
Switch(config-pmap-c)# police cir percent 20 bc 3 ms pir percent 40 be 4 ms
Switch(config-pmap-c)# exit
Switch(config-pmap-c)# interface gigabitethernet 6/2
Switch(config-if)# service-policy output policy
Switch(config-if)# end