There are several ways to limit bandwidth on a Cisco Router and i'll try to mention most of the options below. My example shows how to limit
FastEthernet0 to 7 Mbit.
The interface has a 100Mb/s bidirectional communication maximum. You can take that down to 10Mb/s at the physical/electrical level by setting the speed to 10Mb/s, using:
Of course, that is not what you want, but i just wanted to mention it. Please be advised, that many bandwidth shapers are outbound only.
Option 1 CAR (committed access rate)
no ip address
rate-limit input 7000000 3500 3500 conform-action transmit exceed-action drop
rate-limit output 7000000 3500 3500 conform-action transmit exceed-action drop
Option 2 (Policing via MQC)
I would recommend using MQC, as this is hardware only and very effective.
police rate 7000000
service-policy input POLICEALL
service-policy output POLICEALL
Option 3 (Generic Traffic Shaping--less draconian, but outbound only)
traffic-shape rate 7000000 175000 175000 1000
Option 4 (mqc based traffic shaping--less draconian, but outbound only)
shape average 7000000
service-policy output SHAPEALL