WAN_DHCP sometimes does not get IP

Started by AG_2023, March 23, 2024, 02:57:57 AM

Previous topic - Next topic
Hi,

This issue has been happening ever since I started using Opnsense about a year ago. Sometimes, when I restart the Opnsense, it fails to get IP address from Verizon FiOS modem. It does not happen every time, but say one out of five. When that happens, I just restart Opnsense again and it gets the IP address. Till WAN_DHCP gets an IP address, all devices are offline so it is a bit of incovenience.

I was wondering if it is possible to write a script which can check for WAN_DHCP IP address. If it does not get an IP address after restart, then automatically restart Opnsense once again.

Thanks...

There's a script that I think was posted here somewhere which will do what you want, called something like ping_checker maybe? I will see if I can find it.


Thank you. This is exactly what I was looking for.