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

Script PPPoE login changes/reconnects

Discussion in 'Tomato Firmware' started by Toonz, Mar 18, 2009.

  1. Toonz

    Toonz Network Guru Member

    Hey Everyone,

    So I'm about to get a new internet connection at home. Essentially on the new connection, I can have accounts with multiple ISP's, but only 1 PPPoE connection at a time.

    What I'd love is to have is this:
    7am
    - Disconnect current PPPoE session
    - Change PPPoE user/pass to ISP #1 settings
    - Connect to ISP #1
    6pm
    - Disconnect PPPoE session
    - Change PPPoE user/pass to ISP #2 settings
    - Connect to ISP #1

    The reason??
    ISP #1 has off-peak bandwidth 6am-6pm.
    ISP #2 has off-peak bandwidth 12pm-7am.

    So I'd like to connect to ISP #1 only during their off-peak, then connect to ISP #2 for the remainder of the day.

    Is this possible using Tomato?
     
  2. bogderpirat

    bogderpirat Network Guru Member

    well, what you would do is go to your webif's /admin-sched.asp and enable the custom 1/custom 2 scheduling settings. set them to 7am and 6pm, then use these commands for the 7am script:
    Code:
    service wan stop
    nvram set "pppoe_username=pppoe_username_of_your_ISP_#1"
    nvram set "pppoe_passwd=pppoe_password_of_your_ISP_#1"
    service wan restart
    and these for your 6pm script, if the last instruction was a typo and actually meant "Connect to ISP #2":
    Code:
    service wan stop
    nvram set "pppoe_username=pppoe_username_of_your_ISP_#2"
    nvram set "pppoe_passwd=pppoe_password_of_your_ISP_#2"
    service wan restart
    this is untested, but should work just fine. if it does not, try taking the "oe" out of "pppoe" in the nvram set commands, i'm not sure which of ppp_* or pppoe_* the pppoecd command uses to dial in.
     
  3. Toonz

    Toonz Network Guru Member

    Oh that's fantastic! I never realised there was a Scheduler in the firmware!

    I'll check this out. Thanks heaps.
     

Share This Page