16- and 36-Port Ethernet Switch Module for Cisco 2600 Series, Cisco 3600 Series, and Cisco 3700 Series
class
162
Cisco IOS Release 12.2(2)XT, 12.2(8)T, and 12.2(15)ZJ
•
exit: exits policy-map class configuration mode and returns to policy-map configuration mode.
•
no: returns a command to its default setting.
•
police: defines a policer for the classified traffic. The policer specifies the bandwidth limitations and
the action to take when the limits are exceeded. For more information, see the police command.
To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode,
use the end command.
Note
For more information about configuring IP ACLs, refer to the “Configuring IP Services” chapter in
the Cisco IOS IP Configuration Guide, Release 12.2.
Examples
The following example shows how to create a policy map named policy1. When attached to the ingress
port, it matches all the incoming traffic defined in class1 and polices the traffic at an average rate of 1
Mbps and bursts at 131072 bytes. Traffic exceeding the profile is dropped:
Switch(config)#
policy-map policy1
Switch(config-pmap)#
class class1
Switch(config-pmap-c)#
police 1000000 131072 exceed-action drop
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands
Command
Description
class-map
Creates a class map to be used for matching packets to the class whose name
you specify.
match (class-map
configuration)
Defines the match criteria to classify traffic.
policy-map
Creates or modifies a policy map that can be attached to multiple interfaces
to specify a service policy.
show policy-map
Displays QoS policy maps.