Hi - am trying to implement a failover script.. just a basic “if the primary gateway goes down then the secondary one will automatically take over until the primary gateway is operable again”
Ok nevermind it works anyway Just one question though.. because my ADSL modem assigns me a private IP address (10.1.1.2) if my ADSL goes down but my modem doesnt, it will still ping through to the modem ok - but no internet. Is there anything I can do about this? Any script to ping a different address?
I had a similiar problem, but overcame it with netwatch. Set up two instances to check different sites, like yahoo and google. These are just example sites.
You then force all icmp traffic to google over isp1 and yahoo traffic over isp2. Or just block icmp to yahoo over isp et vica verca. That way you know which one is down.
I then had netwatch just change the distance of the default gateway for failover.