All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carles Pina i Estany <is08139@salleURL.edu>
To: lartc@vger.kernel.org
Subject: [LARTC] limiting bandwidth to one IP
Date: Sun, 23 Dec 2001 16:49:33 +0000	[thread overview]
Message-ID: <marc-lartc-100912617329520@msgid-missing> (raw)


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

(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)

thank you very much for your attention.

And excuse me my bad English.


----
Carles Pina i Estany | Nick: Pinux / Pine / Teufeus
E-Mail: carles.pina@salleURL.edu / is08139@salleURL.edu / cpina@cat-linux.com
http://www.salleURL.edu/~is08139/

   Vendo teléfono militar. También marca el paso


_______________________________________________
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 16:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-23 16:49 Carles Pina i Estany [this message]
2001-12-23 19:49 ` [LARTC] limiting bandwidth to one IP Stef Coene
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-100912617329520@msgid-missing \
    --to=is08139@salleurl.edu \
    --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.