44-67
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 44 Configuring Quality of Service
Configuring QoS on a Standalone Supervisor Engine 6-E/6L-E or Supervisor Engine 7-E/7L-E/8-E
To remove the explicit queue size use the
no queue-limit
command under the class in a policy-map.
This example shows how to configure a class-based queue with an explicit
queue-limit
command. It
limits traffic class class1 to a queue of size 4048:
Switch#
configure terminal
Switch(config)#
policy-map policy1
Switch(config-pmap)#
class class1
Switch(config-pmap-c)#
shape average 256000
Switch(config-pmap-c)#
queue-limit 4048
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface gigabitethernet1/1
Switch(config-if)#
service-policy output policy1
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 enter
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)#
shape
average
{
cir-bps
[
optional_postfix
]
|
percent
percent
}
Enables average-rate traffic shaping.
You can specify the shaping rate in absolute value or as a percentage:
•
For
cir-bps
[
optional_postfix
]
,
specify the shaping rate in bps.
Range is 32000 to 10000000000 bps. Supply an optional postfix
(K, M, G).
•
For
percent
, specify the percentage of link rate to shape the class
of traffic. The range is 1 to 100.
By default, average-rate traffic shaping is disabled.
Step 5
Switch(config-pmap-class)#
queue-limit
number-of-packets
Provides an explicit queue size in packets. The size must be a
multiple of 8 and ranging from 16 to 8184.
Step 6
Switch(config-pmap-class)#
exit
Returns to policy-map configuration mode.
Step 7
Switch(config-pmap)#
exit
Returns to global configuration mode.
Step 8
Switch(config)#
interface
interface-id
Specifies a physical port and enter interface configuration mode.
Step 9
Switch(config-interface)#
service-policy output
policy-map-name
Specifies the policy-map name, and apply it a physical interface.
Step 10
Switch(config-interface)#
end
Returns to privileged EXEC mode.
Step 11
Switch#
show policy-map
[
policy-map-name
[class
class-map-name
]]
or
Switch#
show policy-map interface
interface-id
Verifies your entries.
Step 12
Switch#
copy running-config
startup-config
(Optional) Saves your entries in the configuration file.
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...