My ISP provides a dynamic IP with a DHCP lease that expires roughly 24 hours after the last reboot. When it expires, PPPoE renegotiation sometimes takes too long and I end up rebooting the router or SSH'ing in to clear the session.
This scheduler forces a clean reconnect at a fixed time so the renewal happens on my terms.
configure
set system task-scheduler task reconnect-pppoe crontab-spec "0 6 * * *"
set system task-scheduler task reconnect-pppoe executable path "/opt/vyatta/bin/vyatta-op-cmd-wrapper"
set system task-scheduler task reconnect-pppoe executable arguments "clear interfaces connection pppoe0"
commit
save
exit- Runs daily at 06:00.
- Clears the
pppoe0session using the VyOS wrapper (executes shell commands without separate scripts). - Forces a fresh PPPoE negotiation.
Modify 0 6 * * * cron expression as needed (cron generator):
0 4 * * *— 4 AM daily0 */12 * * *— Every 12 hours0 3 * * 0— Sundays at 3 AM
Tags: EdgeRouter, PPPoE, dynamic IP, ISP lease, DHCP renewal, cron, task scheduler, WAN reset, network automation