1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Automatic reboot when WAN down L2TP

Discussion in 'Tomato Firmware' started by king2000, Apr 3, 2010.

  1. king2000

    king2000 LI Guru Member

    I'm using a WRT54GL router for quite a long time now, latest firmware Tomato 1.27, everything works perfect, however, I have sometimes problems with the cable company, after a stop with cable services, the router just can not connect to my ISP using the regular L2TP protocol, it seems that it can not find the L2TP server. Only a router reboot solve the problem and than everything get back to usual.
    I was wondering if I can create a script to reboot the router after a certain period of time if the WAN link is down, or better yet, restart the L2TP service which might help reconnecting.

    Thanks in advance
  2. mstombs

    mstombs Network Guru Member

  3. king2000

    king2000 LI Guru Member

    Thanks, but because I'm not familier with the scripts idea, in the post mentioned there are some scripts which is not that understood, If you have any idea for a script that would be great. I just want to restart the WAN service if it is down, for example every 2 minutes checking.

  4. teddy_bear

    teddy_bear Network Guru Member

    Before you do any scripting, I'd recommend you to try the latest build 45 of my Tomato mod from this thread (use no-USB build for WRT54GL).

    It includes updated L2TP client software which may solve your problem without additional scripting. Even if it doesn't, at a minimum it should noticeably improve the throughput of L2TP connection since it uses kernel driver for L2TP.
  5. king2000

    king2000 LI Guru Member

    thanks a lot, will do. I'll let you know if it works better, because for the last month I have had several disconnects from the ISP and without a restart it did not reconnect.
  6. teddy_bear

    teddy_bear Network Guru Member

    Can you simulate this behavior by taking the WAN cable out of the router, and then plugging it back on in a few minutes? Does the router restore connection after that?
  7. king2000

    king2000 LI Guru Member

    Well I think this is working fine now. Until now when the WAN cable was out like the fact the cable modem was down for some reason the L2TP connection was not connecting, now with the latest build installed which also allows for a DNS L2TP gateway it would seem to be quite fine without restarting the router. I'll keep posting if there's any change.
    Thanks a lot for the help.

Share This Page