On Tuesday 29 July 2003 07:28, Rio Martin. wrote:
> On Thursday 24 July 2003 23:28, you wrote:
> > On Thursday 24 July 2003 04:22, Rio Martin. wrote:
> > Can you post your script and the output of tc -s -d class show dev eth0?
>
> tc qdisc del dev eth0 root
> tc qdisc add dev eth0 root handle 1 htb default 0 r2q 10
Bad idea. Class 0 is a special one and I dont't think you want unclassified
traffic go out at full speed ....
> tc class add dev eth0 parent 1: classid 1:10 htb rate 40Kbit ceil 40Kbit
> burst 1 cburst 1
Argh. Remove the burst and cburst parameters so htb can calculate the smalles
one for you. I think that's your problem.
> tc qdisc add dev eth0 parent 1:10 handle 10 sfq perturb 10 quantum 1500
> tc class add dev eth0 parent 1:10 classid 1:9100 htb rate 20Kbit ceil
> 20Kbit burst 1 cburst 1
> tc filter add dev eth0 parent 1:0 protocol ip prio 200 handle 100 fw
> classid 1:9100
>
> [EMAIL PROTECTED]:/etc/sysconfig/htb# tc -s -d class show dev eth0
> class htb 1:10 root rate 40Kbit ceil 40Kbit burst 0b/8 mpu 0b cburst 0b/8
> mpu 0b level 7
> Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
> rate 532bps 2pps
> lended: 0 borrowed: 0 giants: 0
> tokens: -7521 ctokens: -7521
>
> class htb 1:9100 parent 1:10 leaf 9100: prio 0 quantum 1000 rate 20Kbit
> ceil 20Kbit burst 0b/8 mpu 0b cburst 0b/8 mpu 0b level 0
> Sent 1406352 bytes 12398 pkts (dropped 0, overlimits 0)
> rate 504bps 2pps
> lended: 12398 borrowed: 0 giants: 0
> tokens: -15041 ctokens: -15041
Stef
--
[EMAIL PROTECTED]
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / [EMAIL PROTECTED]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/