2-21
Catalyst 3750 Metro Switch Command Reference
OL-9645-10
Chapter 2 Catalyst 3750 Metro Switch Cisco IOS Commands
bandwidth
These restrictions apply to the
bandwidth
command:
•
If the
percent
keyword is used, the sum of the class bandwidth percentages within a single policy
map cannot exceed 99 percent. Percentage calculations are based on the bandwidth available at the
parent class (or the port if it is the parent).
•
The amount of bandwidth available to a class is dependent on the amount of bandwidth reserved by
the parent class.
•
The amount of bandwidth configured should be large enough to accommodate Layer 2 overhead.
•
A policy map can have all the class bandwidths specified in either kbps or in percentages, but not a
mix of both. You cannot specify bandwidth in kbps in a child policy (configured through the
service-policy
policy-map class configuration command) and then specify bandwidth as a
percentage in the parent policy.
•
You cannot use the
bandwidth
command for the class-default class map in a physical-level policy
map.
•
Though visible in the command-line interface, the
max-reserved-bandwidth
interface
configuration command and the
bandwidth
interface configuration command are not supported on
the ES ports.
When you configure the
bandwidth
command in a class policy, you must also configure the
bandwidth
or
shape
policy-map class configuration command in the parent VLAN-level policy.
You must configure the
bandwidth
or the
shape
policy-map class configuration command before you
configure either the
queue-limit
or the
random-detect
policy-map class configuration command in a
class policy.
You cannot use the
bandwidth
,
queue-limit
,
random-detect
, and the
shape
policy-map class
configuration commands with the
priority
policy-map class configuration command in the same class
within the same policy map. However, you can use these commands in the same policy map.
When you use the
service-policy
interface configuration command to attach the policy map containing
class configurations to an ES port, the switch determines the available bandwidth.
Examples
This example shows how to set the minimum bandwidth to 2000 kbps for a class called
silver-class
. The
class already exists in the switch configuration.
Switch(config)#
policy-map polmap6
Switch(config-pmap)#
class silver-class
Switch(config-pmap-c)#
bandwidth 2000
This example shows how to guarantee 30 percent of the bandwidth for
class1
and 25 percent of the
bandwidth for
class2
when CBWFQ is configured. A policy map with two classes is created and is then
attached to an ES port.
Switch(config)#
policy-map policy1
Switch(config-pmap)#
class class1
Switch(config-pmap-c)#
bandwidth percent 50
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
class class2
Switch(config-pmap-c)#
bandwidth percent 25
Switch(config-pmap-c)#
exit
Switch(config-pmap)#
end
Switch(config)#
interface gigabitethernet1/1/1
Switch(config-if)#
service-policy input policy1
This example shows how bandwidth is guaranteed if low-latency queueing (LLQ) and CBWFQ are
configured. In this example, LLQ is enabled in a class called
voice1
.