Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
WAN_DHCP sometimes does not get IP
« previous
next »
Print
Pages: [
1
]
Author
Topic: WAN_DHCP sometimes does not get IP (Read 639 times)
AG_2023
Newbie
Posts: 11
Karma: 1
WAN_DHCP sometimes does not get IP
«
on:
March 23, 2024, 02:57:57 am »
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...
Logged
jonm
Jr. Member
Posts: 51
Karma: 2
Re: WAN_DHCP sometimes does not get IP
«
Reply #1 on:
March 23, 2024, 01:40:46 pm »
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.
Logged
jonm
Jr. Member
Posts: 51
Karma: 2
Re: WAN_DHCP sometimes does not get IP
«
Reply #2 on:
March 23, 2024, 01:41:54 pm »
Found it - have a look here
https://forum.opnsense.org/index.php?topic=13544.msg67170#msg67170
Logged
AG_2023
Newbie
Posts: 11
Karma: 1
Re: WAN_DHCP sometimes does not get IP
«
Reply #3 on:
March 23, 2024, 04:53:55 pm »
Thank you. This is exactly what I was looking for.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.1 Legacy Series
»
WAN_DHCP sometimes does not get IP