37-81
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 37 Configuring Quality of Service Configuring QoS on Supervisor Engine 6-E, Supervisor Engine 6L-E, Catalyst 4900M, and Catalyst 4948E
To enable class-level priority queuing in a service policy, perform this task:
To delete an existing policy map, use the no policy-map policy-map-name global configuration
command. To delete an existing class, use the no class class-name policy-map configuration command.
To disable the priority queue, use the no priority policy-map class configuration command.
This example shows how to configure a class-level policy called policy1. Class 1 is configured as the
priority queue, which is serviced first until it is empty.
Switch# configure terminal
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# priority
Switch(config-pmap-c)# exit
Switch(config-pmap)# exit
Switch(config)# interface gigabitethernet1/1
Switch(config-if)# service-policy output policy1
Switch(config-if)# end
Switch #
Switch# show policy-map policy1
Policy Map policy1
Class class1
priority
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# policy-map
policy-map-name Creates a policy map by entering the policy-map name, and enters
policy-map configuration mode.
By default, no policy maps are defined.
Step 3 Switch(config-pmap)# class class-name Specifies the name of the class whose traffic policy you want to
create or change, and enter policy-map class configuration mode.
By default, no traffic classes are defined.
Step 4 Switch(config-pmap-class)# priority Enables the strict-priority queue, and gives priority to a class of
traffic.
By default, strict-priority queueing is disabled.
Step 5 Switch(config-pmap-class)# exit Returns to policy-map configuration mode.
Step 6 Switch(config-pmap)# exit Returns to global configuration mode.
Step 7 Switch(config)# interface interface-id Specifies a physical port and enters interface configuration mode.
Step 8 Switch(config-interface)#
service-policy output policy-map-name
Specifies the policy-map name, and applies it a physical interface.
Step 9 Switch(config-interface)# end Returns to privileged EXEC mode.
Step 10 Switch# show policy-map
[policy-map-name [class
class-map-name]]
or
Switch# show policy-map interface
interface-id
Verifies your entries.
Step 11 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.