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

    Different CARP LAN - WAN unplug behavior

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    3 Posts 2 Posters 533 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.
    • N
      Nyxtorm
      last edited by Nyxtorm

      Hello,

      After some research, I can't figure out the difference in behavior on my CARP installation.

      If I unplug my LAN cable on the primary, all interfaces switch to BACKUP on the primary and the secondary instantly switches well to MASTER on all CARP interfaces, which is the expected result.

      But if I unplug the WAN cable, I get strange behavior. Only the WAN interfaces switch to MASTER on the secondary, but the primary no longer displays the status for them (see screenshot). The other interfaces remain MASTER on the primary and BACKUP on the secondary. Result: the LAN devices no longer have access to the Internet. What's more, when I reconnect, it takes almost 1 minute to return to normal, rather than being transparent.

      How can I ensure that when the WAN is disconnected, the behavior is exactly the same as when the LAN is disconnected?

      • Primary when WAN unplugged:

      Capture d'écran 2025-02-21 195810.png

      • Secondary when WAN unplugged :

      Capture d'écran 2025-02-21 195806.png

      Sorry for my English and thank you for your help.


      • pfSense CE 2.7.2 (two fresh installations)
      • All skews are 0 on primary
      • All skews are 100 on secondary

      EDIT1: Using the “Persistent CARP Maintenance Mode” has exactly the same behavior as when I unplug the LAN cable: all interfaces switch to BACKUP on the primary side and MASTER on the secondary side, as expected.

      1 Reply Last reply Reply Quote 0
      • N
        Nyxtorm
        last edited by

        I'm replying to myself in case anyone has the same case.

        On my WAN interfaces, I had a static IPv4 (on the local subnet of my Livebox (French ISP router)), and an IPv6 in DHCP6.

        Once I've also set the IPv6, and the gateway v6 to static, the behavior is fine when I disconnect the WAN: the WAN interface goes to INIT, the others to BACKUP on the primary, and the secondary recovers MASTER status on all interfaces.

        B 1 Reply Last reply Reply Quote 1
        • B
          bp81 @Nyxtorm
          last edited by

          @Nyxtorm said in Different CARP LAN - WAN unplug behavior:

          I'm replying to myself in case anyone has the same case.

          On my WAN interfaces, I had a static IPv4 (on the local subnet of my Livebox (French ISP router)), and an IPv6 in DHCP6.

          Once I've also set the IPv6, and the gateway v6 to static, the behavior is fine when I disconnect the WAN: the WAN interface goes to INIT, the others to BACKUP on the primary, and the secondary recovers MASTER status on all interfaces.

          I believe that this behavior is what you would typically see if one of your WAN interfaces (your IPv6 gateway in this case) is set to DHCP instead of static addressing. CARP/HA doesn't tend to work that well with WANs using DHCP instead of static addressing.

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