Cisco Catalyst 4500 Series Configuration Manual page 686

Ios software configuration guide isco ios xe 3.9.0e and ios 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

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.
Syntax Description
input
output
policy-map name
Command Default
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.
This capability is restricted to Layer 2 interfaces.
Note
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
The following 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
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release XE 3.9.xE and 15.2(5)Ex
2-646
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
This command was introduced on the Catalyst 4500 series switch.
Support for applying different QoS policies on VLANs was introduced.
Chapter 2

Advertisement

Table of Contents
loading

Table of Contents