2-305
Catalyst 3550 Multilayer Switch Command Reference
OL-8566-01
Chapter 2 Catalyst 3550 Switch 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 or output 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 | output policy-map-name}
no service-policy {input policy-map-name | output policy-map-name}
Syntax Description
Note Though visible in the command-line help strings, the history keyword is not supported, and you should
ignore the statistics it gathers.
Defaults No policy maps are attached to the interface.
Command Modes Interface configuration
Command History
Usage Guidelines Only one policy map per interface per direction is supported.
You cannot use the service-policy interface configuration command to attach policy maps that contain
these elements to an egress interface:
• set or trust policy-map class configuration commands. Instead, you can use the police policy-map
class configuration command to mark down (reduce) the DSCP value at the egress interface.
• Access control list (ACL) classification.
• Per-port per-VLAN classification.
The only match criterion in a policy map that can be attached to an egress interface is the match ip dscp
dscp-list class-map configuration command.
A classification that uses a port trust state (for example, mls qos trust [cos | dscp | ip-precedence] and
classification that uses a policy map (for example, service-policy input policy-map-name) are mutually
exclusive. The last setting configured overwrites the previous configuration.
Examples This example shows how to apply plcmap1 to an ingress interface:
Switch(config)# interface gigabitethernet0/1
input policy-map-name Apply the specified policy-map to the input of an interface.
output policy-map-name Apply the specified policy-map to the output of an interface.
Release Modification
12.1(4)EA1 This command was introduced.