Hello, I have been reading the "Linux Advanced Routing & Traffic Control HOWTO" and was hoping you might be able to give me a little help. I am very new to Linux so please be gentle !?! My network is slightly different to the normal. I have a router with 4 ports DSL-D504T. In the house where I live 3 other people have Win-XP machines on the 3 ports of the router. I have the other port and my machine runs Linux. I connect to the router with eth1. My Linux is also a DHCP server and I can force the 3 other peoples'' computers get their IP addresses from my Linux box rather than the DHCP router. Knowing this is there any way of using "tc" to share the bandwidth more fairly ? One of the guys in particular downloads movies all the time. Naturally they do not want a normal LAN where my Linux is the main server. Thanks in advance for any help / pointers to documentation etc that you can give. Ian T _________________________________________________________________ MSN Messenger 7.5 is now out. Download it for FREE here. http://messenger.msn.co.uk
On Tuesday 04 October 2005 15:06, Ian stuart Turnbull wrote: <snip>> I connect to the router with eth1. My Linux is also a DHCP server and I > can force the 3 other peoples'' computers get their IP addresses from my > Linux box rather than the DHCP router. Knowing this is there any way of > using "tc" to share the bandwidth more fairly ? One of the guys in > particular downloads movies all the time.Yes. You need to ensure each of your roommates has a blackholed IP address. That will solve your problem. ;)> Naturally they do not want a normal LAN where my Linux is the main server.Maybe your router has some QoS options? If you can''t stick your Linux machine between the network and the router/switch, there isn''t much you could do. More seriously, if you provide them with DHCP you could transparently redirect them through your box and apply QoS without their knowledge, but it would be far easier to just ask, no? -- Jason Boxman http://edseek.com/ - Linux and FOSS stuff
On Tuesday 04 October 2005 21:06, Ian stuart Turnbull wrote:> My network is slightly different to the normal. > > I have a router with 4 ports DSL-D504T. In the house where I live 3 > other people have Win-XP machines on the 3 ports of the router. I have > the other port and my machine runs Linux.Your network is normal, you just want to do things the wrong way.> One of the guys in particular downloads movies all the time. Naturally > they do not want a normal LAN where my Linux is the main server.I wouldn''t want /your/ Linux either, because that way everyone is offline whenever your box is not operational. You should keep a dedicated router with QoS capabilities, and although Linux based would be nice, it''s not an absolute requirement. However, concerning the downloads all the time guy in particular, let me tell you a story (even though I''m not good at storytelling). I lived in a flat together with 4 other people, and we shared one DSL line. At the time, I needed to use Telnet/SSH a lot, and it was super laggy, because the others downloaded stuff. Now, we already had a Linux router, so it might have been a little easier for me, but that''s beside the point. After a lot of trial & error and with help from LARTC I set up a proper QoS on the router, and everyone in the flat benefitted from it, even the guys who downloaded all the time, for one simple reason: Without QoS, they couldn''t do things like chatting or gaming while downloading either, and the net was super slow for them as well. And downloads still go at full speed most of the time (because most of the time, people are sleeping, or at uni / work), downloads only need to go a little slower while others want to use the net too. So you can be fair to others and still benefit from it. If your roommates don''t get that, kick them out. HTH Andreas