I want to limit the speed at which my linux box will upload to the cable modem, since, above a certain rate, this slows everything down. On the other hand, I want it to work as fast as possible when streaming to the internal network. One card connects to both -- ie to the router, which connects to the cable modem and to everything else on the network. POking around on Google tells me there is a "tc" command, which will slow down all traffic on an interface. But I can't work out if I can tell it to slow down only external traffic, and the documentaiton presumes a level of competence and knowledge far beyond me. -- Andrew Brown What I do: www.darwinwars.com What I'm up to: www.thewormbook.com/helmintholog/
On Wednesday 12 January 2005 11:05, Andrew Brown wrote:
I want to limit the speed at which my linux box will upload to the cable modem, since, above a certain rate, this slows everything down. On the other hand, I want it to work as fast as possible when streaming to the internal network. One card connects to both -- ie to the router, which connects to the cable modem and to everything else on the network.
Try this: http://lartc.org/howto/lartc.cookbook.ultimate-tc.html ... configuration is very simple, based only on the available upload and download speeds of your connection, and it works very well. (The rest of the howto is interesting and instructive, too). -- Bill
On Wed, 12 Jan 2005 11:30:42 +0000, William Gallafent
On Wednesday 12 January 2005 11:05, Andrew Brown wrote:
I want to limit the speed at which my linux box will upload to the cable modem, since, above a certain rate, this slows everything down. On the other hand, I want it to work as fast as possible when streaming to the internal network. One card connects to both -- ie to the router, which connects to the cable modem and to everything else on the network.
Try this: http://lartc.org/howto/lartc.cookbook.ultimate-tc.html
... configuration is very simple, based only on the available upload and download speeds of your connection, and it works very well. (The rest of the howto is interesting and instructive, too).
Tanks. I ad looked at this, and it made no sense at all. Still doesn't. But if I treat it as a sort of magic incantatin, maybe it will. I still can't see how it distinguishes between the traffic on the internal network and everything else.
-- Bill
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- Andrew Brown What I do: www.darwinwars.com What I'm up to: www.thewormbook.com/helmintholog/
Andrew Brown wrote:
Tanks. I ad looked at this, and it made no sense at all. Still doesn't. But if I treat it as a sort of magic incantatin, maybe it will. I still can't see how it distinguishes between the traffic on the internal network and everything else.
That is probably based on the network interface. If your internal traffic is eth0, and your external is eth1/ppp0/atm0 or whatever, your traffic-control setup should only apply to the latter. /Per Jessen, Zurich -- http://www.spamchek.com/freetrial - sign up for your free 30-day trial now! http://www.spamchek.de/freetrial - jetzt für 30 Tage ausprobieren - kostenlos und unverbindlich!
On Wednesday 12 January 2005 11:30, William Gallafent wrote:
On Wednesday 12 January 2005 11:05, Andrew Brown wrote:
I want to limit the speed at which my linux box will upload to the cable modem, since, above a certain rate, this slows everything down. On the other hand, I want it to work as fast as possible when streaming to the internal network. One card connects to both -- ie to the router, which connects to the cable modem and to everything else on the network.
Try this: http://lartc.org/howto/lartc.cookbook.ultimate-tc.html
... configuration is very simple, based only on the available upload and download speeds of your connection, and it works very well. (The rest of the howto is interesting and instructive, too).
Ah, you need to shape only traffic not destined for your internal network (that'll teach me to press send without reading your email properly). How about giving the physical interface two IP addresses, setting a route for the internal network to one of them, not shaped, and setting default route to the other one, which has traffic shaping (e.g. the magic script I mentioned) applied? -- Bill
participants (3)
-
Andrew Brown
-
Per Jessen
-
William Gallafent