ISDN connections

Jason jkenner@mindspring.com
Tue, 28 Nov 2000 12:27:30 -0700


AZ_Pete wrote:
> 
> Hello all,
> 
> We have an ISDN connection that we use for Internet connectivity.  Our ISP
> is USWEST and I have no complaints with them.  We now would like a
> persistent ISDN connection to set up low volume webserver and have found
> that the pricing is prohibitive.  However, talking with my USWEST rep, he
> said that USWEST doesn't care if I redial as soon I'm disconnected due to
> inactivity (around 40 min).  He said that their is a lot of software
> avaibable that can monitor the ISDN connection and the second it goes down
> it will redial the modem.  Since ISDN connects within 2 seconds this would
> be a very good solution.
> However, I have no idea what to look for.  The rep counldn't give me any
> informatioin, other than he knows Microsoft makes software to handle this
> situation.  We have Linux servers and I would prefer a Linux solution, but
> if I have to set up a Win box to simply monitor the ISDN connection, I'll do
> it.
> Does anyone have any input as to the name of any software that can monitor
> an ISDN connection and reconnect when the connection is broken.  Any ideas
> would be greatly appreciated.

Try this. It requires a little config, but should do the trick...

--
#/bin/bash
#
# Generic Reconnect    
# License terms are those of the GNU General Public License (copyleft)
# Developed by Jason Kennerly Nov 28, 2000
#
THRESHHOLD=6
DELAY=10
RECONNECT_TIME=30
PINGHOST=205.254.224.2 # internic.net
#
#
#
DROPPED=0
while LOOP=FOREVER
do
        sleep $DELAY
        if (ping -c 1 $PINGHOST | grep -q "bytes from" ) then
                DROPPED=0
        else
                echo host didnt respond to ping
                DROPPED=`echo $DROPPED+1|bc`
        fi
        if (test $DROPPED = $THRESHHOLD) then
                echo Redialing...
                #your redial commands here (ppp-off ; sleep 5 ; ppp-go
?)
                DROPPED=0
                sleep $RECONNECT_TIME
        fi
done

-- 
jkenner @ mindspring . com__
I Support Linux:           _> _  _ |_  _  _     _|
Working Together To       <__(_||_)| )| `(_|(_)(_|
To Build A Better Future.       |                   <s>