Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Setup static routes on startup fail

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 2 Posters 78 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      manusch
      last edited by

      When I restart my pfsense I get the following error:
      Setting up static routes...route: message indicates error: Invalid argument

      2025-11-02 06_32_33-.png

      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.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        Jaritura @manusch
        last edited by

        @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.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          manusch @Jaritura
          last edited by

          @Jaritura I've changed to static IP and now it works. Many, many thanks for your help. It works now.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            Jaritura @manusch
            last edited by

            @manusch Awesome!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.