set up different bandwidth on LAN interfaces of router

Unanswered Question
Oct 22nd, 2007
User Badges:

i have set up a small lab for testing optimization of certain applications...i have connected two routers with gigabit port to be utilized as WAN connections..since gigabit port supports 1000mbps, but i want to have only 1Mbps or 2 Mbps i.e less than 1000Mbps between both routers...means i want to make LAN port as WAN port..

how to achieve this bandwidth...kindly provide the configuration to achieve this..

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
bvsnarayana03 Mon, 10/22/2007 - 21:35
User Badges:
  • Silver, 250 points or more

Router(config-if)#bandwidth x

Sets the bandwidth of this interface to x kilobits to allow make a better routing decision.

The bandwidth command is used for metric calculations only. It does not change interface performance.

spremkumar Mon, 10/22/2007 - 21:42
User Badges:
  • Red, 2250 points or more


In this case applying bandwidth command followed by the bandwidth parameter wont help to achieve getting exactly the required bandwidth throughput you like to have here.

You need to make use of rate-limit commands or police command to make sure that you are limiting or subscribing only to the required/desired limit.

Configuring bandwidth command may come handy when you are having routing protocols configured between your router which i dont think is the case here.


minimintu Mon, 10/22/2007 - 21:49
User Badges:

you are right as there are no routing protocols configured..

can u please provide me the configuration for rate-limit commands or police commands?

a.cruea1980 Tue, 10/23/2007 - 08:55
User Badges:
  • Bronze, 100 points or more

Actually, the bandwidth command is used to let an interface know when to expect congestion, not limit it on it's transmit/receive speed.

For example, set up rate-limiting both ingress and egress on one of your routers. On the other router, you really only need to provide the bandwidth at which the router should expect congestion; at that point, it will start implementing QoS.

The bandwidth command isn't simply a routing metric; it communicates to a few higher level protocols. One of those being QoS.

Also, how to rate-limit and police:

I would also suggest using shaping and not policing. . .policing will stop traffic, whereas shaping, in general, is a little more "gentle" in how it handles over-consumption of bandwidth.


This Discussion