LinuxQuestions.org
Visit Jeremy's Blog.
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, 02: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, 05:11 AM   #2
pave
Member
 
Registered: Oct 2004
Posts: 42

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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-22-2005 12:17 AM
gateway, script feedback ... phoeniXflame Linux - Networking 1 10-06-2003 08:45 PM
how do I add script to set default gateway on boot for eth1 abg Linux - Networking 3 10-01-2003 06:22 PM
Firewall\Gateway Script ASP Linux - Security 5 09-22-2003 11:15 PM
E-Mail notification to users via SMS (gateway script ok, but notification script?!?) Riku2015 Linux - Networking 10 03-08-2002 11:16 AM

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

All times are GMT -5. The time now is 06:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration