Cisco vPC Failure Practice
Practise what a Cisco Nexus vPC pair does when a link or a switch fails. Each problem gives the role priorities, the MAC addresses and four steps such as a reload, a peer-link failure or a power outage. You pick the operational primary, or what one switch shuts down, and Check my answer names your slip, such as expecting the old primary to take its role back.
Exam practice
vPC is in topic 1.2 of the Cisco 350-601 DCCOR v1.2 exam: Apply switching protocols such as RSTP+, LACP and vPC. Start with the free real exam questions, then get the full pack.
vPC failure FAQ
How is the vPC primary switch elected?
Cisco: by default, NX-OS uses the lowest MAC address to elect the primary device. If the role priority is set, the device with the lowest priority is elected as the primary device. A lower value means a better chance of being the primary, and the default role priority is 32667. So with 100 on one switch and 200 on the other, the switch with 100 is primary; with both left at 32667, the lower MAC address wins.
What happens when the vPC peer-link fails?
The switches check the peer-keepalive link. If the peer device is up, the secondary vPC device disables all vPC ports on its device, to prevent loops and disappearing or flooding traffic, and the data forwards down the remaining links of the port channel. The secondary also brings down its VLAN interfaces (SVIs) for the vPC VLANs. The primary keeps its ports up, and the roles do not change.
What happens if only the vPC peer-keepalive link goes down?
Nothing changes. Cisco: the keepalive messages are used only when all the links in the vPC peer-link fail. The keepalive tells the switches whether a failure is on the peer-link only or on the peer device, so with the peer-link still up, no role changes and no port is shut.
What is vPC dual-active?
Both vPC peers act as primary. Cisco: this happens when the peer-keepalive and the vPC peer-link go down while both peers are still active. The secondary assumes the primary is inactive and acts as the primary too.
Why does show vpc say role primary, operational secondary?
Because vPCs do not support role preemption. If the primary fails or reloads, the secondary takes over as the operational primary, and the original roles are not restored when the old primary comes back. Cisco calls this the sticky bit: the switch that is up and running wins over the reloaded one. The role priority still makes the old primary the elected primary, but it is now the operational secondary.
What does vPC auto-recovery do after a power outage?
If both vPC switches go down and only one is restored, auto-recovery lets that switch take the primary role, and its vPC links come up after the auto-recovery period, 240 seconds by default. The sticky bit is set, so when the other switch comes back it is the operational secondary, even with a better role priority.
Which switch shuts down its ports after a peer-link failure, the elected or the operational secondary?
The drill uses the operational role: after a reload or a failure the roles can be the other way round from the role priorities, and the switch that is operational secondary at that moment is the one that disables its vPC ports and SVIs.
What does the drill leave out?
Anything the Cisco page under Sources does not settle for these problems: the vpc role preempt command, recovery after dual-active or after a peer-link only failure, changing the role priority on a running pair, orphan ports, object tracking, graceful consistency check and the hold-timeout and delay restore timers. Dual-active is always the last step.
Sources
- Cisco, Nexus 9000 Series NX-OS Interfaces Configuration Guide, Release 7.x, Configuring vPCs: role priority (lower wins, default 32667) and the lowest MAC address, no role preemption and the sticky bit, what the secondary does when the peer-link fails (vPC ports and VLAN interfaces), when the keepalive is used, dual-active, and auto-recovery (240 seconds by default).
- Cisco, 350-601 DCCOR v1.2 exam topics: 1.2 Apply switching protocols such as RSTP+, LACP and vPC.
- Checked 21 November 2026: the drill reproduces the cases this page describes (the election, Table 1 with role priorities 100 and 200, the reload and failure of the primary, the peer-link and keepalive failures, dual-active and auto-recovery). It was tested on 30,000 generated problems against a separate Python re-solver. This is an independent practice tool, not made or endorsed by Cisco.
Checked 21 November 2026 against Cisco's Nexus 9000 NX-OS Interfaces Configuration Guide and the DCCOR exam topics.
- DrillHSRP and VRRP election practicePick the HSRP active router or the VRRP Master after failures, preempt and interface tracking.
- DrillCisco ACI contract practiceDecide if a contract permits a packet between EPGs with Apply Both Directions and Reverse Filter Ports, and pick the entry it is checked against.
- DrillCisco AP to WLC join order practicePick the WLC an access point joins on AireOS and after a Catalyst 9800 failover.