All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] limiting bandwidth to one IP
@ 2001-12-23 16:49 Carles Pina i Estany
  2001-12-23 19:49 ` Stef Coene
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Carles Pina i Estany @ 2001-12-23 16:49 UTC (permalink / raw)
  To: lartc


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/

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

end of thread, other threads:[~2001-12-24 12:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-23 16:49 [LARTC] limiting bandwidth to one IP Carles Pina i Estany
2001-12-23 19:49 ` Stef Coene
2001-12-23 21:28 ` Stef Coene
2001-12-24 12:17 ` Jerome Petazzoni

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.