How to limit bandwidth on CentOS
Installation
Limit the bandwidth
Syntax
Why?
Sometimes you may want to test your application's behavior if the network connection is not stable.
Recommendation
If you connect the CentOS machine remotely, it is preferred to reset the bandwidth to normal after a timeout, otherwise, you may have a risk that you will never able to reconnect to the machine unless you're connecting to it physically.
The sample script to limit the download/upload bandwidth to 2000 Kbps for 30 seconds:
test_bw.sh
Last updated
Was this helpful?