All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] cbq ip range?
@ 2001-02-06 15:19 Daniel
  2001-02-06 15:41 ` Borut
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Daniel @ 2001-02-06 15:19 UTC (permalink / raw)
  To: lartc

<PRE>on 2/7/01 9:47 AM, billy at <A HREF="mailto:billy@ciudadglobal.com.ar">billy@ciudadglobal.com.ar</A> wrote:

&gt;<i> OK, finally I have made cbq run !
</I>&gt;<i> now I would like to know if it is posible to limit a range of IP to a speed.
</I>&gt;<i> something like this :
</I>&gt;<i> 
</I>&gt;<i> from 192.168.1.1 to 192.168.1.21 limit to 128K
</I>&gt;<i> 
</I>&gt;<i> I don't whant to limit each IP to 128K, what I would like to do is limit all
</I>&gt;<i> 20 IP to have a max of 128K.
</I>&gt;<i> 
</I>&gt;<i> Is it posible? 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> 
</I>&gt;<i> _______________________________________________
</I>&gt;<i> LARTC mailing list / <A HREF="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</A>
</I>&gt;<i> <A HREF="http://mailman.ds9a.nl/mailman/listinfo/lartc">http://mailman.ds9a.nl/mailman/listinfo/lartc</A> HOWTO:
</I>&gt;<i> <A HREF="http://ds9a.nl/2.4Routing/">http://ds9a.nl/2.4Routing/</A>
</I>You could use this to throttle a whole subnet to 128kbit.....I suppose you
could use a different netmask to tighten the range ....

tc qdisc add dev eth1 root handle 1: cbq bandwidth 10Mbit cell 8 avpkt 1000
mpu 64
tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 10Mbit rate
10Mbit allot 1514 cell 8 weight 1Mbit prio 8 maxburst 20 avpkt 1000
tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth 10Mbit rate
128Kbit allot 1514 cell 8 weight 12Kbit prio 3 maxburst 20 avpkt 1000
bounded
ip ro chg 192.168.1.0/24 via 192.168.1.254 realm 16
tc filter add dev eth1 parent 1:0 protocol ip prio 100 route to 16 flowid
1:2
echo &quot;THROTTLE dev eth1 128Kbit&quot;

djr




</PRE>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LARTC] cbq ip range?
  2001-02-06 15:19 [LARTC] cbq ip range? Daniel
@ 2001-02-06 15:41 ` Borut
  2001-02-07 14:47 ` billy
  2001-02-07 15:10 ` billy
  2 siblings, 0 replies; 4+ messages in thread
From: Borut @ 2001-02-06 15:41 UTC (permalink / raw)
  To: lartc

<PRE>On Wed, Feb 07, 2001 at 12:10:53PM -0300, billy wrote:
&gt;<i> What do you meen for &quot;same flowid&quot;?
</I>&gt;<i> and is there a cbq-howto? if it is, where can I find it?
</I>
That's my setup:

tc qdisc add dev eth0 root handle 10: cbq bandwidth 100Mbit avpkt 1000

tc class add dev eth0 parent 10:0 classid 10:10 cbq bandwidth 100Mbit \
  rate 512kbit allot 1514 weight 100kbit prio 5 maxburst 1 avpkt 1000 bounded
tc qdisc add dev eth0 parent 10:10 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match \
  ip src xxx.xxx.2.0/28 flowid 10:10
tc filter add dev eth0 parent 10:0 protocol ip prio 100 u32 match \
  ip src xxx.xxx.1.3 flowid 10:10

here xxx.xxx.1.3 is customers linux router/squid proxy, which also
generates traffic, as do their other addresses (.2.0/28).

flowid = classid, AFAIK.

This works for me. I don't know the correct wording for all this stuff, so
please bare with me ;-]

bye,

-- 
Borut
<A HREF="mailto:borut.mrak@ijs.si">borut.mrak@ijs.si</A>
-----------------
Booze is the answer.  I don't remember the question.


</PRE>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LARTC] cbq ip range?
  2001-02-06 15:19 [LARTC] cbq ip range? Daniel
  2001-02-06 15:41 ` Borut
@ 2001-02-07 14:47 ` billy
  2001-02-07 15:10 ` billy
  2 siblings, 0 replies; 4+ messages in thread
From: billy @ 2001-02-07 14:47 UTC (permalink / raw)
  To: lartc

<PRE>OK, finally I have made cbq run !
now I would like to know if it is posible to limit a range of IP to a speed. 
something like this :

from 192.168.1.1 to 192.168.1.21 limit to 128K

I don't whant to limit each IP to 128K, what I would like to do is limit all 
20 IP to have a max of 128K.

Is it posible? 






</PRE>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [LARTC] cbq ip range?
  2001-02-06 15:19 [LARTC] cbq ip range? Daniel
  2001-02-06 15:41 ` Borut
  2001-02-07 14:47 ` billy
@ 2001-02-07 15:10 ` billy
  2 siblings, 0 replies; 4+ messages in thread
From: billy @ 2001-02-07 15:10 UTC (permalink / raw)
  To: lartc

<PRE>On Tuesday 06 February 2001 12:07, you wrote:
&gt;<i> On Wed, Feb 07, 2001 at 11:47:21AM -0300, billy wrote:
</I>&gt;<i> &gt; I don't whant to limit each IP to 128K, what I would like to do is limit
</I>&gt;<i> &gt; all 20 IP to have a max of 128K.
</I>&gt;<i>
</I>&gt;<i> Sure, just add them to the same flowid. This should be added as an
</I>&gt;<i> example to the howto, i guess...i tried and it works (or so it seems :-)
</I>&gt;<i>
</I>&gt;<i> You can also add xxx.xxx.xxx.xxx/netmask, which is very nice.
</I>
What do you meen for &quot;same flowid&quot;?
and is there a cbq-howto? if it is, where can I find it?

thanks, billy




</PRE>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-07 15:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-06 15:19 [LARTC] cbq ip range? Daniel
2001-02-06 15:41 ` Borut
2001-02-07 14:47 ` billy
2001-02-07 15:10 ` billy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.