HTB as a child of another HTB - doesn't work
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 1 line · ddaasd
What do I do wrong?
Most likely, you do not want to use more than one HTB qdisc per device.
Quoted 4 lines
tc qdisc add dev eth0 root handle 100: htb
tc class add dev eth0 parent 100: classid 100:1 htb rate 100kbpstc qdisc add dev eth0 parent 100:1 handle 1: htb
What do you need this qdisc for?
Quoted 4 lines
tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50kbps ceil 100kbps prio 1 tc class add dev eth0 parent 1:1 classid 1:20 htb rate 50kbps ceil 100kbps prio 2
Why not make these children of the first qdisc?
Quoted 5 lines
<br>
<br>
<font face="verdana, arial, helvetica" size="2">OR<br> <br>
</font>
Please don't send HTML mails (or at least include a text-only version). Otherwise it is really awful to read. Thanks.
HTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · ddaasd
Quoted 4 lines
What do I do wrong?
Most likely, you do not want to use more than one HTB qdisc per device.
What about the example from the HTB User Guide?? Is it wrong?
http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm#prio
Quoted 2 lines
Quoted 2 lines
Please don't send HTML mails (or at least include a text-only >>version). Otherwise it is really awful to read. Thanks.
Sorry, I didn't know..L :(
Quoted 2 lines
Quoted 2 lines
HTH
Andreas
Thanks,
ddaas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Quoted 4 lines · ddaas
Quoted 2 lines
Quoted 2 lines
Most likely, you do not want to use more than one HTB qdisc per device.
What about the example from the HTB User Guide?? Is it wrong?
Ah, you want to simulate a slow link. Didn't realize that, sorry. :-)
Have a look on the output of the tc -s -d class show dev $dev statistics. Also try qdisc show instead of class show, the direct_packets_stat should be zero.
The packets should go into the class 100:1 (you may have to add "default 1" or a filter that puts them there). So far you only got one filter for the child qdisc, but for that the packets have to get there first.
HTH
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc