Watchdog to renew DHCP

Hi all… I’m running Vyos 1.4 as a VM. I have dual WAN failover set up on eth0 and eth1.

There are a couple of scenarios where the WAN IP address that is being passed through from the modems changes, but Vyos is unaware of the change and doesn’t know to look for the new IP address.

Is it possible to create a watchdog script that monitors the state of the connection (possibly using the same health check that wan-load-balancing is using?) and if the connection is reporting as stale, run renew dhcp every 30 seconds until it comes good?

Thanks!

Hi @SCCFIT
We scheduled this feature Static Route Path Monitoring, failover

But now you can try to use WAN load balancing Helth checks.
Something like this:

set load-balancing wan hook '/config/scripts/wan-eth0-change.sh'
set load-balancing wan interface-health eth0 failure-count '5'
set load-balancing wan interface-health eth0 nexthop '10.0.9.1'
set load-balancing wan interface-health eth0 success-count '1'
set load-balancing wan interface-health eth0 test 10 resp-time '5'
set load-balancing wan interface-health eth0 test 10 target '8.8.4.4'
set load-balancing wan interface-health eth0 test 10 ttl-limit '1'
set load-balancing wan interface-health eth0 test 10 type 'ping'

But be careful with NAT. May be you have to use
set load-balancing wan disable-source-nat