auto-switch LAN to dialup?

G

Gretch

Is there some mechanism by which we could test, perhaps every minute, for
Internet connectivity via the LAN interface (e.g., ping a remote
nameserver), and if that has failed, initiate an already-named dialup
connection?

We have a satellite connection which occasionally "goes down" due to severe
weather on either end, and need to re-establish an Internet connection via
dialup while unattended for a single w2000 machine as necessary.

Thank you.
 
S

Steve Parry [MVP]

In
Gretch said:
Is there some mechanism by which we could test, perhaps every minute,
for Internet connectivity via the LAN interface (e.g., ping a remote
nameserver), and if that has failed, initiate an already-named dialup
connection?

We have a satellite connection which occasionally "goes down" due to
severe weather on either end, and need to re-establish an Internet
connection via dialup while unattended for a single w2000 machine as
necessary.

Thank you

Properties in Internet Explorer > Connections > select "Dial whenever a
network connection is not present" ... and set the required dial up as
default
 
G

Gretch

In
Steve Parry said:
Properties in Internet Explorer > Connections > select "Dial whenever
a network connection is not present" ... and set the required dial up
as default

Sorry, but that won't work, as proven last evening when weather interfered
with the satellite reception on the other end. The LAN connection is fine,
but the route to the destination is down 3 hops away. Even though "Dial
whenever a network connection is not present" is checked in IE, the
real-time application of primary concern has nothing to do with IE, so a
manual dialup became necessary. We need to have an automated method for
dealing with this issue, please

Would someone be willing to suggest a .bat script that could ping the remote
nameserver, and if unsuccessful, initiate the specified dialup connection? I
could use the Task Scheduler to run the .bat file once every minute or so.

Thank you.
 
G

Gretch

In
Gretch said:
Sorry, but that won't work, as proven last evening when weather
interfered with the satellite reception on the other end. The LAN
connection is fine, but the route to the destination is down 3 hops
away. Even though "Dial whenever a network connection is not present"
is checked in IE, the real-time application of primary concern has
nothing to do with IE, so a manual dialup became necessary. We need
to have an automated method for dealing with this issue, please

Would someone be willing to suggest a .bat script that could ping the
remote nameserver, and if unsuccessful, initiate the specified dialup
connection? I could use the Task Scheduler to run the .bat file once
every minute or so.

Thank you.

The task is extremely simple in Unix/Linux using crontab (the following is
all on one line):

* * * * * ( if ! ( ping -c1 -w20 `awk '{print $2}' /etc/resolv.conf |
tail -1` ); then killall wvdial; sleep 3; /usr/bin/wvdial starband; fi ) >
/dev/null 2>&1

I assume that such a thing can be done by running a .bat file in the Task
Scheduler every minute? I'm not proficient in the batch commands and hope
that someone who is could assist me, please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top