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

    Static Routes

    Scheduled Pinned Locked Moved Routing and Multi WAN
    3 Posts 2 Posters 1.2k 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.
    • C
      ccottrell1
      last edited by

      Can someone help me understand how to set static routes on pfsense?  basically in windows i would :  route add 10.10.17.0 mask 255.255.255.0 1.100.100.100 metric 1, and this would make it possible for me to talk to that vlan, but how do i add something like that to pfsense.  I am aware that these should actually be set at the highest level but im curious, as i see that pfsense has the ability but it is way different than windows at least for me.  Please teach me, as I am trying to learn Pfsense.

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

        Define a gateway on System > Routing, Gateways tab
        Then add a Static Route on System > Routing, Routes tab

        If you want to do it by hand in the shell, it won't persist, but you can look at the FreeBSD man page for the route command to get more info there. Syntax is similar to what you show, but wouldn't have a metric added at the end.

        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 0
        • C
          ccottrell1
          last edited by

          Thanks man,  what I eneded up doing was creating a gate of 1.100.100.100 on the lan interface, then pointing vlans(routes I needed) at that gateway, worked awesome, thank you for pointing in the right direction

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