Traffic shaping problem
Hi,
(well, my squirrelmail seems to be working again so this is the final attempt to send a readable mail :) )
I'm trying to use the shaper script from the lartc howto but the following lines:
# both get Stochastic Fairness: tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10
Return:
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument
I seem to mis something,
my current iproute2 version is: iproute-20010824-r2 Kernel 2.4.19
Can anyone place this?
tnx
Andre
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Andre Meij
(well, my squirrelmail seems to be working again so this is the final attempt to send a readable mail :) )
Yes, now it works OK :)
Quoted 6 lines
# both get Stochastic Fairness: tc qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10 tc qdisc add dev $DEV parent 1:20 handle 20: sfq perturb 10 Return: RTNETLINK answers: Invalid argument
Maybe you don't have SFQ compiled in your kernel, or available as a loadable module. If any command that sets a "sfq" qdisc fails, and any other command works, this could be the problem.
Or it could be some kind of syntax error, or reference to a non-existent "parent". Also remember that standard kernel version 2.4.19 doesn't have support for HTB, if this is what the script is trying to use.
Hope it helps.
Signature · 5 lines
Jose Luis Domingo Lopez Linux Registered User #189436 Debian Linux Woody (Linux 2.4.20-xfs) _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Dear all,
I am a newbie, so excuse me if I ask stupid things.
I have a proxy server with 2 nic, a subnet for wireless lan (with DHCP), and I would like to limit up/download speed to every client, who is connected to this network.
After reading howto I think the only one solution is to create classes for all possible hosts, with 1024k limits (for one client) and I create rules to assign classes to IP addresses.
(class 1:1=match 192.168.0.2, class1:2=match 192.168.0.3, etc.) It means that I have to create 254 (one C class) classes, I'm afraid that there will be too mutch rules.
Is there any other solution?
Thank you.
Peter.
Quoted 13 lines · Szluka Peter
Dear all,
I am a newbie, so excuse me if I ask stupid things.
I have a proxy server with 2 nic, a subnet for wireless lan (with DHCP), and I would like to limit up/download speed to every client, who is connected to this network.
After reading howto I think the only one solution is to create classes for all possible hosts, with 1024k limits (for one client) and I create rules to assign classes to IP addresses.
(class 1:1=match 192.168.0.2, class1:2=match 192.168.0.3, etc.) It means that I have to create 254 (one C class) classes, I'm afraid that there will be too mutch rules.
Is there any other solution?
Depends on your hardware - 254 is not that high.
You can make the filtering alot more efficient by hashing -
http://lartc.org/howto/lartc.adv-filter.hashing.html
Andy.
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc