Service-Policy (Interface Configuration) - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches

service-policy (interface configuration)

To attach a policy map to an interface or to apply different QoS policies on VLANs that an interface
belongs to, use the service-policy command. To remove a policy map from an interface, use the no form
of this command.
Syntax Description
input
output
policy-map name
Defaults
A policy map is not attached to an interface or a VLAN.
Command Modes
Interface configuration mode
Command History
Release
12.1(8a)EW
12.2(25)EWA
Usage Guidelines
Layer 2 interfaces can be part of multiple VLANs (for example, a typical trunk port). In conjunction with
the vlan-range command, you can use the service-policy command to specify different QoS policies on
different VLANs.
Note
This capability is restricted to Layer 2 interfaces.
You can apply a service policy under an interface as well as a VLAN range at the same time. However,
this is allowed only when the interface policy has only queuing actions whereas a VLAN has only
non-queueing actions (QoS marking and/or policing) actions.
To attach a service policy to a VLAN, the VLAN configuration mode has to be used.
Examples
This example shows how to attach a policy map to Fast Ethernet interface 5/20:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface fastethernet 5/20
Switch(config-if)# service-policy input pmap1
Switch(config-if)# end
OL-25342 -01
service-policy {input | output} policy-map name
no service-policy {input | output} policy-map name
Specifies the input policy maps.
Specifies the output policy maps.
Name of a previously configured policy map.
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Support for applying different QoS policies on VLANs was introduced.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
service-policy (interface configuration)
2-581

Advertisement

Table of Contents
loading

Table of Contents