Command:

policy-map


Mode:

Switch(config)#


Syntax:

policy-map policy-map-name
no policy-map policy-map-name

 

Syntax Description:

policy-map-name Name of the policy map.

 

Command Description:

Use the policy-map global configuration command to create or modify a policy map that can be attached to multiple interfaces and to enter policy-map configuration mode. Use the no form of this command to delete an existing policy map and return to global configuration mode.

Entering the policy-map command enables the policy-map configuration mode. These configuration commands are available:

class: defines the classification match criteria for the specified class map. For more information, see the class command.

description: describes the policy map (up to 200 characters).

exit: exits policy-map configuration mode and returns to global configuration mode.

no: removes a previously defined policy map.

rename: renames the policy map.

To return to global configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.

Before you can configure policies for classes whose match criteria are defined in a class map, use the policy-map command to specify the name of the policy map to be created or modified. Entering this command also enables the policy-map configuration mode in which you can configure or modify the class policies for that policy map.

You can configure class policies in a policy map only if the classes have match criteria defined for them. Use the class-map and match commands to configure the match criteria for a class. Only one match command per class map is supported.

Only one policy map per interface per direction is supported. You can apply the same policy map to multiple interfaces but only in the ingress direction.


Example:

This example shows how to create a policy map called policy1. When attached to the ingress direction, it matches all the incoming traffic defined in class1 and polices the traffic at an average rate of 1 Mbps and bursts at 65536 bytes. Traffic exceeding the profile is dropped.

Switch(config)#policy-map policy1

Switch(config-pmap)#class class1

Switch(config-pmap-c)#police 1000000 65536 exceed-action drop

Switch(config-pmap-c)#exit

Switch(config-pmap)#

This example shows how to delete policymap2:

Switch(config)#no policy-map policymap2


Misconceptions:

In a policy map, the class named class-default is not supported. The switch does not filter traffic based on the policy map defined by the class class-default policy-map configuration command.


Related Commands:

None

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)