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

    Will this kill my static Route?

    Routing and Multi WAN
    3
    9
    610
    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.
    • RicoR
      Rico LAYER 8 Rebel Alliance
      last edited by

      Hi,

      I'm in the middle of some Datacenter Migration.
      To reach one important System in the old DC I have a Static Route set in pfSense to only this Host: 172.17.11.100/32 GW 172.17.10.11
      Everything works, I can reach Host 172.17.11.100 from my pfSense Network in the new DC via GW 172.17.10.11
      Now to get ahead in the migration process I need to add the 172.17.11.0/24 Network to my pfSense (physical Interface). Will this kill my Static Route instantly?

      Thanks!

      -Rico

      1 Reply Last reply Reply Quote 0
      • NogBadTheBadN
        NogBadTheBad
        last edited by

        It wouldn't on a Cisco router as 172.17.11.100/32 is more specific, not sure about pfSense.

        Can't see any mention in the docs.

        https://www.netgate.com/docs/pfsense/routing/static-routes.html

        Andy

        1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

        1 Reply Last reply Reply Quote 0
        • RicoR
          Rico LAYER 8 Rebel Alliance
          last edited by Rico

          Yes, this is why I'm asking. ☺

          -Rico

          1 Reply Last reply Reply Quote 0
          • NogBadTheBadN
            NogBadTheBad
            last edited by NogBadTheBad

            It should work, just did a quick test.

            0_1544714045482_Screenshot 2018-12-13 at 15.10.49.png

            A traceroute from a differnet interface.

            root@homebridge:/home/pi# traceroute -n 172.16.100.100
            traceroute to 172.16.100.100 (172.16.100.100), 30 hops max, 60 byte packets
            1 172.16.4.1 0.461 ms 0.335 ms 0.267 ms
            2 172.16.2.1 0.415 ms 0.373 ms 0.310 ms
            3 172.16.2.1 0.382 ms 0.320 ms 0.260 ms
            4 172.16.2.1 0.454 ms 0.396 ms 0.486 ms
            5 172.16.2.1 0.422 ms 0.366 ms 0.308 ms
            6 172.16.2.1 0.399 ms 0.543 ms 0.484 ms
            7 172.16.2.1 0.418 ms 0.487 ms 0.429 ms
            8 172.16.2.1 0.474 ms 0.416 ms 0.356 ms
            9 172.16.2.1 0.741 ms 0.683 ms 0.467 ms
            10 172.16.2.1 0.409 ms 0.499 ms 0.602 ms

            root@homebridge:/home/pi# traceroute -n 172.16.100.10
            traceroute to 172.16.100.10 (172.16.100.10), 30 hops max, 60 byte packets
            1 172.16.4.1 0.468 ms 0.320 ms 0.254 ms
            2 172.16.1.1 0.390 ms 0.333 ms 0.270 ms
            3 172.16.1.1 0.398 ms 0.337 ms 0.295 ms
            4 172.16.1.1 0.390 ms 0.333 ms 0.275 ms
            5 172.16.1.1 0.393 ms 0.336 ms 0.277 ms
            6 172.16.1.1 0.397 ms 0.393 ms 0.315 ms
            7 172.16.1.1 0.449 ms 0.390 ms 0.332 ms
            8 172.16.1.1 0.695 ms 0.777 ms 0.896 ms
            9 172.16.1.1 0.510 ms 0.452 ms 0.740 ms
            10 172.16.1.1 0.476 ms 0.627 ms 0.565 ms

            Andy

            1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

            1 Reply Last reply Reply Quote 0
            • RicoR
              Rico LAYER 8 Rebel Alliance
              last edited by

              Both of yours are created manually right?
              I'm still not sure if there is any difference with automatically created Routes like higher piority or things like that.
              But thanks for testing. :-)

              -Rico

              1 Reply Last reply Reply Quote 0
              • NogBadTheBadN
                NogBadTheBad
                last edited by NogBadTheBad

                Just reread your post, I thought you were talking about adding an additional static route pointing to a different gateway, ignore my post.

                Yes my routes were added manually.

                Andy

                1 x Netgate SG-4860 - 3 x Linksys LGS308P - 1 x Aruba InstantOn AP22

                1 Reply Last reply Reply Quote 0
                • RicoR
                  Rico LAYER 8 Rebel Alliance
                  last edited by

                  Interesting...I found some topic leaving the Network/pfSense experts without idea? 😳

                  -Rico

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    FreeBSD (and thus pfSense) doesn't have a concept of route priority/metrics like that.

                    The more specific route always wins.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 1
                    • RicoR
                      Rico LAYER 8 Rebel Alliance
                      last edited by

                      Thanks for your input Jim, appreciate it very much.
                      So from what I understand it should be no problem to add the physical 172.17.11.0/24 network to pfSense and still have the 172.17.11.100/32 route via gw 172.17.10.11 intact since the /32 network (host) is more specific.

                      -Rico

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