Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
gateway marked as "offline" but DHCP client claims to be "up"
« previous
next »
Print
Pages: [
1
]
Author
Topic: gateway marked as "offline" but DHCP client claims to be "up" (Read 5810 times)
daudo
Newbie
Posts: 21
Karma: 4
gateway marked as "offline" but DHCP client claims to be "up"
«
on:
June 15, 2019, 01:50:50 pm »
I've an issue that has bothering me for quite some time, and each time I thought it had been solved by some update, it reappears again. So maybe someone here can shed a little light on my problem.
OPNsense is connected to the internet using a Netgear LB1110 4G LTE Modem, which is configured for bridge mode, so OPNsense gets a routeable, public IP address via DHCP from the ISP.
Now, from time to time OPNsense loses internet connectivity and marks the gateway as "offline" in System->Gateways->Single
At the same time, if I look at Interfaces->Overview->WAN interface, I see that both status and DHCP are "up".
My first idea was an issue with gateway monitoring, and so I checked in System->Gateways->Single, if "Disable Gateway Monitoring" was active, but it was not and I see dpinger up and running. I've also entered a dedicated "Monitor IP", but to no avail.
I can manually "fix" the situation by either releasing or renewing the DHCP connection in Interfaces->Overview->WAN interface, but manual intervention is the last resort.
I've hacked together a simple cronjob checking connectivity every minute and restart the DHCP connection, if the connection goes down, but I really hope there's a better solution to this
Ah yes, and this currently happens on a 19.1.6 installation, but it has also happened previously, IIRC with 18.x versions, too.
Any ideas?
Logged
petrus
Newbie
Posts: 29
Karma: 1
Re: gateway marked as "offline" but DHCP client claims to be "up"
«
Reply #1 on:
September 03, 2019, 08:43:17 am »
Hi!
I have the same issue at two locations in two different countries. The similarity in both cases is that I have a cable modem integrated router in front of my Opnsense boxes. Most of the time I get a DHCP lease and a public IPv4 address is getting configured correctly, as well as the gateway is coming up. Sometimes however, although Interfaces/Overview shows the interface coming up, there seems to be a lease, but no IP configured. The gateway stays down. As in Daudo's case I just need to do a renew/reload to get an IP.
I'm not completely sure, but this issue appeared around a year ago.
The hardware seems to be irrelevant in this case as both OpnSense boxes have totally different HW. Also I tried different interfaces (igb,re), which work otherwise perfectly. The ISP routers (in bridge mode) also have totally different HW. Also the ISPs are totally different, but neither of them need check the MAC or need a hostanme or whatever else like PPPoX.
I don't have similar issues, when I replace the Opnsense boxes with Openwrt routers of different vendors.
I would appreciate if someone would have any idea on why this is happening?
Version: OPNsense 19.7.3-amd64
MOBO: ASRock J4105M
NetIfs: Realtek and i350
Thanks!
Petrus
«
Last Edit: September 03, 2019, 08:55:13 am by petrus
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
gateway marked as "offline" but DHCP client claims to be "up"