Reconnecting PPPoE through SSH

Discussion in 'Tomato Firmware' started by Pelias, May 25, 2007.

  1. Pelias

    Pelias LI Guru Member

    basically all I want is a simple windows script which when executed, will disconnect and reconnect my WRT54 PPPoE connection.

    Seems simple, but with tomato it looks pretty much impossible.

    Logging into router works, but that's as far as it goes.
    # ifdown ppp0
    ifdown: /etc/network/interfaces: No such file or directory

    Apparently tomato stores interface definitions in nvram instead of file, which screws everything.

    On the other hand, ifconfig ppp0 down seems to work (kills connection just fine), however ifconfig ppp0 up fails to properly initialize it:/

    Openlinksys failed completely, broadbandhelp still struggles with task. You are my only help.
  2. Odin-60

    Odin-60 LI Guru Member

    On the ssh command line enter the following:

    killall -hup pppoecd

    PPPoE will not only disconnect but also reconnect
    automatically, provided that "keep alive" has been
  3. gingernut

    gingernut LI Guru Member

    This script changes your public ip when pressing the SES button. Just have to copy it to Administration --> Buttons / LED --> Custom Script and choose
    When Pushed for X Seconds.....Run Custom Script

    service wan restart
  4. Odin-60

    Odin-60 LI Guru Member

    This is dangerous, because you may end up with multiple
    logical WAN interfaces. Use "killall -hup pppoecd" instead.
  5. Pelias

    Pelias LI Guru Member

    Thanks a lot.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice