Cisco Catalyst 3750 Metro Command Reference Manual page 384

Hide thumbs Also See for Catalyst 3750 Metro:
Table of Contents

Advertisement

Chapter 2
Catalyst 3750 Metro Switch Cisco IOS Commands
police cir percent
Examples
This example shows how to configure traffic policing by using a CIR and a PIR based on a percentage
of bandwidth. In this example, a CIR of 20 percent and a PIR of 40 percent are specified. The optional
bc and be values (300 ms and 400 ms, respectively) are specified.
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# police cir percent 20 bc 300 ms pir percent 40 be 400 ms
conform-action transmit exceed-action set-prec-transmit 2 violate-action drop
Switch(config-pmap-c)# service-policy child-policy1
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1/1
Switch(config-if)# service-policy input policy1
This example shows how to create two hierarchical policies, one called child_policy and one called
parent_policy. In the child_policy policy-map, the police cir percent command is configured in the class
called normal_type. In this class, the percentage specified by the police cir percent command is 30
percent. The command uses 512 kbps, the peak rate (specified in the parent_policy through the shape
average 512000 command), as the bandwidth reference point for the class parent in the parent_policy.
The police cir percent command uses 512 kbps as the basis for calculating the CIR rate (512 kbps * 30
percent).
Switch(config)# policy-map child_policy
Switch(config-pmap)# class normal_type
Switch(config-pmap-c)# police cir percent 30
Switch(config-pmap)# exit
Switch(config)# policy-map parent_policy
Switch(config-pmap)# class parent
Switch(config-pmap-c)# shape average 512000
Switch(config-pmap-c)# service-policy child_policy
Switch(config-pmap-c)# exit
This example shows how to create two hierarchical policies, one called child_policy and one called
parent_policy. In the child_policy policy map, the police cir percent command is configured in the class
called normal_type. In this class, the percentage specified by the police cir percent command is 30
percent. In the parent_policy, a peak rate is not specified. The bandwidth policy-map class
configuration command is used, but this command does not represent the maximum rate of bandwidth
available. Therefore, the police cir percent command uses the next higher level (Gigabit Ethernet port)
as the bandwidth reference point. Assuming the bandwidth of the port is 1 Mbps, the police cir percent
command uses 1 Mbps as the basis for calculating the CIR rate (1000000 * 30 percent).
Switch(config)# policy-map child_policy
Switch(config-pmap)# class normal_type
Switch(config-pmap-c)# police cir percent 30
Switch(config-pmap)# exit
Switch(config)# policy-map parent_policy
Switch(config-pmap)# class parent
Switch(config-pmap-c)# bandwidth 512
Switch(config-pmap-c)# service-policy child_policy
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1/1
Switch(config-if)# service-policy output parent_policy
Switch(config-if)# exit
You can verify your settings by entering the show policy-map or the show running-config privileged
EXEC command.
Catalyst 3750 Metro Switch Command Reference
2-356
OL-9645-10

Advertisement

Table of Contents
loading

Table of Contents