Creates a class map in a policy map and enters the class map configuration mode.
A policy map is not created.
Policy map configuration mode
Use this command to configure a class map for a police policy map with QoS and policing parameters for inbound or outbound traffic. The class map must be previously created and associated with match criteria using the class-map command. (Refer to the qos cos command.)
When you enter the class command and access policy-map class configuration mode, you can configure QoS and policing parameters for the class map using the commands for the specific parameters.
Each policy map can contain one class map.
The police cir command is mandatory for configuring a class map.
Enter no police while in config-policymap-class mode to remove all policing parameters for the class map.
Enter no police command followed by a policing parameter name to remove a specific parameter.
Note
The cir is mandatory for configuring a class map. Other parameters are optional. If optional parameters are not set then they will be treated as disabled. To delete the mandatory CIR parameter, you must delete all policer parameters while in the policy map class configuration mode using the no police command.This example configures a class-map called "default" within a policy-map.
device# configure terminal device(config)# policy-map policymap1 device(config-policymap)# class default device(config-policymap-class)# police cir 40000