policy-map

Configures a policy map containing a class map so that you can apply policer and QoS attributes to a particular interface.

Syntax

policy-map policy-mapname
no policy-map policy-mapname

Command Default

No policy map is created.

Parameters

policy-mapname
Name of police policy map

Modes

Global configuration mode

Usage Guidelines

When you launch the policy-map command, the system is placed in config-policymap mode for the configured map. At this point, you can add a class map containing policing parameters to the policy map. (Refer to the description of the class command.)

This command creates a policer policy map to apply policer and QoS attributes to a particular interface. Each policy map can contain up to 32 class maps. The class map can be associated with specific policing and QoS parameters.

Maximum number of policy map creations are 128

Associate the policy map to the interface for inbound or outbound direction with the service-policy command.

Enter no policy-map policy-mapname while in global configuration mode to remove the policy map.

Examples

Create a policy map and place system into config-policymap mode so that you can add a class map.

device# configure terminal
device(config)# policy-map policymap1 
device(config-policymap)#

Remove the policy map while in global configuration mode.

device# configure terminal
device(config)# no policy-map policymap1