?
Solved

dynamic gateway switching

Posted on 2004-09-13
3
Medium Priority
?
385 Views
Last Modified: 2013-12-19
Hey, I have 2 subnets 10.0.1.0/24 10.0.2.0/24. Id like to have the ability of switching the gateways (dynamicly) without having to go to the network connections( yes I know all the connections will be dropped and thats fine ) Let me know if anyone is aware of such a utility.

Regards,
Tom
0
Comment
Question by:T0masz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
bbao earned 2000 total points
ID: 12050812
just run the following batch files to dynamically switch your gateway:

1.bat:
route add 0.0.0.0 mask 0.0.0.0 10.0.1.1 metric 1
route add 0.0.0.0 mask 0.0.0.0 10.0.2.1 metric 10

2.bat:
route add 0.0.0.0 mask 0.0.0.0 10.0.2.1 metric 1
route add 0.0.0.0 mask 0.0.0.0 10.0.1.1 metric 10

assume 10.0.1.1 and 10.0.2.1 are the gateways, then 1.bat is for switching to 10.0.1.0/24, 2.bat is for switching to 10.0.2.0/24.

hope it helps,
bbao
0
 

Author Comment

by:T0masz
ID: 12056686
Thats almost exacly what I did, except I had to delete the old routes and add the new ones.

One more question, does setting the metric mean that if the first one is down it will go to the second one?

Thanks
Tom
0
 
LVL 37

Expert Comment

by:bbao
ID: 12060504
> does setting the metric mean that if the first one is down it will go to the second one?
YES. so you may even have more than two gateways.

glad to help,
bbao
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Downtime reduced, data recovered by utilizing an Experts Exchange Business Account Challenge The United States Marine Corps employs more than 200,000 active-duty Marines with operations in four continents, all requiring complex networking system…
Greetings, Experts! First let me state that this website is top notch. I thoroughly enjoy the community that is shared here; those seeking help and those willing to sacrifice their time to help. It is fantastic. I am writing this article at th…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question