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

    Eliminating Switch as Single Point of Failure

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    5 Posts 3 Posters 3.9k 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.
    • J
      jwbrown77
      last edited by

      Hello,

      Say I have a simple setup with a LAN and WAN.  However, on the LAN side, I would like two switches, and each of my end devices will plug into a port on each switch (multi-port NICs).

      If I setup multiple firewalls with CARP, each plugging into one switch, what would happen if the switch the primary firewall is plugged into switch lost?

      The reason I ask is: It's just the LAN switch that is lost.  Technically, both firewalls are fine and can still communicate with each other through the pfsync connection.

      Would the system be smart enough to fail over to the backup firewall, even though technically both firewalls are ok?

      Thanks.

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

        CARP works by sending a heartbeat on the wire on each interface with a CARP IP. If this heartbeat is not seen on any interface, a backup will take over as master.

        So in your situation, the backup would still take over, as it wouldn't see the heartbeat on the LAN side.

        CARP is capable of only failing over certain interfaces, but iirc pfSense has a sysctl set that fails them all if any one interface fails.

        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
        • J
          jwbrown77
          last edited by

          Nice, exactly what I needed to know.  Thank you.

          1 Reply Last reply Reply Quote 0
          • T
            thermionic
            last edited by

            to increase availability you can add more to it

            if you use two NICs in each pfSense in a LAG going to a switch stack that can have a LAG across/between switches, you would then have a system that can tolerate a switch failure without failing over.

            expanding across this, from this switch pair you would use the same technique to go to each other switch.

            1 Reply Last reply Reply Quote 0
            • J
              jwbrown77
              last edited by

              Thanks for the suggestion.  I looked into LAGG but it didn't seem like it was supported in any meaningful way in 1.2.x, and since it's a production environment I couldn't risk running 2.x where it does seem to be supported.

              If anyone cares, I did test using CARP/pfsync for switch redundancy and it does work, just as jimp indicated.

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