From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vitalie Cherpec Subject: Re: Gateway Switch script Date: Thu, 28 Aug 2003 15:49:52 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <3F4DFA70.40908@funlabs.com> References: <1062066265.19990.19.camel@krishna.softprosys.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1062066265.19990.19.camel@krishna.softprosys.com> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Murali Potla Cc: linux-admin > > >Does any body has a script to automatically switch the default gateway >between two IPs. ? >I have two ISP connections. I want to switch between them when one is >down > > You can set up your default route to be a multipath route. Then you could use both connections simultaneously and continue to use the other one if one is down. There is no need to switch default gateway with a script. Your kernel will figure out when to stop using the dead route and how to do NAT. Check these urls: http://lartc.org/howto/lartc.rpdb.multiple-links.html http://www.ssi.bg/~ja/#routes http://www.ssi.bg/~ja/nano.txt Vitalie