OPNsense Forum

English Forums => High availability => Topic started by: nicksc on May 06, 2024, 06:53:31 PM

Title: CARP struggles
Post by: nicksc on May 06, 2024, 06:53:31 PM
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.
Title: Re: CARP struggles
Post by: nicksc on May 12, 2024, 08:55:01 AM
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)