Routing between 2 pfsenses on the same lan



  • 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


  • LAYER 8 Global Moderator

    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?




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



  • @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 ;-)


Log in to reply