neat I was just wondering what to do when my cable connection dies. I was hoping for a script that with do an ifconfig and if no ppp0 is found automatically redial.
Then I would make it run every x minutes (cron?) Are the options essentially the same for cable as for adsl?? Will your fixes help me or is my idea a better way? Thanks Aaron On ש', 2004-05-15 at 22:08, Muli Ben-Yehuda wrote: > On Sat, May 15, 2004 at 09:14:13PM +0200, Hetz Ben Hamo wrote: > > > I have a situation which is well known to people - your machine is > > connected (PPTP) to the net, but sometimes there's disconnection between > > your home and ISP, but the PPP0 interface stays up, which means you'll > > need to kill it and redial.. > > Add this to /etc/ppp/options: > > # Without the next 2 lines, pppd won't detect loss of connection, > # because pppd regularely uses modem DTR line to detect connection drop, > # and pptp doesn't have one. > lcp-echo-interval 60 > lcp-echo-failure 2 > > > I have a small script which deals with the situation where the PPP0 > > interface is down, then it tries to connect until it connects, but my > > script doesn't handle the situation above.. > > > > So, I was thinking - has anyone written such a script? (for PPTP > > connection, not PPPOE) and willing to share it please? > > I used to use a hacked up version of > http://www.hageltech.com/download/adsl-connect-0.1.tar.gz, but nowdays > debian takes care of it automatically. > > Cheers, > Muli ================================================================To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]