Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to set up TC HTB rules to shape users on local network per IP.

MAX speed works if I set it to 10000kbit. When I try to set anything higher, the shaper is completely ignored, even though I see that traffic is coming to the corresponding class.


tc qdisc add dev $LINT_1 root handle 1: htb default 10
tc class add dev $LINT_1 parent 1: classid 1:1 htb rate $MAX ceil $MAX quantum 1532

for (( i=1; i<=9; i++ ))
  tc class add dev $LINT_1 parent 1:1 classid 1:1$i htb rate 40kbit ceil $MAX quantum 1532
  tc filter add dev $LINT_1 protocol ip parent 1:0 prio 1 u32 match ip dst 192.168.5.$i flowid 1:1$i

When I tried to set up exactly same script on different server, the results were almost same, but MAX could be only 8000kbit

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.