This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to script PPPOE reconnect

Hello,

I'm looking for a possibility to script a PPPOE reconnect from CLI - eth0 down and up doesn't do the trick - any chance for doing this?

Cheers!


This thread was automatically locked due to age.
  • Please be a bit more specific as to why? What is wrong with the provided functions?

    Ian[[[:)]]][[[:)]]][[[:)]]]
  • Oh there is probably nothing wrong with the provided functions, maybe i just didn't find the one i need yet [:)]

    What i want to do is to have the possibility to force a PPPOE reconnect from the command line instead of opening a browser, log in and click on Interfaces&Routing, click on Interfaces and then on reconnect. This takes about one minute to do while something like ifconfig eth0 down && ifconfig eth0 up ist done in a second [;)] I'm working quite often on cli so I am kinda used to do things like that on there.

    Just curious if it is possible.
  • Thats easy. As SU simply type

    killall pppd-pppoe


    It reconnects automatically one or two seconds later.

    cu,
      Dino

    EDIT: Just open the pppoe live log and you can see the process when you enter the command :-)
  • Cheers mate! That was what i was looking for [:)]
    Actually a "sudo killall -2 pppd-pppoe" (SIGINT) does it also.