Just enter these two commands to establish a rate limit of 2kbps on eth0.
tc qdisc add dev eth0 root handle 1:0 netem delay 10ms
tc qdisc add dev eth0 parent 1:1 handle 10: tbf rate 2kbit buffer 1600 limit 3000
OR
More recently I found the following single command will effectively restrict bandwidth to 2kbps
tc qdisc add dev eth0 root tbf rate 2kbit latency 1ms burst 1540
or
tc qdisc add dev eth0 root tbf rate 15mbit latency 1ms burst 20m
Wednesday, June 9, 2010
Subscribe to:
Posts (Atom)