Specifications
2-491
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
service-policy (policy-map class)
service-policy (policy-map class)
To create a service policy that is a quality of service (QoS) policy within a policy map (called a
hierarchical service policy), use the service-policy policy-map class configuration command. To disable
the service policy within a policy map, use the no form of this command.
service-policy policy-map-name
no service-policy policy-map-name
Syntax Description
Defaults No service policies maps are defined.
Command Modes Policy-map class configuration mode
Usage Guidelines Use the service-policy command only in a hierarchical policy map attached to a physical port. This
command is valid in policy maps at level two of the hierarchy.
You can create a hierarchy by having the pare nt policy map spec ify marking and/or policing a ctions and
having the child policy map specify the queueing actions.
If you enter this command in policy-map c lass configuration mode , you return to policy-m ap
configuration mode by usi ng 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# configure terminal
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)# police 32k
Switch(config-pmap-c)# service-policy child
Switch#
You can verify your settings by entering the show policy-map privileged EXEC command.
policy-map-name Name of the policy map.