Sponsored Content
Full Discussion: IP failover needed
Special Forums IP Networking IP failover needed Post 302431323 by mph on Monday 21st of June 2010 02:03:11 PM
Old 06-21-2010
I'm not sure if this will work under Linux. I know Cisco routers will do it. Your default route should look something like this.
Code:
Destination     Gateway              Genmask         Flags Metric Ref    Use Iface
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    5      0        0 eth0

Just put the same route in with the secondary NIC as the gateway with a higher metric.

For example a default with failover would look something like this.
Code:
route add default gw xxx.xxx.xxx.xxx dev eth1 metric 100

You'll end up with something like this,
Code:
route -n
Destination     Gateway              Genmask         Flags Metric Ref    Use Iface
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    5      0        0 eth0
0.0.0.0         xxx.xxx.xxx.xxx      0.0.0.0         UG    100    0        0 eth1

The route with the higher metric should only kick in if the lower metric is unavailable.

Hope it helps.
 

10 More Discussions You Might Find Interesting

1. Solaris

Interfaces do not failover

Would anyone know why a V440 Solaris 9 machine's interfaces (ce0 and ce1) will not failover? Both interfaces are on the same subnet, but different IPs. I can pull the plug on once interface (ce0) and ce1 will be accessible. I can reverse it and pull ce1, and ce0 will NOT be accessible. ... (5 Replies)
Discussion started by: StorageGuy
5 Replies

2. UNIX for Advanced & Expert Users

directories failover

Hi, I have 3 directories (/1 /2 and /3) with same contents and want to achieve fail over among them. The Solution i thought of: 1. link /data to /1 (and provide users with /data to access) 2. CRON a script (to run every minute) to verify if /1 exist or not, if it does not exist (or its... (3 Replies)
Discussion started by: prvnrk
3 Replies

3. AIX

failover on 4.5 hacmp

Hi All, How do I trigger the failover on the second hacmp server? Please give me idea and I will do the rest. Thanks, itik (2 Replies)
Discussion started by: itik
2 Replies

4. Solaris

IPMP failover: Why is it occurring?

The active NIC has been failing back and forth on two of our T2000s. I don't know when the problem originally began, but I can see failovers in the messages.* files. The network guy says the switches are clean (no errors) so I'm left looking at the configuration or any other issue that may be... (5 Replies)
Discussion started by: dangral
5 Replies

5. Solaris

EMC Failover

Hi guys, I'm running vxdmp and powerpath at the same time. Vxdmp for internal disks and powerpath for external. The problem is that, on the failover tests which a fiber cable should be removed, the system cannot recognize the disks. Any hints on how to configure powerpath in order to... (4 Replies)
Discussion started by: glenioborges
4 Replies

6. Solaris

Sun Cluster 3.1 failover

Hi, We have two sun SPARC server in Clustered (Sun Cluster 3.1). For some reason, System 1 failed over to System 2. Where can I find the logs which could tell me the reason for this failover? Thanks (5 Replies)
Discussion started by: Mack1982
5 Replies

7. Gentoo

How to failover the cluster ?

How to failover the cluster ? GNU/Linux By which command, My Linux version 2008 x86_64 x86_64 x86_64 GNU/Linux What are the prerequisites we need to take while failover ? if any Regards (3 Replies)
Discussion started by: sidharthmellam
3 Replies

8. AIX

Etherchannel failover testing

Hi Guys, I am trying to test an etherchannel failover and switchback. I did failover from primary to backup adapter, but now I am not able to switch it back to primary. phcxxxxx:/ > entstat -d ent4 | grep Active Active channel: backup adapter ... (1 Reply)
Discussion started by: snchaudhari2
1 Replies

9. IP Networking

Interface failover in AIX

Hello, Recent we had oracle clusterware issues which happened because one of the interfaces (eth0) went down on the node and we had a public vip defined on that interface(eth0) since that alos went offline and application went down Is there a way that interface failover happens automatically ... (0 Replies)
Discussion started by: Vishal_dba
0 Replies

10. Web Development

Apache Mod_Proxy with failover

I have the following setup in my apache vhost: ProxyPass /abc http://www.newest.com/ ProxyPassReverse /abc http://www.newest.com/ I want to setup a failover approach in which if after a particular timeout say 10secs the load shifts to some other website like Refer.com | The world. The timeout... (0 Replies)
Discussion started by: ankur328
0 Replies
All times are GMT -4. The time now is 02:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy