Different CARP LAN - WAN unplug behavior
-
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:
- Secondary when WAN unplugged :
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.
-
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.
-
@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.