1

limiting upload with tc

view story
linux-howto

http://www.linuxquestions.org – i have a linux router for a LAN that has an interface named "external" which is the public-facing address. I am trying to set a global max upload rate for a client with local ip 172.16.16.11 to 2mbit, and if the upload link is congested, have it slow down to a minimum of 900kbps. I do this: Code: tc qdisc add dev external root handle 1: htb default 1 tc class add dev external parent 1: classid 1:2 htb rate 905kbit ceil 2.15mbit and this: Code: iptables -t mangle -A POSTROUTING -o external -s 172.16.16.11 -j CLASSIFY --set-class 1:2 Except the client ALWAYS has 900kbps upload (HowTos)