variable speed with fixed minimum speed
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 10 lines · Der echte Paul
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?
Quoted 3 lines
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 13 lines · Der echte Paul
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 = 128kbitUse 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
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/