All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] traffic shaping
@ 2001-01-04 12:22 Wouter
  2001-01-04 18:17 ` Sander
                   ` (28 more replies)
  0 siblings, 29 replies; 37+ messages in thread
From: Wouter @ 2001-01-04 12:22 UTC (permalink / raw)
  To: lartc

<PRE>Hello,

I'm trying to limit all outgoing traffic by means of TC. With six students
we are connected through the server (Debian 2.2 kernel 2.2.18) with a
cablemodem. When one person uploads (usually with full bandwidth available
15KB/s) none of the others can make use of the internet because no requests
for information can be send.

So, i want to limit the maximum individual upload to 5KB/s so this doesnt
disturb others useing the internet.

Situation:

Server: 192.168.1.1
Clients: 192.168.1.2 - 192.168.1.7
eth0: LAN
eth1: Cablemodem

Below is what I came up with myself but it doesnt seem to work. Also when do
i activate this rules? pre- of post configuring interfaces?

Thnx,
Wouter Smit

------------------------------------------------
#!/bin/sh

TC=&quot;/sbin/tc&quot;
IF=&quot;eth1&quot;

echo Configure queueing discipline
$TC qdisc add dev $IF root handle 10: cbq bandwidth 120Kbit avpkt 1000

echo Configure root class
$TC class add dev $IF parent 10:0 classid 10:1 cbq bandwidth 120Kbit rate \
 120Kbit allot 1514 weight 12Kbit prio 8 maxburst 20 avpkt 1000

echo Configure class divisions
$TC class add dev $IF parent 10:1 classid 10:100 cbq bandwidth 120Kbit rate
\
  40Kbit allot 1514 weight 4Kbit prio 5 maxburst 20 avpkt 1000 bounded

echo Configure queue management
$TC qdisc add dev $IF parent 10:100 sfq perturb 15 quantum 1514

echo Configure which packets belong to which class
$TC filter add dev $IF parent 10:0 protocol ip prio 25 u32 match ip src \
  192.168.1.0/24 flowid 10:100




</PRE>

^ permalink raw reply	[flat|nested] 37+ messages in thread
* Re: Re[2]: [LARTC] traffic shaping
@ 2002-01-31  8:25 Antonis Lazaridis
  2002-01-31  8:44 ` Martin Devera
                   ` (5 more replies)
  0 siblings, 6 replies; 37+ messages in thread
From: Antonis Lazaridis @ 2002-01-31  8:25 UTC (permalink / raw)
  To: lartc

Hi...

>Using two IP aliases you could...
>so folder A is shared on the alias 192.168.0.1 and folder B on
>192.168.0.2, then limit the traffic by IP.

You made it sound very simple, so i thought i can do it.
But my beginner-ness didn't allow me...
I have set the different IP aliases, but i don't know how i can share 
folders on different aliases.

I suppose this has to be done in smb.conf, right?
I have read all of the smb.conf man, but couldn't find anything.

How can i share different folders on different aliases?
Thanks,
antonis.

PS: My smb.conf file:

[global]
	netbios name = smbSrv
	workgroup = myGroup
	security = user
	encrypt passwords = yes

[public]
	path = /tmp
	read only = no

[video]
	path = /d/video
	read only = no
	guest ok = true

[d_drive]
	path = /d
	read only = no
	guest ok = true



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

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

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

end of thread, other threads:[~2007-10-24 18:37 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-04 12:22 [LARTC] traffic shaping Wouter
2001-01-04 18:17 ` Sander
2001-01-05  3:52 ` Sander
2001-01-05 11:42 ` Wouter
2001-01-05 13:56 ` Junus
2001-01-05 13:56 ` Junus
2001-01-06  9:25 ` [LARTC] Traffic shaping Bruno
2001-01-07 13:54 ` Junus
2001-12-25 12:15 ` [LARTC] Traffic Shaping Sahil Gupta - NET4U
2001-12-25 12:27 ` bert hubert
2001-12-25 12:33 ` Sahil Gupta - NET4U
2001-12-25 12:34 ` Sahil Gupta - NET4U
2001-12-25 12:42 ` bert hubert
2002-01-22  4:52 ` [LARTC] traffic shaping Antonis Lazaridis
2002-01-22  7:44 ` Martin Devera
2002-01-23  8:23 ` Martin Devera
2002-01-23  9:42 ` Antonis Lazaridis
2002-01-23  9:51 ` Martin Devera
2002-01-25  8:11 ` Antonis Lazaridis
2002-01-26 23:00 ` Martin Devera
2002-01-27  1:21 ` Re[2]: " Will Lotto
2002-01-27  8:47 ` Stef Coene
2002-02-08  5:17 ` Antonis Lazaridis
2002-02-08 17:22 ` Riaz Mahmood
2006-10-04 20:45 ` Roberto Scattini
2007-05-06 20:14 ` [LARTC] Traffic Shaping Rangi Biddle
2007-05-07  8:25 ` AW: " Simo
2007-05-07 18:06 ` Rangi Biddle
2007-05-08  3:16 ` Rangi Biddle
2007-10-24 18:37 ` [LARTC] Traffic shaping Mohammad Shakir
  -- strict thread matches above, loose matches on Subject: below --
2002-01-31  8:25 Re[2]: [LARTC] traffic shaping Antonis Lazaridis
2002-01-31  8:44 ` Martin Devera
2002-01-31  9:07 ` Stef Coene
2002-02-01  1:45 ` Antonis Lazaridis
2002-02-01  9:16 ` Martin Devera
2002-02-01  9:57 ` Antonis Lazaridis
2002-02-01 10:05 ` Martin Devera

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.