LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-10-2005, 01:55 AM   #1
neos
LQ Newbie
 
Registered: Aug 2003
Posts: 6

Rep: Reputation: 0
Gateway shift Script


Hi all
I need help.
I have 1 Linux box with 2 IPs bind on single interface.
suppose ips are 1.1.1.1 and 2.2.2.2
Default Gateway is 1.1.1.100
so if 1.1.1.100 gateway goes down i shift default gateway to 2.2.2.100
Now i need a script that sence that if gateway 1.1.1.100 down (not reply after 2 min then it will automatically shift to 2.2.2.100.

so plz help me out.
Is anyone have any idea how to do that.

THnaks In AdVance
 
Old 03-10-2005, 04:11 AM   #2
pave
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 16
Linux Advanced Router gives you the option to create multiple routing tables. You need to compile it into your kernel (if it's not yet compiled). You can then create two routing tables and each will have different gateway. Multiple gateways are usually used to load-balance between both connections, but they can be used also in your case. Google a little and you will find appropriate script.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux gateway - It doesn't allow run logon script of all clients to win2k3 b:z Linux - Networking 1 04-21-2005 11:17 PM
gateway, script feedback ... phoeniXflame Linux - Networking 1 10-06-2003 07:45 PM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 05:22 PM
Firewall\Gateway Script ASP Linux - Security 5 09-22-2003 10:15 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration