Skip to content

vPC

vPC (Virtual Port Channel) enables a pair of NX-OS switches to appear as a single logical switch to downstream devices, providing active-active redundancy and eliminating spanning tree blocked ports for increased bandwidth utilization. It supports comprehensive domain configuration including auto-recovery, delay restore timers, peer gateway for routing over vPC, peer switch for STP convergence optimization, fast convergence, graceful consistency checking, and Layer 3 peer router functionality. vPC keepalive management provides configurable destination/source IPs, intervals, timeouts, VRF assignment, and QoS marking (DSCP, ToS, precedence) for reliable peer health monitoring.

Diagram
NameTypeConstraintMandatoryDefault Value
vpcClass[vpc]No

NameTypeConstraintMandatoryDefault Value
domain_idIntegermin: 1, max: 1000Yes
auto_recoveryBooleantrue, falseNo
auto_recovery_reload_delayIntegermin: 60, max: 3600No
delay_restoreIntegermin: 1, max: 3600No
delay_restore_orphan_portIntegermin: 0, max: 300No
delay_restore_interface_vlanIntegermin: 1, max: 3600No
delay_peer_linkIntegermin: 0, max: 7200No
dscpIntegermin: 0, max: 63No
dual_active_exclude_interface_vlanStringNo
fast_convergenceBooleantrue, falseNo
graceful_consistency_checkBooleantrue, falseNo
layer3_peer_routerBooleantrue, falseNo
layer3_peer_router_syslogBooleantrue, falseNo
layer3_peer_router_syslog_intervalIntegermin: 1, max: 3600No
mac_address_bpdu_source_version_2Booleantrue, falseNo
peer_gatewayBooleantrue, falseNo
peer_gateway_exclude_vlanStringNo
virtual_peer_link_destinationIPNo
peer_switchBooleantrue, falseNo
role_priorityIntegermin: 1, max: 65535No
system_macStringNo
system_priorityIntegermin: 1, max: 65535No
trackIntegermin: 0, max: 500No
virtual_peer_link_sourceIPNo
keepaliveClass[keepalive]No
peer_link_channel_groupIntegermin: 1, max: 4096No

keepalive (nxos.devices.configuration.vpc)

Section titled “keepalive (nxos.devices.configuration.vpc)”
NameTypeConstraintMandatoryDefault Value
destination_ipIPYes
source_ipIPYes
hold_timeoutIntegermin: 3, max: 10No
intervalIntegermin: 400, max: 10000No
timeoutIntegermin: 3, max: 20No
udp_portIntegermin: 1, max: 65535No
vrfStringNo
precedenceAnyInteger[min: 0, max: 7] or Choice[network, internet, critical, flash-override, flash, immediate, priority, routine] or String[Regex: ^.*[\$\%]\{.*$]No
tosAnyInteger[min: 0, max: 15] or Choice[min-delay, max-throughput, max-reliability, min-monetary-cost, normal] or String[Regex: ^.*[\$\%]\{.*$]No
tos_byteIntegermin: 0, max: 255No

Example 1: Basic vPC domain between LEAF1 and LEAF2 with keepalive and auto recovery

nxos:
devices:
- name: LEAF1
configuration:
vpc:
domain_id: 1
auto_recovery: true
auto_recovery_reload_delay: 240
peer_gateway: true
keepalive:
destination_ip: 10.1.50.2
source_ip: 10.1.50.1
vrf: management
peer_link_channel_group: 1

Example 2: vPC domain with delay restore timers and peer switch for optimized STP convergence

nxos:
devices:
- name: LEAF1
configuration:
vpc:
domain_id: 1
auto_recovery: true
auto_recovery_reload_delay: 240
delay_restore: 150
delay_restore_interface_vlan: 90
delay_restore_orphan_port: 60
peer_gateway: true
peer_switch: true
graceful_consistency_check: true
keepalive:
destination_ip: 10.1.50.2
source_ip: 10.1.50.1
vrf: management
interval: 1000
timeout: 5
peer_link_channel_group: 1

Example 3: Full-featured vPC with fast convergence, L3 peer router, and system priority on LEAF2

nxos:
devices:
- name: LEAF2
configuration:
vpc:
domain_id: 1
auto_recovery: true
auto_recovery_reload_delay: 240
delay_restore: 150
delay_restore_interface_vlan: 90
delay_restore_orphan_port: 60
fast_convergence: true
peer_gateway: true
peer_switch: true
graceful_consistency_check: true
layer3_peer_router: true
layer3_peer_router_syslog: true
layer3_peer_router_syslog_interval: 3600
role_priority: 32768
system_priority: 2000
track: 3
keepalive:
destination_ip: 10.1.50.1
source_ip: 10.1.50.2
vrf: management
interval: 1000
timeout: 5
peer_link_channel_group: 1