10-22-2007 08:16 PM - edited 03-05-2019 07:15 PM
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..
10-22-2007 09:35 PM
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.
10-22-2007 09:42 PM
Hi
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.
regds
10-22-2007 09:49 PM
you are right as there are no routing protocols configured..
can u please provide me the configuration for rate-limit commands or police commands?
10-23-2007 08:55 AM
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.
http://www.cisco.com/en/US/docs/ios/11_0/router/command/reference/rinterfc.html#wp1396
Also, how to rate-limit and police:
http://www.cisco.com/en/US/docs/ios/12_2/qos/command/reference/qrfcmd8.html
http://www.cisco.com/en/US/docs/ios/12_2/qos/command/reference/qrfcmd9.html
http://www.cisco.com/en/US/docs/ios/12_2/qos/command/reference/qrfcmd5.html#wp1064737
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.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: