From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] variable speed with fixed minimum speed
Date: Thu, 31 Oct 2002 16:12:09 +0000 [thread overview]
Message-ID: <marc-lartc-103608082122727@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103607625316618@msgid-missing>
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/
next prev parent reply other threads:[~2002-10-31 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2002-10-31 21:32 ` Andrzej Barganski
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-103608082122727@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox