Specifications
Chapter 2 Cisco IOS Commands
service-policy
2-145
Catalyst 2950 and Catalyst 2955 Switch Command Reference
78-15304-01
2
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), refer to 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/1
Switch(config-if)# service-policy input plcmap1
You can verify your settings by entering the show policy-map privileged EXEC command.
policy-map-name Apply the specified policy map to the input of an interface.
Release Modification
12.1(6)EA2 This command was first introduced.