[ale] Keeping pppoe alive
Michael Trausch
fd0man at gmail.com
Sun Feb 20 16:00:58 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
Jim Seymour wrote:
> Hi All,
>
> I have seen this issue in here before but could not locate it. I am
> using Speedfactory for my dsl service. Every now and then I will lose my
> connection. Since this machine is the internet router for other boxes I
> am looking for a way to restart the connection when it dies without
> intervention from me or anyone else. From what I can tell when this
> happens the pppd daemon remains alive. Usually I will have to take ppp0
> and the ethernet adapter down and bring them back up manually. Sometimes
> I even have to resort to a reboot :-( This is a Debian Sarge box using
> Roaring Penguin for the pppoe connection. Any ideas?
>
> Thanks,
>
> Jim Seymour
Should be common sense, but I forgot to mention it anyway: It'd be
a good idea to have it automagically run every one to five minutes
using 'cron', depending on how often you want the thing to check.
The script should abort execution upon the successful ping of any of
the hosts.
If a ping isn't good enough (or, for some freakish reason, ping
works on the gw, but not anything else) then maybe ping the gateway
first, and still go on to ping 3 more hosts, and if all is well with
the first one outside of the gateway, abort.
If you want to test other things, perhaps pipe something into Telnet
on a random server on port 80 and check if it got a result. Doesn't
really make a difference if the result is valid... but I assume you
should be able to pipe into/out of Telnet in traditional Unix method...
- Mike
- --
Michael B. Trausch <fd0man at gmail.com>
Blog/Website: http://fd0man.chadeux.net/ AIM: MB Trausch
+1-(678)-522-7934 Yahoo IM: fd0man
===================================================================
Need computer or Linux work in Atlanta? http://www.mbtcis.com/
- -------------------------------------------------------------------
Job leads, anyone? Resume: http://fd0man.chadeux.net/?page=resume
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1-nr1 (Windows 2000)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCGPj4PXInbkqM7nwRA2GJAJ9ggB0jlLyxxKdxEBzz8oN/pdfKtwCfS0BQ
WrhRK1AhWx9JBRl3NZzeyQA=
=bxa4
-----END PGP SIGNATURE-----
More information about the Ale
mailing list