2-265
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
service-policy
service-policy
Use the service-policy interface configuration command to apply a policy map defined by the
policy-map command to the input of a particular interface. Use the no form of this command to remove
the policy map and interface association.
service-policy input policy-map-name
no service-policy input policy-map-name
This command is available only if your switch is running the enhanced software image (EI).
Syntax Description
Defaults No policy maps are attached to the interface.
Command Modes Interface configuration
Command History
Usage Guidelines Only one policy map per ingress interface is supported.
Service policy maps cannot be defined on egress interfaces.
Note For more information about configuring access control lists (ACLs), see the “Configuring Network
Security with ACLs” chapter in the software configuration guide for this release.
Examples This example shows how to apply plcmap1 to an ingress interface:
Switch(config)# interface gigabitethernet0/17
Switch(config-if)# service-policy input plcmap1
You can verify your settings by entering the show policy-map privileged EXEC command.
Related Commands
policy-map-name Apply the specified policy map to the input of an interface.
Release Modification
12.1(6)EA2 This command was introduced.
Command Description
policy-map Creates or modifies a policy map that can be attached to multiple
interfaces to specify a service policy.
show policy-map Displays quality of service (QoS) policy maps.