On Tuesday 26 August 2003 12:24, Jose Celestino wrote:> Hi.
>
> Is it possible to do shapping with on demand VCs with HTB? I mean, is it
> possible to create a pair, without human intervention, for every
> connection IP 1.2.3.4:
>
> tc class add dev eth0 parent 1:1 classid 1:11 htb rate 5kbps ceil 10kbps
> tc filter add dev eth0 protocol ip parent 1:0 prio 1 u32 match ip dtp
> 1.2.3.4 flowid 1:11
>
> What I''m trying to achieve is to limit the download to a
determined rate
> on every connection, the application doesn''t support it so I need
to it
> this way (without spending tons of $$$ on a comercial shapper).
There is a patch for the kernel/tc so you can add a wrrr qdisc. This qdisc
has a builtin filter and creates a class for each ip address it sees. I
never tried this qdisc, but you can find it on
http://wipl-wrr.sourceforge.net/
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/