class

Creates a class map in a policy map and enters the class map configuration mode.

Syntax

class class-mapname
no class class-mapname

Command Default

A policy map is not created.

Parameters

class-mapname
The designated name for the class map.

Modes

Policy map configuration mode

Usage Guidelines

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

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.

Examples

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