All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] limiting bandwidth to one IP
Date: Sun, 23 Dec 2001 19:49:51 +0000	[thread overview]
Message-ID: <marc-lartc-100913715609912@msgid-missing> (raw)
In-Reply-To: <marc-lartc-100912617329520@msgid-missing>

On Sunday 23 December 2001 19:06, Carles Pina i Estany wrote:
> Hi,
>
> I am testing tc and company tools :-)
>
> I have an ADSL with three interfaces (one to ADSL router, one to one net
> and another one to another net).
>
> I am trying to limit the download from Internet to one computer.
>
> I try it (and some variations...):
>
> tc qdisc add dev eth1 root handle 1: cbq bandwidth 256kbit allot 1514 cell
> 8 avpkt 1000 mpu 64
Bandwith must be the real bandwith of the NIC.  Usual 10 or 100 mbit.

> (eth1 is the interface where computer that I want to limit is connected)
>
> tc class add dev eth1 parent 1:0 classid 1:1 cbq bandwidth 256kbit rate
> 128kbit weight 12kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
> bounded
>
> 256 is my bandwidth (to download)
> 128 is the bandwidth that I want to this computer
> 12kbit I don't know ¿?...
> bounded is to test, only
>
> tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32 match ip dst
> 192.168.0.5 flowid 1:1
>
> But the computer is receiving more than 128kbit.
> If I try:
>
> tc qdisc add dev eth1 root tbf rate 128kbit latency 50ms burst 1540
> Works fine, but I am limiting the whole network (I don't want it)
What you want to do is easy.  But you are using the wrong commands.  I have 
some working scripts.  You can find them on www.docum.org.

But I advise you to use the htb qdisc.  Much easier to set up and to 
understand.  Again, more information on www.docum.org.  If you really want to 
use CBQ, I can give you more information.  Just leave a message on the 
mailing list.

Stef

-- 

stef.coene@docum.org
 More QOS info : http://www.docum.org/
 Title : "Using Linux as bandwidth manager"
     

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

  reply	other threads:[~2001-12-23 19:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-23 16:49 [LARTC] limiting bandwidth to one IP Carles Pina i Estany
2001-12-23 19:49 ` Stef Coene [this message]
2001-12-23 21:28 ` Stef Coene
2001-12-24 12:17 ` Jerome Petazzoni

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-100913715609912@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.