K
K
Krovosos2012-09-19 16:08:47
Computer networks
Krovosos, 2012-09-19 16:08:47

How to determine that one gateway has fallen off the Internet and switch to another programmatically (Windows)?

There are two gateways in the network: wire and GPRS. Sometimes the wire "falls off" and then you need to switch to GPRS. If the wire "returned", then you need to go back to it.

Is it possible to solve this problem with a program? Which "knocks" on the Internet through both gateways and somehow determines that the Internet has fallen off (for example, polls 8.8.8.8) and replaces the default gateway with a working gateway.

We believe that the program is running on the same computer (network interface) as the actual application software that surfs the Web.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alukardd, 2012-09-19
@Alukardd

Everything is decided by simple route metrics ... It is put on a smaller wire, more on GPRS and everything works. No more gestures and scripts are required.

F
FIZIK, 2012-09-19
@FIZIK

batch file everything can be implemented

A
avesus, 2012-09-19
@avesus

Try to register the same metrics on Ethernet and on GPRS. It will work stably if the computer does not surf the Internet for other computers on the local network, otherwise Windows automatically interrupts the metrics. The route print command will show real metrics (they do not correspond to reality in the dialogs).
You will need a program, you can cooperate - you yourself need a self-written "balancer", because. I don't want to pay for Kerio, but I just write under Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question