π ~1 min read
Table of contents
Symptom & Impact
CARP VIP repeatedly switches master/backup state, causing intermittent service interruptions and packet loss.
Environment & Reproduction
During interface or switch maintenance, both nodes oscillate between MASTER and BACKUP unexpectedly.
Root Cause Analysis
Skew misconfiguration, packet filtering of CARP advertisements, and interface latency spikes often trigger flapping.
Quick Triage
Check ifconfig carp status, sysctl net.inet.carp settings, and capture protocol 112 traffic between peers.
Step-by-Step Diagnosis
Correlate state transitions with link events and advertisement intervals to isolate instability origin. image_ref=0

Solution – Primary Fix
Adjust advskew/advbase appropriately, ensure CARP protocol traffic is allowed, and stabilize interface settings. image_ref=1
Still having issues? Our IT Solutions & Services team can diagnose and resolve this for you. Get in touch for a free consultation.

Solution – Alternative Approaches
Use dedicated heartbeat VLANs and stricter switch QoS for failover control-plane traffic.
Verification & Acceptance Criteria
CARP roles remain stable under load and maintenance simulation, with deterministic failover and recovery behavior.
Rollback Plan
Restore previous CARP tunables and disable recent network policy changes if flapping persists.
Prevention & Hardening
Run periodic failover drills and monitor CARP state-change frequency with automated alert thresholds.
Related Errors & Cross-Refs
Commonly linked with ARP cache churn, duplicate VIP warnings, and split-brain style failover incidents.
Related tutorial: View the step-by-step tutorial for freebsd-12.
View all freebsd-12 tutorials on the Tutorials Hub β
Browse all common problems & solutions on the Tutorials Hub.
References & Further Reading
See man carp, FreeBSD High Availability guidance, and PF interaction notes for CARP traffic.
Need Expert Help?
If you cannot resolve this yourself, our team offers hands-on Server Management, Managed IT Services, and flexible Support Plans. Contact us today β we respond within one business day.