44-62
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 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 return to the default bandwidth, use the
no bandwidth
policy-map class configuration command.
This example shows how to create a class-level policy map called policy11 for three classes called prec1,
prec2, and prec3. In the policy for these classes, 30 percent of the available bandwidth is assigned to the
queue for the first class, 20 percent is assigned to the queue for the second class, and 10 percent is
assigned to the queue for the third class.
Switch #
configure terminal
Switch(config)#
policy-map policy11
Switch(config-pmap)#
class prec1
Switch(config-pmap-c)#
bandwidth percent 30
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class prec2
Switch(config-pmap-c)#
bandwidth percent 20
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class prec3
Switch(config-pmap-c)#
bandwidth percent 10
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
exit
Switch(config)#
interface gigabitethernet1/1
Switch(config-if)#
service-policy output policy11
Step 4
Switch(config-pmap-class)#
bandwidth
{
bandwidth-kbps
|
percent
percent
}
Specifies the minimum bandwidth provided to a class belonging to
the policy map when there is traffic congestion in the switch. If the
switch is not congested, the class receives more bandwidth than you
specify with the
bandwidth
command.
By default, no bandwidth is specified.
You can specify the bandwidth in kbps or as a percentage:
o For
bandwidth-kbps
, specify the bandwidth amount in kbps
assigned to the class. The range is 32 to 10000000.
o For
percent
, specify the percentage of available bandwidth
assigned to the class. The range is 1 to 100.
Specify all the class bandwidths in either kbps or in percentages, but
not a mix of both.
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 enter interface configuration mode.
Step 8
Switch(config-interface)#
service-policy output
policy-map-name
Specifies the policy-map name, and apply 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.
Command
Purpose
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 ...