All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] variable speed with fixed minimum speed
@ 2002-10-31 14:57 Der echte Paul
  2002-10-31 15:56 ` Robert Felber
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Der echte Paul @ 2002-10-31 14:57 UTC (permalink / raw)
  To: lartc

Hi!

I have a couple of PCs here of which one is my linux server. All of
those pcs are connected to the internet via the server which runs very
well. I now want to cut the bandwidth of two of the pcs to the internet.
let's say they can have a minimum (fixed) speed of about 128kbit/s for
downloading and 64kbit/s for uploading and if no one else is using the
bandwidth they can gain the rest. I have something like this currently
running with the fixed speed but don't know how I can give them more if
nobody needs it. On my linux pc I have the following devices, ppp0 (=dsl
connection), eth1 (=dsl network card ip: 10.10.10.1) and eth0
(="default" network card 192.168.0.1, server ip). Can anyone maybe help
me out?

Thanks a lot

Paule


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

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

* Re: [LARTC] variable speed with fixed minimum speed
  2002-10-31 14:57 [LARTC] variable speed with fixed minimum speed Der echte Paul
@ 2002-10-31 15:56 ` Robert Felber
  2002-10-31 16:12 ` Stef Coene
  2002-10-31 21:32 ` Andrzej Barganski
  2 siblings, 0 replies; 4+ messages in thread
From: Robert Felber @ 2002-10-31 15:56 UTC (permalink / raw)
  To: lartc

On Thu, Oct 31, 2002 at 03:57:54PM +0100, Der echte Paul wrote:
> I now want to cut the bandwidth of two of the pcs to the internet.
> let's say they can have a minimum (fixed) speed of about 128kbit/s for
> downloading and 64kbit/s for uploading and if no one else is using the
> bandwidth they can gain the rest. I have something like this currently
> running with the fixed speed but don't know how I can give them more if
> nobody needs it. On my linux pc I have the following devices, ppp0 (=dsl
> connection), eth1 (=dsl network card ip: 10.10.10.1) and eth0
> (="default" network card 192.168.0.1, server ip). Can anyone maybe help
> me out?
> 
> Thanks a lot
> 
> Paule

The famous wondershaper script will do that for you. But i suggest, to 
try it out step by step tp in addition with the HOWTOs rather than
fire and forget. Location is here: http://lartc.org/wondershaper/

--
Robert Felber
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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

* Re: [LARTC] variable speed with fixed minimum speed
  2002-10-31 14:57 [LARTC] variable speed with fixed minimum speed Der echte Paul
  2002-10-31 15:56 ` Robert Felber
@ 2002-10-31 16:12 ` Stef Coene
  2002-10-31 21:32 ` Andrzej Barganski
  2 siblings, 0 replies; 4+ messages in thread
From: Stef Coene @ 2002-10-31 16:12 UTC (permalink / raw)
  To: lartc

On Thursday 31 October 2002 15:57, Der echte Paul wrote:
> Hi!
>
> I have a couple of PCs here of which one is my linux server. All of
> those pcs are connected to the internet via the server which runs very
> well. I now want to cut the bandwidth of two of the pcs to the internet.
> let's say they can have a minimum (fixed) speed of about 128kbit/s for
> downloading and 64kbit/s for uploading and if no one else is using the
> bandwidth they can gain the rest. I have something like this currently
> running with the fixed speed but don't know how I can give them more if
> nobody needs it. On my linux pc I have the following devices, ppp0 (=dsl
> connection), eth1 (=dsl network card ip: 10.10.10.1) and eth0
> (="default" network card 192.168.0.1, server ip). Can anyone maybe help
> me out?
Yes.  You can find the needed info on www.lart.org and www.docum.org.  

Basically, you have to add a cbq or htb root qdisc to your internet NIC, add 
1 class that will contains all traffic and 2 other classes.  

In case you use HTB :
root qdisc 128kbit
 |- class rate = ceil = 128kbit
    |- class 1 : rate = 64kbit, ceil = 128kbit
    |- class 2 : rate = 64kbit, ceil = 128kbit

Use a filter (u32) to redirect the traffic from the hosts you will bound to 
class 1 and all other traffic to class 2.

Class 1 and class 2 will always get 64 kbit and will use all bandwidth that's 
not used by the other class.

Remember you can only shape outgoing bandwidth with this setup.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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

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

* Re: [LARTC] variable speed with fixed minimum speed
  2002-10-31 14:57 [LARTC] variable speed with fixed minimum speed Der echte Paul
  2002-10-31 15:56 ` Robert Felber
  2002-10-31 16:12 ` Stef Coene
@ 2002-10-31 21:32 ` Andrzej Barganski
  2 siblings, 0 replies; 4+ messages in thread
From: Andrzej Barganski @ 2002-10-31 21:32 UTC (permalink / raw)
  To: lartc

Hi all!
I'am new on the list.

Thursday, October 31, 2002, 3:57:54 PM, you wrote:

DeP> Hi!

DeP> I have a couple of PCs here of which one is my linux server. All of
DeP> those pcs are connected to the internet via the server which runs very
DeP> well. I now want to cut the bandwidth of two of the pcs to the internet.
DeP> let's say they can have a minimum (fixed) speed of about 128kbit/s for
DeP> downloading and 64kbit/s for uploading and if no one else is using the
DeP> bandwidth they can gain the rest. I have something like this currently
DeP> running with the fixed speed but don't know how I can give them more if
DeP> nobody needs it. On my linux pc I have the following devices, ppp0 (=dsl
DeP> connection), eth1 (=dsl network card ip: 10.10.10.1) and eth0
DeP> (="default" network card 192.168.0.1, server ip). Can anyone maybe help
DeP> me out?

Look here: http://sp9wun.republika.pl/linux/shaperd_cbq_en.html

It is great work of Grzegorz Fitrzyk.
I suggest to use CBQ in shaperd, use of HTB is still in development.

Regards,
Andy

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

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

end of thread, other threads:[~2002-10-31 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-31 14:57 [LARTC] variable speed with fixed minimum speed Der echte Paul
2002-10-31 15:56 ` Robert Felber
2002-10-31 16:12 ` Stef Coene
2002-10-31 21:32 ` Andrzej Barganski

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.