Cisco NX-OS vPC Configuration
Virtual Port-Channel (vPC) domain configuration for Cisco Nexus switches: peer-link, keepalive, peer-gateway, and vPC member port-channels.
What is it?
vPC (Virtual Port-Channel) is a Cisco Nexus feature that allows a server or downstream switch to connect to TWO physical Nexus switches via a single LACP port-channel. From the server's perspective, it sees one logical switch. Both Nexus switches synchronize their MAC tables, ARP tables, and spanning tree state via the peer-link. The peer-keepalive link (usually the management network) provides a heartbeat to detect if the peer switch has failed completely. vPC eliminates the need for STP-blocking on uplinks while providing true Active-Active redundancy.
When to use
- ·Dual-homed servers that need Active-Active redundancy — both links carry traffic simultaneously
- ·Downstream switches connected to two core/aggregation Nexus switches
- ·Any leaf pair in a data center access layer where servers need redundancy without STP
- ·Storage arrays (Cisco UCS, NetApp, EMC) that support LACP multi-pathing
When NOT to use
- ·vPC spans only two Nexus switches — it cannot stretch across three or more switches. Use VXLAN EVPN VTEP for fabric-wide redundancy.
- ·Do NOT use vPC for the spine layer in VXLAN EVPN — spine switches should be independent. vPC is for leaf pairs only.
- ·vPC has software complexity — for small deployments, a simple active/passive LACP with STP may be simpler to manage
How it compares
Prerequisites
- →'feature vpc' and 'feature lacp' must be enabled
- →Both vPC peers need dedicated peer-keepalive connectivity — use the management VRF (mgmt0 interfaces connected via dedicated link)
- →Peer-link should use the fastest available interfaces (40G/100G) and at least 2 physical members
- →vPC domain ID must match on both peers — and be unique per vPC pair in the network
- →Consistent VLAN configuration on both peers — vPC won't form if VLANs differ
Config Generator
Verification commands
show vpcShow vPC domain status, peer-keepalive state, and peer-link status
ExpectedvPC domain status: peer adjacency formed. Peer-keepalive status: peer is alive. Peer-link: port-channel with vPC peer-link role.
show vpc consistency-parameters globalShow global parameters that must match between vPC peers
ExpectedAll parameters should show 'Success'. Any 'Failed' indicates a configuration mismatch that will prevent vPC from forming.
show vpc briefShow all vPC port-channels and their status
ExpectedAll vPC port-channels should show 'up' on both peers
show port-channel summaryVerify peer-link port-channel and member interfaces are bundled
ExpectedPeer-link port-channel shows 'SU' and all members show 'P' (bundled)
Debug commands
show vpc peer-keepaliveShow peer-keepalive status — critical for detecting split-brain
Common mistakes & fixes
Further learning
Recommended books to go deeper on this topic.
NX-OS and Cisco Nexus Switching: Next-Generation Data Center Architectures
Ron Fuller, David Jansen, Matthew McPherson · Cisco Press · vPC design, peer-link, peer-keepalive, dual-homing patterns
CCNP Enterprise Core ENCOR 350-401 Official Cert Guide
Brad Edgeworth et al. · Cisco Press · Datacenter switching — vPC and NX-OS fundamentals