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 physical port or a switch
virtual interface (SVI). 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
12.2(25)SE
Usage Guidelines
Only one policy map per ingress port is supported. In software releases earlier than Cisco IOS
Release 12.2(25)SE, policy maps can be configured only on physical ports.
In Cisco IOS Release 12.2(25)SE or later, policy maps can be configured on physical ports or on SVIs.
When VLAN-based quality of service (QoS) is disabled by using the no mls qos vlan-based interface
configuration command on a physical port, you can configure a port-based policy map on the port. If
VLAN-based QoS is enabled by using the mls qos vlan-based interface configuration command on a
physical port, the switch removes the previously configured port-based policy map. After a hierarchical
policy map is configured and applied to an SVI, the interface-level policy map takes effect on the
interface.
In software releases earlier than Cisco IOS Release 12.2(25)SE, you can apply a policy map only to the
input of a physical port. In Cisco IOS Release 12.2(25)SE or later, you can apply a policy map to the
input of a physical port or an SVI.
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.
78-16181-03
service-policy input policy-map-name
no service-policy input policy-map-name
Modification
This command was introduced.
A policy map can now be applied to a physical port or an SVI.
Apply the specified policy map to the input of a physical port or an SVI.
Catalyst 3750 Switch Command Reference
service-policy
2-287