From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] CBQ by IP address
Date: Sat, 16 Mar 2002 16:24:51 +0000 [thread overview]
Message-ID: <marc-lartc-101629595905218@msgid-missing> (raw)
In-Reply-To: <marc-lartc-101627919613412@msgid-missing>
On Saturday 16 March 2002 12:45, you wrote:
> Hello,
>
> I have a Q running (script attached, from the how-to) which does the
> following:
>
> 1. Assign 6MBit to link
> 2. Assign 5MBit to 192.168.230.0/24
> 3. Assign 3MBit to 192.168.220.0/24
>
> I have two questions:
>
> 1. Is it possible to set a limit for a particular IP address, rather than a
> range? I've tried the following:
>
> match ip src 192.168.230.1 - the filter has no effect on traffic
> match ip src 192.168.230.4/32 - the filter has no effect on traffic
> match ip src 192.168.230.1/24 - the filter affects the whole 192.168.230.0
> network
This works for me :
tc filter add dev eth0 parent 10: protocol ip u32 match ip dst 192.168.1.253
flowid 10:10
>
> 2. With the attached script, bandwidth is set to 5MBit or 3Mbit for a
> single machine on the filtered networks. When I add another machine on the
> same network, both machines get half of the rate. Is there a way to say
> that all machines on a particular /24 are limited to a particular rate,
> rather than sharing it between them?
The only thing you can do is create a class and filter for each of the extra
machines. The WRR qdisc can do this automatically, but I never tried it. It
creates a class for each ip-address or mac-address it sees and gives each
class an equal umount of bandwidth.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2002-03-16 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-16 11:45 [LARTC] CBQ by IP address Gavin
2002-03-16 16:24 ` Stef Coene [this message]
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-101629595905218@msgid-missing \
--to=stef.coene@docum.org \
--cc=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 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.