On Wed, Jan 30, 2002 at 10:23:04PM -0800, Linux Rocks ! wrote: > It sound to me what he needs/wants is something called load ballanceing. Ive > never setup load balancing, but Ive heard of it being used with modems. for a > while atleast linux was the only way to do load balancing, I read about it > many years ago, it is basicly using multiple modems, dialup internet > accounts, phone lines, connected to one computer. so... lets say you have 2 > modems, phonelines, internet accounts. You can have both modems dialup the > internet and connect. Then you surf or whatever and get the full bandwitdh of > both modems (ie 2 x 33.6k modem = 67.2k).
I think you're thinking of multilink, or "shotgunning modems" (*BSD ppp supports this BTW). > I dont know how to do it, but I > also dont see any reason you cannot do it. Because: > > > The kernel would have to > > > route by port to route the packet through the right NIC. He's not asking for load balancing, he's asking for something more along the lines of traffic "shaping". This is why I suggested ALTQ -> http://www.csl.sony.co.jp/person/kjc/software.html#ALTQ Even basic load balancing is non-trivial. Let's think about it as simply as possible. We have one computer with two interfaces to the outside, if0 and if1, therefore, we have two gateways. We send a SYN out through if0 (a.b.c.d) to example.net. It sends us (a.b.c.d) an ACK, we reply, but now we send it out on if1 (w.x.y.z). See the problem? We never set up explicit routes, we're just sending out packets. We need to make sure we're only communicating with example.com on one interface, that is, one IP address. For this, you need something like zebra or routed to handle advanced routing protocols like BGP or OSPF. Your ISPs will need to implement these also. And since you would essentiall be a link between two networks, you want to make sure no one is going to try to route through you. This apporach might be more simple: dsl | NAT | switch / \ non hosts cable - routing proxy -- <[EMAIL PROTECTED]>
