From: Daniel Reilly iofhorus@mediaone.net
To: lartc@vger.kernel.org
Subject: [LARTC] cbq ip range?
Date: Tue, 06 Feb 2001 15:19:10 +0000 [thread overview]
Message-ID: <marc-lartc-98373940416981@msgid-missing> (raw)
<PRE>on 2/7/01 9:47 AM, billy at <A HREF="mailto:billy@ciudadglobal.com.ar">billy@ciudadglobal.com.ar</A> wrote:
><i> OK, finally I have made cbq run !
</I>><i> now I would like to know if it is posible to limit a range of IP to a speed.
</I>><i> something like this :
</I>><i>
</I>><i> from 192.168.1.1 to 192.168.1.21 limit to 128K
</I>><i>
</I>><i> I don't whant to limit each IP to 128K, what I would like to do is limit all
</I>><i> 20 IP to have a max of 128K.
</I>><i>
</I>><i> Is it posible?
</I>><i>
</I>><i>
</I>><i>
</I>><i>
</I>><i>
</I>><i> _______________________________________________
</I>><i> LARTC mailing list / <A HREF="mailto:LARTC@mailman.ds9a.nl">LARTC@mailman.ds9a.nl</A>
</I>><i> <A HREF="http://mailman.ds9a.nl/mailman/listinfo/lartc">http://mailman.ds9a.nl/mailman/listinfo/lartc</A> HOWTO:
</I>><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 "THROTTLE dev eth1 128Kbit"
djr
</PRE>
next reply other threads:[~2001-02-06 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-06 15:19 Daniel [this message]
2001-02-06 15:41 ` [LARTC] cbq ip range? Borut
2001-02-07 14:47 ` billy
2001-02-07 15:10 ` billy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-98373940416981@msgid-missing \
--to=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox