CARP struggles

Started by nicksc, May 06, 2024, 06:53:31 PM

Previous topic - Next topic
May 06, 2024, 06:53:31 PM Last Edit: May 06, 2024, 07:55:11 PM by NickH
Hi there,

For my lab setup I am looking to use CARP and outbound NAT. Unfortunately I can't get it to work consistently. I am looking for suggestions as debugging approach, or someone with similar experience  ;)

I've tried to swap out the switches on the WAN side (Unifi to Mikrotik) and go to a different subnet. The uplink is a Connect-X4 since I am planning on upgrading the LAB to 10G.

LAN VIP switching is working fine, different network adapter though (igbe). As soon as I enter maintenance mode it swaps to backup and the standby assumes the master.


Master (in 'Persistent maintenance mode')
2024-05-06T16:41:41   Notice   kernel   <6>carp: 6@mce0: MASTER -> BACKUP (more frequent advertisement received)   
2024-05-06T16:41:41   Notice   kernel   <6>carp: 6@mce0: BACKUP -> MASTER (master timed out)

Standby (that should become master):
2024-05-06T16:41:41   Notice   kernel   <6>carp: 6@mce0: MASTER -> BACKUP (more frequent advertisement received)   
2024-05-06T16:41:41   Notice   kernel   <6>carp: 6@mce0: BACKUP -> MASTER (preempting a slower master)

I've checked the package dump and can see CARP traffic on both sides. Not sure about the interval though.

Any and all suggestions are more then welcome.

Problem turns out to be related to the Connect-X4 driver in BSD. I picked up some DEC3800's and it worked instantly with the same config. Amazing devices, highly recommended if you want something that just works.

Resolved (kinda)