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

    Routing between 2 pfsenses on the same lan

    Scheduled Pinned Locked Moved Routing and Multi WAN
    4 Posts 4 Posters 954 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 Offline
      CloudNut
      last edited by

      Hi

      Sorry if this topic has been covered but I can not seem to find any solution

      I have one network i.e same switch, cabling etc

      I have one pfsense box with wan address and a 192.168.1.0/24 subnet

      I have another pfsense box with a wan address and a 10.0.0.0/24 subnet

      they and all the computers are on the same network switch

      I would like to be able to route between the subnets i.e 10.0.0.12 be able to ping 192.168.1.150 etc

      I have created aliases, gateways, static routes all to no avail, could anyone point in the right direction to try and achieve it would be much appreciated

      1 Reply Last reply Reply Quote 0
      • johnpozJ Offline
        johnpoz LAYER 8 Global Moderator
        last edited by

        So you have this - see attached.

        And what possible routes did you create?  Is your wan a common network?  Where is your common network your pfsense use to talk to each other with?

        If you pfsense lans are connected to same switch - why they not just using the same network?

        multilansameswitch.jpg
        multilansameswitch.jpg_thumb

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 25.07.1 | Lab VMs 2.8.1, 25.07.1

        1 Reply Last reply Reply Quote 0
        • M Offline
          mikeisfly
          last edited by

          You have to take the switch out and replace it with a router. Or Like Johnpoz said you need to put them on the same network. Or if your switch has layer 3 capabilities you can have it do the routing.

          1 Reply Last reply Reply Quote 0
          • R Offline
            redflag237
            last edited by

            @johnpoz:

            So you have this - see attached.

            And what possible routes did you create?  Is your wan a common network?  Where is your common network your pfsense use to talk to each other with?

            If you pfsense lans are connected to same switch - why they not just using the same network?

            More general again:
            You need a common subnet between your boxes if you want them to talk to each other ;-)
            Either you could just strip another connection between both pfsense boxes, e.g. 10.10.10.0/30, then add static routes. Otherwise you need to add an Alias-IP from the other subnet to the LAN-Adapters of your boxes.
            Maybe add 10.0.0.254/24 to your first box or choose a different address. Then you can also add static routes pointing to the other box… or even add the other device as gateway and load-balance ;-)

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