How to set an alternate Default Gateway

One of our clients has 2 sites linked via leased line. Each site also has a router and gateway.

How can i set it so that if one gateway fails to try the other?

both gateways are on the same IP range.

eg.
site 1 router 192.168.60.5
site 2 router 192.168.60.6
LVL 4
Neal58Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Dhiraj MuthaConnect With a Mentor Level DCommented:
Hope the attached screenshot helps.
Gateways.png
0
 
warddhoogheConnect With a Mentor Commented:
lowest metric will be used first, dont use the same for both
0
 
Neal58Author Commented:
can i set any amount as the metric? so set site 1 as metric of 1, and site 2 as metric of 2 to have preferred site 1?

if this is the case then will probably do it in multiples of 10 or 100.
0
Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

 
Dhiraj MuthaLevel DCommented:
No, metric is used to define which gateway will have priority.
0
 
Neal58Author Commented:
so the lower the metric the higher the priority? or are there defined amounts to use?
0
 
Ernie BeekConnect With a Mentor ExpertCommented:
Make sure that the secondary DG has a higher metric than the primary DG (for example, primary=1 and secondary =2).
0
 
Ernie BeekExpertCommented:
Hm, should have refreshed the page before commenting........

But indeed, the lower the metric the higher the priority. You can see the metric as an administrative distance.
0
 
Neal58Author Commented:
one last check, this will over-ride any setting set on the previous IP settings page? so for example .5 is set as the static default gateway, but this will be over-ridden by the higher cost option if it needs to be?

also would the router need to be physically disconnected for the higher cost gateway to take effect?
0
 
Ernie BeekExpertCommented:
It shouldn't over ride/write it, just add. If I remember correct, the address must be unreachable. So if the internet connection is gone but the router (and the internal ip) is still up you must disconnect it or shutdown the interface.
0
 
Neal58Author Commented:
OK, I had assumed as much. I guess it's too much to ask that there is a way for it to check that the gateway connection is active!
0
 
Ernie BeekExpertCommented:
You might want to look at a hardware solution otherwise, like: http://www.cisco.com/en/US/products/ps9925/index.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.