WAN connectivity loss after modem was powered off

Started by scream, August 31, 2023, 01:50:47 PM

Previous topic - Next topic
Hi

The Setup:

OPNSense (VM) -> ESX Host -> Switch (Cisco) -> XGS-PON Bridge (Nokia) -> WAN FTTH

Everything here is powered by UPS.

Problem:

As of some re-wireing stuff I've disconnected my XGS-PON Bridge Power & Fiber. I've replaced it and then reconnected it again.
After re-wireing was finished I had no WAN connectivity at all. So I logged in to my opnsense FW to check whats happened.
I saw, that the WAN interface was stuck without IPv4 address with just the IPv6 address assigned.
But no connectivity at all. So I opend "Interfaces -> Overview -> WAN" and klicked "Release/Renew". After that everything was working again.

I assume that the problem is, as the WAN link never went really down in the view of opnsense. As it runs as a VM, the NIC was never disconnected. So may it never really noticed that the link was down and a new DHCP request is needed.

Any Idea how this could be solved propperly?

You could turn on gateway monitoring under System:Gateways:Single and add a "Monitor IP" with an external IP.  I believe after it detects an outage it will automatically attempt a renew after it's restored.
OPNsense 24.7.7 running on:
Dell Optiplex 3050
Intel I5-7600 @ 3.5Ghz (4 Cores)
Intel I350-T4 Nic
8G DDR4
256G SSD

Thanks for the hint I will try and repport back. I set it to 8.8.8.8. Would be nice if there is an option to set multiple external Monitor IPs and just do something when all of them are down. Otherwise a service outage can impact your internet connectivity as well.