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

    Static route disappears every few days

    Scheduled Pinned Locked Moved Routing and Multi WAN
    static route
    5 Posts 3 Posters 890 Views
    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.
    • K
      Kiloohm
      last edited by Kiloohm

      I have a static route configured and pointing to a DHCP enabled gateway. The issue is there every few days, that route disappears. I haven't been able to identify the trigger yet.

      Route configuration:
      fe9f2391-c5d1-4f9a-bf23-ad1cc1b39a5c-image.png

      Looking at the routing table, that route is missing:
      c2916496-160c-4cc7-8e96-9dce636fdbd4-image.png

      If I go edit the route in the static route config and "re-save" it, then it will appear again.
      a02ab6e7-b6f0-48a1-846b-9c1ff4b20ca0-image.png

      I'm not sure if this situation occurs during the DHCP renew process but this situation did not occur on 2.4.5 and started happening after the upgrade to 2.5.1. In the meantime, I will have to create a crontab to re-add this route but is there a more elegant solution?

      M 1 Reply Last reply Reply Quote 0
      • M
        marvosa @Kiloohm
        last edited by

        Looks like your network(s) and the static route are too wide. Post your topology and what you're trying to do.

        K 1 Reply Last reply Reply Quote 0
        • K
          Kiloohm @marvosa
          last edited by

          @marvosa This should be very straightforward, I want all the traffic destined for 10.0.0.0/8 to be sent over interface vmx2.36.

          Looking at this, I do realize however that I have a VPN client interface with IP 10.21.0.101 and I'm wondering if the VPN resets and it pulls the 10.0.0.0/8 route with it.

          K 1 Reply Last reply Reply Quote 0
          • K
            Kiloohm @Kiloohm
            last edited by

            I just checked the the VPN has been up for 14 days now but the static route disappeared in the last 2 days.

            1 Reply Last reply Reply Quote 0
            • M
              mmi-corpitsysadmins
              last edited by

              We're also experiencing this issue (https://forum.netgate.com/topic/164671/bug-dhclient-flushes-static-routes). Our current theory is that the DHCP client is to blame.

              A workaround it so go static: set the interfaces configuration to static and also set the gateway manually. We stopped having this issue after that.

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