EasyManua.ls Logo

Cisco Catalyst 4500 Series - Service-Policy (Interface Configuration)

Cisco Catalyst 4500 Series
1230 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2-611
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.4.0SG and IOS 15.1(2)SG)
OL-27596 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
service-policy (interface configuration)
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.
service-policy {input | output} policy-map name
no service-policy {input | output} policy-map name
Syntax Description
Defaults A policy map is not attached to an interface or a VLAN.
Command Modes Interface configuration mode
Command History
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
input Specifies the input policy maps.
output Specifies the output policy maps.
policy-map name Name of a previously configured policy map.
Release Modification
12.1(8a)EW Support for this command was introduced on the Catalyst 4500 series switch.
12.2(25)EWA Support for applying different QoS policies on VLANs was introduced.

Table of Contents

Other manuals for Cisco Catalyst 4500 Series

Related product manuals