Solved

dynamic gateway switching

Posted on 2004-09-13
3
314 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
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Bing CISM / CISSP earned 500 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:Bing CISM / CISSP
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
DHCP via Multiple VLANS ? 3 61
Windows 10 nic replacing assing ip address 6 39
Domain Share problems 5 40
sync conflicts 1 22
Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now