Hi, A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. He now want to remove those 2 boxes and have some device which will loadbalance the two ISPs and also have a failover arrangement. But he has agreed to give me a chance to do it on Linux for my own satisfication. Is this easy to do with lartc? How do I go about it exactly? I have very less time to do it since his whole network will be done for that time and I cannot afford to play for long time. Is it worth trying it with lartc for academic sake atleast? Can someone suggest some easy steps? With warm regards, -Payal p.s. Is lartc.org down?
Payal Rathod wrote:> Hi, > A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. > He now want to remove those 2 boxes and have some device which will > loadbalance the two ISPs and also have a failover arrangement. But he > has agreed to give me a chance to do it on Linux for my own > satisfication. > Is this easy to do with lartc? How do I go about it exactly? I have > very less time to do it since his whole network will be done for that > time and I cannot afford to play for long time. Is it worth trying it > with lartc for academic sake atleast? > Can someone suggest some easy steps? > With warm regards, > -Payal > p.s. Is lartc.org down?You can try out implementing configuring a load balancing and failover system referring to the following documents: http://www.ssi.bg/~ja/nano.txt http://www.ssi.bg/~ja/dgd-usage.txt You will need to patch and recompile the linux kernel using the "routes" patch given at http://www.ssi.bg/~ja/#routes for dead gateway detection to work. The load balancing part works fine but dead gateway detection (and hence failover) does not work always. It works best when your first hop gateway is down but may or may not work when a subsequent hop is down. In a recent case, I observed that dead gateway detection and the failover was working very well when one ISP failed but did not happen when the other one went down. So you can try your luck here. -- Manish Kathuria http://www.tuxspace.com/
On Thu, Feb 09, 2006 at 07:52:32PM +0530, Manish Kathuria wrote:> You can try out implementing configuring a load balancing and failover > system referring to the following documents: > > http://www.ssi.bg/~ja/nano.txt > http://www.ssi.bg/~ja/dgd-usage.txtSigh!!!!!!!! I thought it must be very easy with lartc. Also, I cannot patch the kernel. It is a live system and the person there will definitely kill me if I even ask him. Payal
Payal Rathod wrote:> On Thu, Feb 09, 2006 at 07:52:32PM +0530, Manish Kathuria wrote: > >>You can try out implementing configuring a load balancing and failover >>system referring to the following documents: >> >>http://www.ssi.bg/~ja/nano.txt >>http://www.ssi.bg/~ja/dgd-usage.txt > > > Sigh!!!!!!!! I thought it must be very easy with lartc. > Also, I cannot patch the kernel. It is a live system and the person > there will definitely kill me if I even ask him. > > Payal > > > . >It is actually easy. The LARTC How To does not take care of failover but load balancing works fine. So if you want just load balancing you can go with it. You can also try out any of the following approaches / scripts: http://yesican.chsoft.biz/lartc/MultihomedLinuxNetworking.html http://www.burnpc.com/website.nsf/all/FE5F4F294F508EB786256E600019BC30 http://www.linux.com.lb/wiki/index.pl?node=Load%20Balancing%20Across%20Multiple%20Links http://www.initzero.it/products/opensource/izbalancing/download/izbalancing http://routeskeeper.sourceforge.net/Routeskeeper/ But nano.txt is probably the best way out. You can get hold of a spare system or a hard disk and move it there after you set it up. -- Manish Kathuria http://www.tuxspace.com/
On Thu, Feb 09, 2006 at 08:37:11PM +0530, Manish Kathuria wrote:> It is actually easy. The LARTC How To does not take care of failover > but load balancing works fine. So if you want just load balancing you > can go with it. You can also try out any of the following approaches / > scripts:Thanks for the links. They will make excellent reading. He has prper lease lines and so I thought it will be a piece of cake to do it in Linux. Guess I have to eat my words ;) With warm regards, -Payal
Payal Rathod wrote:> > Hi, > A friend of mine has 2 lines of 512kbps terminated in two Linux boxes. > He now want to remove those 2 boxes and have some device which will > loadbalance the two ISPs and also have a failover arrangement. But he > has agreed to give me a chance to do it on Linux for my own > satisfication. > Is this easy to do with lartc? How do I go about it exactly? I have > very less time to do it since his whole network will be done for that > time and I cannot afford to play for long time. Is it worth trying it > with lartc for academic sake atleast? > Can someone suggest some easy steps? > With warm regards, > -PayalProbably you are in over your head. Have a look at these and decide for yourself: http://linux-ha.org/ http://www.ssi.bg/~ja/ http://www.geocities.com/mctiew/ffw/dual.htm http://muse.linuxmafia.org/netsane/> p.s. Is lartc.org down?No, it just does not resolve. Check this list from a couple of days ago for the IP but it is dynamic so it may have changed since that posting. -- gypsy
On Thu, Feb 09, 2006 at 08:37:11PM +0530, Manish Kathuria wrote:> Payal Rathod wrote: > >On Thu, Feb 09, 2006 at 07:52:32PM +0530, Manish Kathuria wrote: > > > >>You can try out implementing configuring a load balancing and failover > >>system referring to the following documents: > >> > >>http://www.ssi.bg/~ja/nano.txt > >>http://www.ssi.bg/~ja/dgd-usage.txt > > > > > >Sigh!!!!!!!! I thought it must be very easy with lartc. > >Also, I cannot patch the kernel. It is a live system and the person > >there will definitely kill me if I even ask him.I made a script that uses a simple conf file and allows quite a lot of work to be done in minutes. You can give it a chance even thought I guess you need a basic knowledge of what you are doing (eg: what ''ip rule'' does): http://www.tksq.org/iprt2 There is also a man page with some examples I don''t even know if other such script exists, so I''m not pretending this is any better that others. It is just wat fitted to my need. A nice option is to test links using tables to force packets to choose one particular link. In a way this allows for an easy script that tests the link/route (without a kernel patch) and takes decision in case the link is down. To achieve thi I use mangle feature (OUTPUT) + ip rule fwmark. I wrote to this list some days ago on this purpouse, becouse kernel does not always seem to understand wich ip should attach to the packets (this is my compehension, at least ;-). sandro *:-) -- Sandro Dentella *:-) e-mail: sandro@e-den.it http://www.tksql.org TkSQL Home page - My GPL work
On Saturday 11 February 2006 04:08, Sandro Dentella wrote: <snip>> I made a script that uses a simple conf file and allows quite a lot of work > to be done in minutes. You can give it a chance even thought I guess you > need a basic knowledge of what you are doing (eg: what ''ip rule'' does): > http://www.tksq.org/iprt2$ host www.tksq.org www.tksq.org does not exist, try again -- Jason Boxman http://edseek.com/ - Linux and FOSS stuff
On Sat, Feb 11, 2006 at 01:11:35PM -0500, Jason Boxman wrote:> On Saturday 11 February 2006 04:08, Sandro Dentella wrote: > <snip> > > I made a script that uses a simple conf file and allows quite a lot of work > > to be done in minutes. You can give it a chance even thought I guess you > > need a basic knowledge of what you are doing (eg: what ''ip rule'' does): > > http://www.tksq.org/iprt2 > > $ host www.tksq.org > www.tksq.org does not exist, try againSorry, tksql: http://www.tksql.org/iprt2 *:-)