2-415
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
service-policy (interface configuration)
In software releases earlier than Cisco IOS Release 12.2(25)EY, policy maps can be configured only on
physical ports. In Cisco IOS Release 12.2(25)EY 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 dual-level policy map is configured and applied on an SVI, the interface-level policy map takes effect
on the interface.
In software releases earlier than Cisco IOS Release 12.2(25)EY, you can apply a policy map only to the
input of a physical port. In Cisco IOS Release 12.2(25)EY or later, you can apply a policy map to the
input of a physical port or an SVI.
In Cisco IOS Release 12.2(35)SE or later, you can attach a hierarchical policy map to an EtherChannel
made of ES ports.
When applying an ingress nonhierarchical policy map to a physical interface or an SVI or when applying
an egress hierarchical policy map to a ES port, 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. However, if you are applying an ingress hierarchical policy to an ES port that includes the
set
policy-map class configuration command or policing actions in a two-rate policer, the switch
automatically applies a port trust state to the ES port. For example, if you configure the
set
cos
new-cos
command, the switch automatically configures the interface to trust CoS.
You can attach single-level policy maps as input policies on a standard ports or as input or output policies
on ES ports. You cannot apply a single-level policy map to an egress standard port.
You can attach hierarchical policy maps as input or output policies on ES ports or ES EtherChannels.
You cannot attach hierarchical policy maps to standard ports.
In releases earlier than Cisco IOS Release 12.2(35)SE, the switch does not support attaching a service
policy to a logical interface (such as an EtherChannel). In these releases, you must configure quality of
service (QoS) classification, policing, mapping, and queueing on the individual physical ports that
comprise the EtherChannel. In Cisco IOS Release 12.2(35) or later, you can configure hierarchical
policy maps on EtherChannels made of ES ports
Examples
This example shows how to apply a policy map to the input of a standard port:
Switch(config)#
interface gigabitethernet1/0/1
Switch(config-if)#
service-policy input plcmap1
This example shows how to apply a policy map to the output of an ES port:
Switch(config)#
interface gigabitethernet1/1/1
Switch(config-if)#
service-policy output plcmap3
You can verify your settings by entering the
show running-config
privileged EXEC command.
Related Commands
Command
Description
Creates or modifies a policy map that can be attached to multiple ports to
specify a service policy.