Results 1 to 7 of 7

Thread: Cron reset to PPPoE connection

  1. #1

    Cron reset to PPPoE connection

    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,

  2. #2
    you can disconnect pppoe with:
    Code:
    killall -1 pppd
    and connect it back again with something like this:
    Code:
    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:
    Code:
    ps

  3. #3
    Thanks for your reply. I'll make a simple batch script with those lines and load it up on crontab

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    Please note: starting with 1.9.2.7-3 firmware pppoecd no longer used. If you need simple reconnect - just execute
    Code:
    killall -1 pppd
    This way it disconnects and then reconnects after 30 seconds.

  5. #5
    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.

  6. #6
    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

  7. #7

Similar Threads

  1. Easy-to use cron-system.
    By macsat in forum WL-500g/WL-500gx Tutorials
    Replies: 3
    Last Post: 29-05-2007, 21:18
  2. No PPPoE connection with WL-500gx
    By Hannes123 in forum WL-500g Q&A
    Replies: 9
    Last Post: 29-05-2005, 16:26

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •