PDA

Bekijk de volledige versie : Cron reset to PPPoE connection



nOBeLium
02-02-2005, 23:12
Hi,

I'd like to know if it's possible by a bash script to reset my ADSL connection everyday at 1.01am, because my ISP has no data limit in connections that start at 1.00am. I could run in cron, but I don't know the internal router structure, in questions of PPPoE.

Thanks for your time,

xection
03-02-2005, 00:03
you can disconnect pppoe with:

killall -1 pppd
and connect it back again with something like this:

pppoecd eth1 -u <username> -p <password> -o
this is tested on firmware v1.8.1.7-3.

you can actually see the command line which was used to make a pppoe connection by just looking at the list of active processes:

ps

nOBeLium
03-02-2005, 14:15
Thanks for your reply. I'll make a simple batch script with those lines and load it up on crontab :)

Oleg
03-02-2005, 17:34
Please note: starting with 1.9.2.7-3 firmware pppoecd no longer used. If you need simple reconnect - just execute


killall -1 pppd

This way it disconnects and then reconnects after 30 seconds.

nOBeLium
03-02-2005, 22:55
Ah, yes! I noticed that actually. Wasn't sure if it was a request sent from the adsl modem (strange, but could happen) or a firmware feature.

Thanks Oleg.

Elron
24-05-2005, 00:52
hi,
can somone write an HowTo for reset PPPoE connection?

if possible step by step

I tried it with some informatition from this forum and google but with no succes. (linux noob)
it woud be nice if this feature could be added to webinterface :)

barsju
24-05-2005, 08:28
See updated how-to: http://wl500g.info/showthread.php?t=1058