QoS Commands
policy-map
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
386
28
Syntax
policy-map
policy-map-name
no policy-map
policy-map-name
Parameters
•
policy-map-name
—The policy map name. (Range: 0 to 32 characters)
Default Configuration
N/A
Command Mode
Global Configuration mode
User Guidelines
A policy map contains one or more class maps and an action that is taken if the
packet matches the class map. Policy maps may be bound to ports or port
channels.
Use the policy-map Global Configuration mode command to specify the name of
the policy map to be created, added to, or modified before configuring policies for
classes whose match criteria are defined in a class map.
Entering the Policy-map Global Configuration mode also enables configuring or
modifying the class policies for that policy map. Class policies in a policy map can
be configured only if the classes have match criteria defined for them.
Policy map is applied on the ingress path.
The match criteria is for a class map. Only one policy map per interface is
supported. The same policy map can be applied to multiple interfaces and
directions.
The service-policy
command binds a policy map to a port or a port channel.
Example
The following example creates a policy map called Policy1 and enters the Policy-
map Configuration mode:
switchxxxxxx(config)#
policy-map policy1
switchxxxxxx(config-pmap)#