Schedule disconnect of pppoe connection

CDS
CDS Posts: 16  Freshman Member
First Comment Fourth Anniversary
edited April 2021 in Security
Hello all!

One question: Here in Germany most DSL connections with dynamic IP are doing a dis- and reconnect from provider side every 24 hours. 
To prevent that this happens during normal day-time several devices allow to schedule this on client side - this prevents an additional disconnect on provider side.

Is there a way to realize this in an USG-210 - so I can configure that like every day at 2am there is a disconnect and a re-connect of the PPPOE connection done?

Regards

Carsten

Accepted Solution

  • zyman2008
    zyman2008 Posts: 223  Master Member
    25 Answers First Comment Friend Collector Seventh Anniversary
    Answer ✓
    Hi @CDS,
    Here the steps,
    1.Edit a CLI script text file with filename "disconnect_ppp.zysh" and have the following command. 
    interface disconnect wan1_ppp

    Note: The ppp interface name is depends on your settings. In this example, the ppp interface is "wan1_ppp".

    2.Go to GUI, MAINTENANCE > Filter Manager > Shell Script, select and upload the file.


    3. Login to USG via SSH and type the following command.
    Router# configure terminal
    Router(config)# schedule-run 1 disconnect_ppp.zysh daily 02:00
    Router(config)# write

All Replies

  • zyman2008
    zyman2008 Posts: 223  Master Member
    25 Answers First Comment Friend Collector Seventh Anniversary
    Answer ✓
    Hi @CDS,
    Here the steps,
    1.Edit a CLI script text file with filename "disconnect_ppp.zysh" and have the following command. 
    interface disconnect wan1_ppp

    Note: The ppp interface name is depends on your settings. In this example, the ppp interface is "wan1_ppp".

    2.Go to GUI, MAINTENANCE > Filter Manager > Shell Script, select and upload the file.


    3. Login to USG via SSH and type the following command.
    Router# configure terminal
    Router(config)# schedule-run 1 disconnect_ppp.zysh daily 02:00
    Router(config)# write

  • zyman2008 said:
    Hi @CDS,
    Here the steps,
    1.Edit a CLI script text file with filename "disconnect_ppp.zysh" and have the following command. 
    interface disconnect wan1_ppp

    Note: The ppp interface name is depends on your settings. In this example, the ppp interface is "wan1_ppp".

    2.Go to GUI, MAINTENANCE > Filter Manager > Shell Script, select and upload the file.


    3. Login to USG via SSH and type the following command.
    Router# configure terminal
    Router(config)# schedule-run 1 disconnect_ppp.zysh daily 02:00
    Router(config)# write

    After disconnect. When reconnect?
  • zyman2008
    zyman2008 Posts: 223  Master Member
    25 Answers First Comment Friend Collector Seventh Anniversary
    Hi @rungsant,
    Depends on the connectivity setting of the PPPoE wan interface.
    Nailed-Up: re-connection right away after disconnect.
    Dial-on-Demand: re-connection by traffic trigger.

Security Highlight