* [LARTC] Traffic shaping problem
@ 2002-12-29 21:04 Andre Meij
2002-12-29 21:45 ` Jose Luis Domingo Lopez
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andre Meij @ 2002-12-29 21:04 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Traffic shaping problem
2002-12-29 21:04 [LARTC] Traffic shaping problem Andre Meij
@ 2002-12-29 21:45 ` Jose Luis Domingo Lopez
2005-05-13 14:49 ` Szluka Peter
2005-05-16 22:38 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Jose Luis Domingo Lopez @ 2002-12-29 21:45 UTC (permalink / raw)
To: lartc
On Sunday, 29 December 2002, at 22:04:28 +0100,
Andre Meij wrote:
> (well, my squirrelmail seems to be working again so this is the final
> attempt to send a readable mail :) )
>
Yes, now it works OK :)
> # 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.
--
Jose Luis Domingo Lopez
Linux Registered User #189436 Debian Linux Woody (Linux 2.4.20-xfs)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [LARTC] Traffic shaping problem
2002-12-29 21:04 [LARTC] Traffic shaping problem Andre Meij
2002-12-29 21:45 ` Jose Luis Domingo Lopez
@ 2005-05-13 14:49 ` Szluka Peter
2005-05-16 22:38 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Szluka Peter @ 2005-05-13 14:49 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 206 bytes --]
--===============2123562646==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
boundary="----_=_NextPart_001_01C557CA.F76B0144"
This is a multi-part message in MIME format.
[-- Attachment #2: Type: text/plain, Size: 666 bytes --]
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.
[-- Attachment #3: Type: text/html, Size: 2277 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Traffic shaping problem
2002-12-29 21:04 [LARTC] Traffic shaping problem Andre Meij
2002-12-29 21:45 ` Jose Luis Domingo Lopez
2005-05-13 14:49 ` Szluka Peter
@ 2005-05-16 22:38 ` Andy Furniss
2 siblings, 0 replies; 4+ messages in thread
From: Andy Furniss @ 2005-05-16 22:38 UTC (permalink / raw)
To: lartc
Szluka Peter wrote:
> 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
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-16 22:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-29 21:04 [LARTC] Traffic shaping problem Andre Meij
2002-12-29 21:45 ` Jose Luis Domingo Lopez
2005-05-13 14:49 ` Szluka Peter
2005-05-16 22:38 ` Andy Furniss
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox