I've been investigating an issue on OPNsense 26.7 where the WAN interface obtains a DHCP lease successfully and the associated gateway appears online, but the firewall does not install an IPv4 default route after boot.
Symptoms
Diagnosis
Immediately after boot:
Running the following command manually restores normal operation:
configctl interface routes configure
After executing the command:
#After reboot
netstat -rn4 | grep default
# no output
# Fix
configctl interface routes configure
# Afterwards
netstat -rn4 | grep default
default 83.217.167.129 UGS igb0
Has anyone seen a similar problem or have any further information, please?
Symptoms
- WAN interface is configured via DHCP.
- DHCP lease is acquired successfully.
- Gateway status shows the WAN gateway as online.
- No IPv4 default route exists in the routing table after startup.
- As a result, outbound Internet connectivity does not work.
- Gateway monitoring continues to report the gateway as online despite the missing default route.
Diagnosis
Immediately after boot:
- WAN interface has a valid DHCP address.
- Gateway object exists and is reported as online.
- Routing table does not contain a default IPv4 route (0.0.0.0/0).
Running the following command manually restores normal operation:
configctl interface routes configure
After executing the command:
- The default IPv4 route is installed.
- Internet connectivity is restored immediately.
- No further intervention is required until the next reboot.
#After reboot
netstat -rn4 | grep default
# no output
# Fix
configctl interface routes configure
# Afterwards
netstat -rn4 | grep default
default 83.217.167.129 UGS igb0
Has anyone seen a similar problem or have any further information, please?
"