ADSL dies, how to restart it automatically?
I am using SuSE 10 and have set-up PPPoE to start up automatically. It connects fine, but when the connection get lost, it does not re-connect anymore. How can I let it re-connect automatically? bye Ronald Wiplinger
On Sunday 21 May 2006 01:44, Ronald Wiplinger wrote:
I am using SuSE 10 and have set-up PPPoE to start up automatically. It connects fine, but when the connection get lost, it does not re-connect anymore.
How can I let it re-connect automatically?
Here is a basic script that tests for a disconnection and if down restarts PPPoE. Just add an entry to cron as follows. It checks the PPPoE status every 3 minutes #min hr day month DOW 4-59/3 * * * * /usr/local/bin/PPPoE.sh 2>&1 /dev/null ---------------------------------- PPPoE.sh --------------------------- #!/bin/sh # # Script to check if PPPoE (dsl0) is disconnected & try reconnecting # Graham Smith - 01/02/2004 # # set -x # Checks the status of device dsl0 for disconnection result=$(/usr/bin/cinternet -i dsl0 -s | /usr/bin/grep disconnect) if [ -n "$result" ] then /usr/bin/cinternet -i dsl0 -A #Start the interface. sleep 10 fi --------------------------------------- EOF ---------------------------------- -- Regards, Graham Smith
Ronald Wiplinger wrote:
I am using SuSE 10 and have set-up PPPoE to start up automatically. It connects fine, but when the connection get lost, it does not re-connect anymore.
How can I let it re-connect automatically? Yes, of course...
I'm using pppoe on SuSE9.3 You should set the 'Idle Time-Out' option to 0 (Zero) You have check the 'Dial on Demand' option. You Should also leave the 'Always Ask Password' option deactivated. All this is done when you set up your DSL connection via the Yast->Network Devices->DSL. If you do not use Yast set your provider options ( /etc/sysconfig/network/providers/provider0 ) to: ASKPASSWORD='no' DEMAND='yes' IDLETIME='0'
bye
Ronald Wiplinger
-- Rui Santos http://www.ruisantos.com/
participants (3)
-
Graham Smith
-
Ronald Wiplinger
-
Rui Santos