Overview & Thematic Scope
Stacking split-brain scenarios occur when a stack of network switches splits into multiple active units due to a failure in the stack links, each believing it is the master. This can cause severe network instability, duplicate IP addresses, and MAC address flapping. Multi-Active Detection (MAD) is a critical feature designed to detect and resolve these conflicts, ensuring high availability and network integrity. This FAQ provides expert answers to the most common technical and deployment questions regarding MAD configuration, compatibility, and troubleshooting.

Frequently Asked Questions
- Q1: What is a stacking split-brain scenario and how does Multi-Active Detection (MAD) resolve it?
- A stacking split-brain scenario occurs when the stack links between member switches fail, causing the stack to divide into two or more separate units, each with its own active master. Multi-Active Detection (MAD) resolves this by using a detection mechanism—such as Link Aggregation Control Protocol (LACP) MAD or Bidirectional Forwarding Detection (BFD) MAD—to identify the multiple active units. Upon detection, MAD places the conflicting units into a recovery state (e.g., shutdown or standby mode), allowing only the primary unit to remain active and maintain network stability.
- Q2: What are the prerequisites and compatibility requirements for enabling MAD on my switches?
- MAD requires that all switches in the stack support the feature and are running compatible firmware versions, typically a unified software image. Prerequisites include: 1) Dedicated interfaces or an existing Link Aggregation Group (LAG) for MAD detection (e.g., over an uplink or a separate management VLAN); 2) Proper configuration of the detection protocol (LACP or BFD) on all member switches; 3) A consistent stack topology with redundant connections. Compatibility is generally guaranteed within the same switch series and software release train; cross-series stacking may not support MAD.
- Q3: What are the differences between LACP MAD and BFD MAD, and which should I choose?
- LACP MAD uses the LACP protocol to detect multi-active devices by exchanging Extended LACP Data Units (E-LACPDU) with a unique MAD domain ID, making it simple to configure on existing LACP-enabled links. BFD MAD uses Bidirectional Forwarding Detection for rapid, sub-second failure detection over dedicated or shared interfaces, offering faster convergence. Choose LACP MAD for environments where you already have LACP uplinks and prefer a simpler, protocol-based solution. Choose BFD MAD for high-performance networks requiring the fastest possible detection times and where you can dedicate interfaces or VLANs for BFD sessions.
- Q4: How do I configure LACP MAD on a stack of switches using CLI commands?
- To configure LACP MAD, first enable MAD on the stack globally and assign a domain ID. Then, on each member switch, configure the interfaces that will participate in the MAD detection, typically as a Link Aggregation (LAG) to an upstream switch or a dedicated MAD link. The core configuration steps involve setting the LACP system priority and enabling the system-mac to be advertised in the E-LACPDUs. This allows the stack to identify all active members and trigger the recovery process if a split is detected.
- Q5: What are the common errors and troubleshooting steps when MAD fails to trigger during a split-brain event?
- Common errors include: 1) Inconsistent MAD domain IDs or LACP system MACs across members; 2) Firewall or ACL rules blocking E-LACPDU or BFD control packets on the detection link; 3) Misconfigured interface VLANs preventing MAD traffic from passing; 4) Incorrect stack priority settings causing election confusion. Troubleshooting steps should include verifying the MAD domain ID consistency, checking the LACP state and counters on all participating interfaces, ensuring the MAD detection link is up and passing protocol traffic, and confirming that the stack member priorities are correctly set to ensure a single master election.
- Q6: What happens to the data and control plane when a MAD recovery is triggered?
- Upon detecting a split-brain, MAD triggers a recovery action on the non-primary units (the ‘inactive’ stack). The control plane on these units is typically shut down, preventing them from processing new traffic or participating in routing protocols. The data plane may be configured to either forward traffic based on existing entries or be fully disabled, depending on the configuration. The primary unit retains full control, and once the stack links are restored, the recovered units will reboot or rejoin the stack as slave members, synchronizing their configuration and forwarding tables from the primary unit.
- Q7: How does MAD interact with other high-availability features like Virtual Router Redundancy Protocol (VRRP) or Hot Standby Router Protocol (HSRP)?
- MAD acts as a first-level failure detection and isolation mechanism for the stack itself, ensuring only one master is active. When a split-brain is detected and MAD places secondary units in recovery, it prevents IP address conflicts that would disrupt VRRP/HSRP operations. Once the stack is stabilized, VRRP/HSRP can function as intended, with the active master serving as the primary gateway. In a well-designed network, MAD ensures that the underlying switching infrastructure does not cause false VRRP/HSRP failovers due to duplicate gateways.
- Q8: What are the best practices for testing and validating MAD configuration before a live deployment?
- Best practices for testing include: 1) Creating a test stack with the exact hardware and software versions intended for production; 2) Simulating stack link failures by physically disconnecting cables and observing MAD detection and recovery behavior; 3) Using diagnostic commands like ‘display mad verbose’ and ‘display stack’ to verify the detection mechanisms and state; 4) Performing packet captures on the MAD detection links to ensure protocol packets are being exchanged; 5) Testing the recovery process by reconnecting the stack links and confirming the inactive units rejoin seamlessly without manual intervention.
Leave a comment