Layer 2 Switching Commands 725traffic-shapeUse the traffic-shape command in Global Configuration mode and InterfaceConfiguration mode to specify the maximum transmission bandwidth limitfor the interface as a whole. To restore the default interface shaping ratevalue, use the no form of this command.Syntaxtraffic-shape bw kbpsno traffic-shape• bw — Maximum transmission bandwidth value expressed in Kbps.(Range: 64 - 4294967295)Default ConfigurationThis command has no default configuration.Command ModeGlobal Configuration mode, Interface Configuration (gigabitethernet, port-channel, tengigabitethernet, fortygigabitethernet) modeUser GuidelinesTraffic shaping, also known as rate shaping, has the effect of smoothingtemporary traffic bursts over time so that the transmitted traffic rate isbounded. This command implements a true egress shaper where bursts oftraffic are buffered and smoothed. Shaping occurs if the average rate exceedsthe configured limit or a burst exceeds 2% of the configured limit. Effectively,all CoS queues are configured with the configured rate limit in the scheduler.Traffic shaping may cause congestion and packet loss if the aggregate ingressrate for an interface persistently exceeds the egress traffic shape rate.ExampleThe following example rate limits interface gi1/0/1 to a maximum bandwidthof 1024 Kbps.console(config-if-Gi1/0/1)#traffic-shape 1024 Kbps