Specifications

2-508
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0XO(15.1(1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
shape (class-based queueing)
shape (class-b ased queueing )
To enable traffic shaping a class of traffic in a policy map attached to a physical port, use the shape
average policy-map class command. Traffic shaping limits the data transmission rate. To return to the
default setting, use the no form of this command.
shape average {ra t e} [bp s | kbps | mbps | gbps]
shape average percent {percent_value}
no shape average
Syntax Description
Defaults Average-rate traffic shaping is disabled.
Command Modes Policy-map c lass configuration mode
Usage Guidelines Use the shape command only in a policy map attache d to a physical port. This command is valid in
policy maps at any level of the hierarch y.
Shaping is the process of delaying out-of-profile packets in queues so that they conform to a specified
profile. Shaping is distinct from policing. Policing drops packets that exceed a configured threshold, but
shaping buffers packets so that traffic remains within the threshold. Shaping offers greater smoothness
in handling traffic than policing.
You cannot use the bandwidth, dbl, 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 t he same policy map.
To return to policy-map configuration mode, use the exit command. To return to privileged EXEC mode,
use the end command.
Examples This example shows how to limit the specified traffic class to a data transmission rate of 256 kbps:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
rate Specifies an average rate for traff ic shaping; the range is 16000 t o 10000000000.
Post-fix notation (k, m, and g) is optional and a decimal point is allowed.
bps (Optional) Specifies a rate in bits per seconds.
kbps (Optional) Specifies a rate in kilobytes per seconds.
mbps (Optional) Specifies a rate in me gabits per seconds.
gbps (Optional) Specifies a rate in gigabits per seconds.
percent Specifies a percentage o f bandwidth for traffic s haping.
percent_ val ue (Optional) Specifies a percentage of the bandwidth used for traffic shaping; valid
values are from 1 to 100 percent.