Setup static routes on startup fail
-
When I restart my pfsense I get the following error:
Setting up static routes...route: message indicates error: Invalid argument
When the start-up process is complete, there is no internet connection. A PING returns ‘no route found’.
When I then select the ‘Set new IP address’ option on pfSense and simply reconfigure the WAN interface with DHCP (same as already set), it recreates the routes and everything works correctly.Unfortunately, I don't know what to do next, and I haven't found anything in the log files either. But maybe I haven't looked in the right place.
Many thanks in advance for your help.
-
@manusch It happens because the static routes load before the WAN gateway is ready. Check that your default gateway is linked to the correct interface and enable “Allow default gateway switching” if you use DHCP. This ensures routes apply only after the gateway comes up.
-
@Jaritura I've changed to static IP and now it works. Many, many thanks for your help. It works now.
-
@manusch Awesome!