Service-Policy - Cisco Catalyst 3750 Command Reference Manual

Hide thumbs Also See for Catalyst 3750:
Table of Contents

Advertisement

Chapter 2 Catalyst 3750 Switch Cisco IOS Commands

service-policy

Use the service-policy interface configuration command on the switch stack or on a standalone switch
to apply a policy map defined by the policy-map command to the input of a port. Use the no form of this
command to remove the policy map and port association.
Syntax Description
input policy-map-name
Though visible in the command-line help strings, the history keyword is not supported, and you should
Note
ignore the statistics that it gathers. The output keyword is also not supported.
Defaults
No policy maps are attached to the port.
Command Modes
Interface configuration
Command History
Release
12.1(11)AX
Usage Guidelines
Only one policy map per ingress port is supported.
Classification using a port trust state (for example, mls qos trust [cos | dscp | ip-precedence] and a
policy map (for example, service-policy input policy-map-name) are mutually exclusive. The last one
configured overwrites the previous configuration.
Policy maps that use the police aggregate command fail when applied to a 10-Gigabit Ethernet interface.
Examples
This example shows how to apply plcmap1 to an ingress port:
Switch(config)# interface gigabitethernet2/0/1
Switch(config-if)# service-policy input plcmap1
This example shows how to remove plcmap2 from a port:
Switch(config)# interface gigabitethernet2/0/2
Switch(config-if)# no service-policy input plcmap2
You can verify your settings by entering the show running-config privileged EXEC command.
78-16181-01
service-policy input policy-map-name
no service-policy input policy-map-name
Modification
This command was introduced.
Apply the specified policy-map to the input of a port.
Catalyst 3750 Switch Command Reference
service-policy
2-231

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents