Service-Policy (Policy-Map Class) - Cisco Catalyst 3750 Metro Command Reference Manual

Hide thumbs Also See for Catalyst 3750 Metro:
Table of Contents

Advertisement

Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands

service-policy (policy-map class)

Use the service-policy policy-map class configuration command to create a service policy that is a
quality of service (QoS) policy within a policy map (called a hierarchical service policy). Use the no
form of this command to disable the service policy within a policy map.
Syntax Description
policy-map-name
Defaults
No service policies maps are defined.
Command Modes
Policy-map class configuration
Command History
Release
12.1(14)AX
12.2(25)EY
Usage Guidelines
Use the service-policy command only in a hierarchical policy map attached to an enhanced-services
(ES) port. This command is valid in policy maps at any level of the hierarchy.
You can create a hierarchy by associating a class-level policy map with a VLAN-level policy map, by
associating that VLAN-level policy map with a physical-level policy map, and by attaching the
physical-level policy map to an ES port. You can omit hierarchical levels, but the order of the levels
(class level, VLAN level, and then the physical level) must be preserved.
If you use the bandwidth policy-map class configuration command in a child policy, you also must use
it in the parent policy.
If you enter this command in policy-map class configuration mode, you return to policy-map
configuration mode by using the exit command. To return to privileged EXEC mode, use the end
command.
Examples
This example shows how to create a hierarchical service policy in the service policy called parent:
Switch(config)# policy-map child
Switch(config-pmap)# class voice
Switch(config-pmap-c)# priority
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# policy-map parent
Switch(config-pmap)# class class1
Switch(config-pmap-c)# shape average 10000000
Switch(config-pmap-c)# service-policy child
OL-9645-10
service-policy policy-map-name
no service-policy policy-map-name
Modification
This command was introduced.
Hierarchical service policies can be attached to inbound traffic received on
an ES port or a switch virtual interface (SVI).
Name of the policy map.
Catalyst 3750 Metro Switch Command Reference
service-policy (policy-map class)
2-417

Advertisement

Table of Contents
loading

Table of Contents