Professional Documents
Culture Documents
ByFabio Semperboni
Configuration
2. Create a vPC Domain
Define a VPC domain and the peer-keepalive link; by default, vPC peer-keepalive is placed in VRF
management.
My suggestion is to define the role priority statically: the switch with lower role priority will be
elected as the vPC primary switch. In the “Failure scenarios” paragraph (at the end of this article),
you will understand how this feature works.
Ciscozine1#
vpc domain 1
peer-keepalive destination 10.0.0.2 source 10.0.0.1
role priority 8192
Ciscozine2#
vpc domain 1
peer-keepalive destination 10.0.0.1 source 10.0.0.2
role priority 16384
Note: There are several vPC features like “auto-recovery”, “ip arp syncronyze”, “peer-gateway”…
check on cisco.com.
3. Create a vPC peer link.
interface port-channel1
description Peer Link
switchport
switchport mode trunk
vpc peer-link
interface Ethernet1/1
channel-group 1 mode active
interface Ethernet2/1
channel-group 1 mode active
Note: vPC peer-link is a L2 trunk carrying vPC VLAN and it must be a 10-Gigabit Ethernet link.
4. Create a virtual Port–Channel
interface port-channel10
description Link VPC to Ciscozine-L2
switchport
switchport mode trunk
vpc 10
interface Ethernet3/1
channel-group 10 mode active
vPC status
----------------------------------------------------------------------
id Port Status Consistency Reason Active vlans
-- ---- ------ ----------- ------ ------------
10 Po10 up success success 1
show vpc consistency-parameter interface port-channel ‘x’: Displays the status of those
parameters that must be consistent across a Port-Channel.
Note: Type 1 and Type 2 consistency check apply both for global configuration and for vPC
interface configuration.
Failure scenarious
1. vPC peer keepalive link fault: During a vPC peer keepalive link failure there is no impact on
traffic flow; in fact, the vPC peer link is operational.
2. “partial” vPC peer link fault: Nothing happens, because the peer link is up.
3. vPC peer link fault: Based on the configured role priority for the switch, only the secondary
peer device (higher priority) shuts its vPC member ports to down state and in addition shuts all its
vPC VLAN interface.
4. vPC keepalive link failure followed by a peer link failure: A dual active scenario occours; vPC
primary switch continues to be primary but the vPC secondary switch becomes the operational
primary switch and keeps its vPC member ports up. There is no loss of traffic for existing flows but
new flows can be effected as the peer link is not available, the two vPC switches cannot
synchronize the unicast MAC address and the IGMP groups.
Note: vPC is similar but not identical to Cisco Virtual Switching System (VSS); in fact, the main
two differences are: vPC works with NX-OS and each Nexus devices has the control-plane active,
while VSS works with IOS and only one device has the control-plane active.
Source: https://www.ciscozine.com/cisco-vpc-virtual-portchannel/