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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dhiraj MuthaLevel DCommented:
Hope the attached screenshot helps.
Gateways.png
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
warddhoogheCommented:
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 BeekExpertCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Networking

From novice to tech pro — start learning today.

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.