On Tue, Oct 05, 2010 at 10:33:08AM +1100, gonzo01 wrote: > I am aware that my system can be set to auto-ping my connection on at a > predetermined interval which is fine for just ensuring that my > connection stays alive, and the modem can be rebooted via a script if > the ping fails. However, if the system is working fine and downloading > at max speed, the chances are that the ping will fail due to lack of > band-width, which would then cause an unnecessary reboot of the modem.
You could increase the timeout interval in the ping program; you could send several packets (and only decide the link is down if no replies are received); you could combine ping and counting the received bytes on the interface (if no responses received and no bytes received on the interface). Also PPP itself (assuming you are using ppp) can check that the other end of the connection is alive - and if not, will exit which would remove the default route. Nick. -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
