Specifications

2-421
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
policy-map
policy-map
To create or modify a policy map that can be attached to multiple ports to specify a service policy and
to enter policy-map configuration mode, use the policy-map global configuration command. To delete
an existing policy map and to return to globa l configuration mode, use the no form of this command.
policy-map policy-map-name
no policy-map policy-map-name
Syntax Description
Defaults No policy maps are define d.
Command Modes Global configura tion mode
Usage Guidelines Before configuring policies for classes whose match cri teria are defined in a class ma p, use the
policy-map command to specify the name of the policy map to be created or modified. After you enter
the policy-map command, the switch enters policy-map configuration mode. You can configure or
modify the class policies for that policy map and decide how to treat the classified traffic.
These configuration commands are a vailable in poli cy-map conf iguration mode:
class—Defines the classification match criteria for the specified class map. For more information,
see the “class” section on page 2-84.
description—Describes the policy map (up to 200 characters).
exit— Exits policy-map configuration mode and returns you to global configuration mode.
no—Removes a previously defined polic y map.
To return to global conf iguratio n mode, use the ex it command. To return to privileged EXEC mode, use
the end command.
You can configure class policies in a policy map only if the classes have match criteria defined for them.
To configure the match criteria for a class, use the class-map global configuration and match class-map
configuration commands.
Examples This example shows how to configure multiple classes in a policy map called policymap2:
Switch# configure terminal
Switch(config)# policy-map policymap2
Switch(config-pmap)# class class1
Switch(config-pmap-c)# police 100000 20000 exceed-action
Switch(config-pmap-c)# set-dscp-transmit cs3
Switch(config-pmap-c)# set-cos-transmit 3
Switch(config-pmap-c)# exit
Switch(config-pmap)# class class2
Switch(config-pmap-c)# police cir 32000 pir 64000 conform-action transmit exceed-action
Switch(config-pmap-c)# set-dscp-transmit cs3 violate-action drop
policy-map-name Name of the policy map.