2-524
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
policy-map
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
Switch(config-pmap-c)# exit
Switch(config-pmap)# class class3
Switch(config-pmap-c)# set dscp cs3
Switch(config-pmap-c)# exit
Switch#
This example shows how to delete the policy map called policymap2:
Switch# configure terminal
Switch(config)# no policy-map policymap2
Switch#
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands Command Description
class Specifies the name of the class whose traffic policy you want to
create or change.
class-map Creates a class map to be used for matching packets to the class
whose name you specify and to enter class-map configuration
mode.
policy-map Creates or modifies a policy map that can be attached to multiple
ports to specify a service policy and to enter policy-map
configuration mode.
service-policy (interface
configuration)
Attaches a policy map to an interface or applies different QoS
policies on VLANs that an interface belongs to.
show policy-map Displays information about the policy map.