Guest Gretch Posted August 31, 2007 Posted August 31, 2007 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.
Guest Steve Parry [MVP] Posted September 2, 2007 Posted September 2, 2007 Re: auto-switch LAN to dialup? In news:5jr3abFtbn7U1@mid.individual.net, Gretch <gretchen@invalid.corn> wibbled > 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 -- Steve Parry MCP MVP http://www.gwynfryn.co.uk
Guest Gretch Posted September 11, 2007 Posted September 11, 2007 Re: auto-switch LAN to dialup? In news:epSG81U7HHA.464@TK2MSFTNGP02.phx.gbl, Steve Parry [MVP] <k100rs_1990@nospam.hotmail.com> typed: >> 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. > > 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.
Guest Gretch Posted September 19, 2007 Posted September 19, 2007 Re: auto-switch LAN to dialup? In news:5kocasF4ncqeU1@mid.individual.net, Gretch <gretchen@invalid.corn> wrote: >> 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. 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.
Recommended Posts