Configures the committed information rate, committed burst size, exceeded information rate, and the exceeded burst size for the class map.
Policy-map class configuration mode
Use the no version of this command to remove the parameter from the class map.
You can enter CIR and EIR values from 0 to 300000000000, but the operational values are from 22000 to 300000000000.
Only the police cir command is mandatory for configuring a class map.
If the optional parameters for a class map are not set, they are treated as disabled. To delete all parameters for a class-map, use the no police command.
If CBS and EBS values are not configured, then these values are derived from the CIR and EIR values, respectively. The burst size calculation is as follows: Burst size (CBS or EBS) = 1.2*information rate (CIR/EIR)/8.
If the configured CBS value is less than 2*(default MTU) value, then 2*(default MTU) is programmed as the CBS in the hardware. For example, if you configure CBS at 2000 bytes and the default MTU on an interface is 1548 bytes, when a policy map is applied on this interface, the CBS programmed in the hardware is 2*MTU (3096 bytes). If you update the MTU value, the CBS value is not be updated.
If the optional EIR or EBS value is not configured, it is disabled and Always Violated traffic is dropped.
To disable the learning of MAC addresses for stream matching of the ACL-based rate limiting entries, the CIR and EIR values must be 0.
The MAC address entries in the MAC-address table which are already learned will not be flushed when you configure the CIR or EIR value as 0. You must explicitly clear the entries in MAC-address table by using the clear mac-address-table dynamic command.
The following example sets the committed information rate (cir), committed burst size (cbs), exceeded information rate (eir), and the exceeded burst size (ebs).
device# configure terminal device(config)# policy-map policy_2 device(config-policymap)# class default device(config-policymap-class)# police cir 3000000 cbs 375000000 eir 300000000 ebs 37500000