Configuring Vpcs
Configuring Vpcs
This chapter describes how to configure virtual port channels (vPCs) on Cisco NX-OS devices.
Note From Cisco NX-OS Release 5.1(1), vPCs have been enhanced to interoperate with FabricPath. To configure
vPCs with FabricPath networks, see the Cisco Nexus 7000 Series NX-OS FabricPath Configuration Guide.
From Cisco NX-OS Release 5.1(1), you can use any of the 10-Gigabit Ethernet (10GE) interfaces, or higher,
on the F-series modules or the 10-Gigabit Ethernet interfaces, or higher, on the M-series modules for the vPC
peer link on an individual switch, but you cannot combine member ports on an F module with ports on an M
module into a single port channel on a single switch. The port-channel compatibility parameters must be the
same for all the port channel members on the physical switch.
You cannot configure shared interfaces to be part of a vPC. See the Cisco NX-OS FCoE Configuration Guide
for Cisco Nexus 7000 and Cisco MDS 9000 for more information about shared interfaces.
The port-channel compatibility parameters must also be the same for all vPC member ports on both peers and
therefore you must use the same type of module in each chassis.
• Finding Feature Information, on page 2
• Feature History for Configuring vPCs, on page 2
• Information About vPCs, on page 4
• Hitless vPC Role Change, on page 40
• vPC Configuration Synchronization, on page 40
• Licensing Requirements for vPCs, on page 42
• Guidelines and Limitations for vPCs, on page 42
• Configuring vPCs, on page 46
• Upgrading Line Card Modules for vPC, on page 81
• Verifying the vPC Configuration, on page 90
• Monitoring vPCs, on page 92
• Configuration Examples for vPCs, on page 93
• Related Documents, on page 95
Configuring vPCs
1
Configuring vPCs
Finding Feature Information
Hitless vPC Role Change 7.3(0)D1(1) Added support for switching vPC roles
without impacting traffic flows.
Physical Port vPC on F3 7.2(0)D1(1) Added support for physical port vPCs for F3.
1500 host vPC for FEX 7.2(0)D1(1) Added support for 1500 host vPC for FEX
(Physical Port vPC on FEX) (Physical Port vPC on FEX).
Layer 3 over vPC for F2E and 7.2(0)D1(1) Added support for this feature.
F3 modules
Physical Port vPC on F2 6.2(6) Added support for physical port vPCs for F2.
FCoE over physical port vPCs 6.2(6) Added support for this feature.
Physical port vPCs 6.2(6) Added support for physical port vPCs on the
physical interface of vPC peer devices.
Configuring vPCs
2
Configuring vPCs
Feature History for Configuring vPCs
Configuring vPCs
3
Configuring vPCs
Information About vPCs
vPC+
A virtual port channel+ (vPC+) is an extension to virtual port channels (vPCs) that run CE only. A vPC+
domain allows a classical Ethernet (CE) vPC domain and a Cisco FabricPath cloud to interoperate and also
provides a First Hop Routing Protocol (FHRP) active-active capability at the FabricPath to Layer 3 boundary.
A vPC+ domain enables Cisco Nexus 7000 Series enabled with FabricPath devices to form a single vPC+,
which is a unique virtual switch to the rest of the FabricPath network. For more detailed information on vPC+
see the Cisco Nexus 7000 Series NX-OS FabricPath Configuration Guide.
Note You cannot configure a vPC+ domain and a vPC domain in the same VDC.
You can use only Layer 2 port channels in the vPC. A vPC domain is associated to a single Virtual Device
Context (VDC), so all vPC interfaces belonging to a given vPC domain must be defined in the same VDC.
You must have a separate vPC peer link and peer-keepalive link infrastructure for each VDC deployed.
Consolidating a vPC pair (two vPC peer devices of the same domain) in two VDCs of the same physical
device is not supported. The vPC peer link must use at least 10-Gigabit Ethernet ports for both ends of the
link or the link will not form.
You configure the port channels by using one of the following:
• No protocol
• Link Aggregation Control Protocol (LACP)
When you configure the port channels in a vPC—including the vPC peer link channel—without using LACP,
the F-series line cards can have 16 active links and M-series line cards can have 8 active links in a single port
Configuring vPCs
4
Configuring vPCs
vPC+
channel. When you configure the port channels in a vPC—including the vPC peer link channels—using LACP,
F-series card each device can have eight active links and eight standby links in a single port channel. (See the
“vPC Interactions with Other Features” section for more information on using LACP and vPCs.)
You can use the lacp graceful-convergence command to configure port channel Link Aggregation Control
Protocol (LACP) graceful convergence. You can use this command only on a port-channel interface that is
in an administratively down state. You cannot configure (or disable) LACP graceful convergence on a port
channel that is in an administratively up state.
You can use the lacp suspend-individual command to enable LACP port suspension on a port channel. LACP
sets a port to the suspended state if it does not receive an LACP bridge protocol data unit (BPDU) from the
peer ports in a port channel. This can cause some servers to fail to boot up as they require LACP to logically
bring up the port.
Note You must enable the vPC feature before you can configure or run the vPC functionality.
From Cisco NX-OS Release 4.2, the system automatically takes a checkpoint prior to disabling the feature,
and you can roll back to this checkpoint. See the Cisco Nexus 7000 Series NX-OS System Management
Configuration Guide for information about rollbacks and checkpoints.
After you enable the vPC functionality, you create the peer-keepalive link, which sends heartbeat messages
between the two vPC peer devices.
You can create a vPC peer link by configuring a port channel on one Cisco Nexus 7000 Series chassis by
using two or more 10-Gigabit Ethernet ports in dedicated port mode. To ensure that you have the correct
hardware to enable and run a vPC from Cisco NX-OS Release 4.1(5), enter the show hardware feature-capability
command. If you see an X across from the vPC in your command output, your hardware cannot enable the
vPC feature.
We recommend that you configure the vPC peer link Layer 2 port channels as trunks. On another Cisco Nexus
7000 Series chassis, you configure another port channel again using two or more 10-Gigabit Ethernet ports
in the dedicated port mode. Connecting these two port channels creates a vPC peer link in which the two
linked Cisco Nexus devices appear as one device to a third device. The third device, or downstream device,
can be a switch, server, or any other networking device that uses a regular port channel to connect to the vPC.
If you are not using the correct module, the system displays an error message.
Note We recommend that you configure the vPC peer links on dedicated ports of different modules to reduce the
possibility of a failure. For the best resiliency scenario, use at least two modules.
From Cisco NX-OS Release 4.2, if you must configure all the vPC peer links and core-facing interfaces on a
single module, you should configure a track object that is associated with the Layer 3 link to the core and on
all the links on the vPC peer link on both vPC peer devices. Once you configure this feature and if the primary
vPC peer device fails, the system automatically suspends all the vPC links on the primary vPC peer device.
This action forces all the vPC traffic to the secondary vPC peer device until the system stabilizes.
You can create a track object and apply that object to all links on the primary vPC peer device that connect
to the core and to the vPC peer link. See the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration
Guide for information about the track interface command.
Configuring vPCs
5
Configuring vPCs
vPC Terminology
The vPC domain includes both vPC peer devices, the vPC peer-keepalive link, the vPC peer link, and all of
the port channels in the vPC domain connected to the downstream device. You can have only one vPC domain
ID on each device.
In this version, you can connect each downstream device to a single vPC domain ID using a single port channel.
Note Always attach all vPC devices using port channels to both vPC peer devices.
vPC Terminology
The terminology used in vPCs is as follows:
• vPC—The combined port channel between the vPC peer devices and the downstream device.
• vPC peer device—One of a pair of devices that are connected with the special port channel known as
the vPC peer link.
• vPC peer link—The link used to synchronize states between the vPC peer devices. Both ends must be
on 10-Gigabit Ethernet interfaces.
• vPC member port—An interface that belongs to a vPC.
• Host vPC port—A Fabric Extender host interfaces that belongs to a vPC.
• vPC domain—This domain includes both vPC peer devices, the vPC peer-keepalive link, and all of the
port channels in the vPC connected to the downstream devices. It is also associated to the configuration
mode that you must use to assign vPC global parameters.
• vPC peer-keepalive link—The peer-keepalive link monitors the vitality of a vPC peer Cisco Nexus 7000
Series device. The peer-keepalive link sends configurable, periodic keepalive messages between vPC
peer devices.
We recommend that you associate a peer-keepalive link to a separate virtual routing and forwarding (VRF)
instance that is mapped to a Layer 3 interface in each vPC peer device. If you do not configure a separate
VRF, the system uses the management VRF by default. However, if you use the management interfaces for
the peer-keepalive link, you must put a management switch connected to both the active and standby
management ports on each vPC peer device (see the figure below).
Configuring vPCs
6
Configuring vPCs
vPC Peer Links
Figure 2: Separate Switch Required to Connect Management Ports for vPC Peer-Keepalive Link
No data or synchronization traffic moves over the vPC peer-keepalive link; the only traffic on this link is a
message that indicates that the originating switch is operating and running a vPC.
• vPC member port—Interfaces that belong to the vPCs.
• Dual-active— Both vPC peers act as primary. This situation occurs when the peer-keepalive and peer-link
go down when both the peers are still active. In this case, the secondary vPC assumes that the primary
vPC is inactive and acts as the primary vPC.
• Recovery—When the peer-keepalive and the peer-link come up, one switch becomes the secondary vPC.
On the switch that becomes the secondary vPC, the vPC links go down and come back up.
Note You must configure the peer-keepalive link before you configure the vPC peer link or the peer link does not
come up. (See the “Peer-Keepalive Link and Messages” section for information about the vPC peer-keepalive
link and messages.)
Configuring vPCs
7
Configuring vPCs
vPC Peer Link and I/O Modules Support in Cisco NX-OS Release 6.2
Note Starting from Cisco NX-OS Release 8.0(1) you cannot configure vPC peer-link on a port-channel with
non-default MTU configuration. The following error message is displayed if you try to configure:
ERROR: Cannot configure peer-link since mtu is non-default
To configure peer-link, remove the non-default MTU configuration and re apply the vpc peer-link command.
By default packets of all sizes are allowed in peer-link.
You can configure a vPC peer link to configure two devices as vPCs peers. You must use the module in order
to configure a vPC peer link.
We recommend that you use the dedicated port mode when you configure a vPC peer link. For information
about the dedicated port mode, see “Configuring Basic Interface Parameters.”
vPC Peer Link and I/O Modules Support in Cisco NX-OS Release 6.2
You can configure F2e VDCs. The VDC type for two vPC peer devices must match when the F2 Series module
and the F2e Series module are used in the same VDC or system. For an F2 Series module and an F2e Series
module in the same topology, the features related to the F2 Series module will only apply.
After ISSU to Cisco NX-OS Release 6.2(2), F2 VDCs will automatically change to F2 F2e VDCs, regardless
of the existence of an F2e Series module.
The table below displays the I/O modules that are supported on both sides of a vPC peer link in Cisco NX-OS
Release 6.2.
Table 2: I/O Module Combinations Supported on Both Sides of a vPC Peer Link, Cisco NX-OS Release 6.2 and Later
vPC Peer Link and I/O Modules Support in Cisco NX-OS Release 6.1 and Earlier Releases
In Cisco NX-OS Release 6.1 and earlier releases, only identical I/O modules on either side of a vPC peer link
are supported. Using different I/O modules on either side of a vPC peer link is not supported. Mixing I/O
modules on the same side of a port channel is also not supported. The table above displays the I/O modules
that are supported on both sides of a vPC peer link.
While using port channels, we recommended that you use identical line cards on both sides.
Configuring vPCs
8
Configuring vPCs
vPC Peer Link Overview
To make a valid configuration, you first configure a port channel on each device and then configure the vPC
domain. You assign the port channel on each device as a peer link, using the same vPC domain ID. For
redundancy, we recommend that you should configure at least two of the dedicated ports into the port channel
because if one of the interfaces in the vPC peer link fails, the device automatically falls back to use another
interface in the peer link.
Note We recommend that you configure the Layer 2 port channels in trunk mode.
Many operational parameters and configuration parameters must be the same in each device connected by a
vPC peer link (see the “Compatibility Parameters for vPC Interfaces” section). Because each device is
completely independent on the management plane, you must ensure that the devices are compatible on the
critical parameters. vPC peer devices have separate control planes. After configuring the vPC peer link, you
should display the configuration on each vPC peer device to ensure that the configurations are compatible.
You must ensure that the two devices connected by the vPC peer link have certain identical operational and
configuration parameters. For more information on required configuration consistency, see the “Compatibility
Parameters for vPC Interfaces” section.
When you configure the vPC peer link, the vPC peer devices negotiate that one of the connected devices is
the primary device and the other connected device is the secondary device (see the “Configuring vPCs”
section). The Cisco NX-OS software uses the lowest MAC address to elect the primary device. The software
takes different actions on each device—that is, the primary and secondary—only in certain failover conditions.
If the primary device fails, the secondary device becomes the new primary device when the system recovers,
and the previously primary device is now the secondary device.
You can also configure which of the vPC devices is the primary device. Changing the priority of the vPC peer
devices can cause the interfaces in your network to go up and down. If you want to configure the role priority
again to make one vPC device the primary device, configure the role priority on both the primary vPC device
with a lower priority value and the secondary vPC device with the higher value. Then, shut down the port
channel that is the vPC peer link on both devices by entering the shutdown command, and finally reenable
the port channel on both devices by entering the no shutdown command.
Configuring vPCs
9
Configuring vPCs
Features That You Must Manually Configure on the Primary and Secondary Devices
We recommend that you use two different modules for redundancy on each vPC peer device on each vPC
peer link.
The software keeps all traffic that forwards across the vPC peer devices as local traffic. A packet that ingresses
the port channel uses one of the local links rather than moving across the vPC peer link. Unknown unicast,
multicast, and broadcast traffic (including STP BPDUs) are flooded across the vPC peer link. The software
keeps the multicast forwarding state synchronized on both of the vPC peer devices.
You can configure any of the standard load-balancing schemes on both the vPC peer link devices and the
downstream device (see Chapter 6, “Configuring Port Channels” for information about load balancing).
Configuration information flows across the vPC peer links using the Cisco Fabric Services over Ethernet
(CFSoE) protocol. (See the “Cisco Fabric Services Over Ethernet” section on page 7-30 for more information
about CFSoE.)
All MAC addresses for those VLANs configured on both devices are synchronized between vPC peer devices.
The software uses CFSoE for this synchronization. (See the “Cisco Fabric Services Over Ethernet” section
on page 7-30 for information about CFSoE.)
If the vPC peer link fails, the software checks the status of the remote vPC peer device using the peer-keepalive
link, which is a link between vPC peer devices that ensures that both devices are up. If the vPC peer device
is up, the secondary vPC device disables all vPC ports on its device, to prevent loops and disappearing or
flooding traffic. The data then forwards down the remaining active links of the port channel.
We recommend that you create and configure a separate VRF and configure a Layer 3 port on each vPC peer
device in that VRF for the vPC peer-keepalive link. The default ports and VRF for the peer-keepalive are the
management ports and VRF.
The software learns of a vPC peer device failure when the keepalive messages are not returned over the
peer-keepalive link.
Use a separate link (vPC peer-keepalive link) to send configurable keepalive messages between the vPC peer
devices. The keepalive messages on the vPC peer-keepalive link determines whether a failure is on the vPC
peer link only or on the vPC peer device. The keepalive messages are used only when all the links in the peer
link fail. See the “Peer-Keepalive Link and Messages” section for information about the keepalive message.
Features That You Must Manually Configure on the Primary and Secondary Devices
You must manually configure the following features to conform to the primary/secondary mapping of each
of the vPC peer devices:
• STP root—Configure the primary vPC peer device as the STP primary root device and configure the
vPC secondary device to be the STP secondary root device. See the “vPC Peer Links and STP” section
for more information about vPCs and STP.
• When the port-channel is designated as the vPC peer link, the spanning-tree port type network
command is added and so the port-channel becomes the bridge assurance port.
• We recommend that you configure Rapid per VLAN Spanning Tree plus (PVST+) so that the
primary device is the root for all VLANs and configure Multiple Spanning Tree (MST) so that the
primary device is the root for all instances.
• Layer 3 VLAN network interface—Configure Layer 3 connectivity from each vPC peer device by
configuring a VLAN network interface for the same VLAN from both devices.
• HSRP active—If you want to use Hot Standby Router Protocol (HSRP) and VLAN interfaces on the
vPC peer devices, configure the primary vPC peer device with the HSRP active highest priority. Configure
Configuring vPCs
10
Configuring vPCs
Configuring Layer 3 Backup Routes on a vPC Peer Link
the secondary device to be the HSRP standby and ensure that you have VLAN interfaces on each vPC
device that are in the same administrative and operational mode. (See the “vPC Peer Links and Routing”
section for more information on vPC and HSRP.)
While you configure Unidirectional Link Detection (UDLD), note the following recommendations:
• If LACP is used as port-channel aggregation protocol, UDLD is not required in a vPC domain.
• If LACP is not used as the port-channel aggregation protocol (static port-channel), use UDLD in normal
mode on vPC member ports.
• If STP is used without Bridge Assurance and if LACP is not used, use UDLD in normal mode on vPC
orphan ports.
See the “Configuring the UDLD Mode” section for information about configuring UDLD.
Note Ensure that you have a VLAN network interface configured on each peer device and that the interface is
connected to the same VLAN on each device. Also, each VLAN interface must be in the same administrative
and operational mode. For more information about configuring VLAN network interfaces, see “Configuring
Layer 3 Interfaces.”
From Cisco NX-OS Release 6.2(2), if the vPC peer link is on an F2e-Series module in a mixed chassis with
an M-Series module and an F2e-Series module, do not use the Layer 3 backup routing path over the vPC peer
link; instead deploy a dedicated Layer 3 backup routing path using an additional inter-switch port channel.
If a failover occurs on the vPC peer link, the VLAN interfaces on the vPC peer devices are also affected. If
a vPC peer link fails, the system brings down associated VLAN interfaces on the secondary vPC peer device.
From Cisco NX-OS Release 4.2(1), you can ensure that specified VLAN interfaces do not go down on the
vPC secondary device when the vPC peer link fails.
Use the dual-active exclude interface-vlan command to configure this feature.
Note From Cisco NX-OS Release 7.2(0)D1(1), when you attach a Layer 3 device to a vPC domain, the peering of
routing protocols using a VLAN also carried on the vPC peer link is not supported. If routing protocol
adjacencies are needed between vPC peer devices and a generic Layer 3 device, you must use physical routed
interfaces for the interconnection. Use of the vPC peer-gateway feature does not change this requirement.
Configuring vPCs
11
Configuring vPCs
vPC Peer Gateway
We recommend that you associate the vPC peer-keepalive link to a separate VRF mapped to a Layer 3 interface
in each vPC peer device. If you do not configure a separate VRF, the system uses the management VRF and
management ports by default. Do not use the peer link itself to send and receive vPC peer-keepalive messages.
For more information about configuring VRFs, see the Cisco Nexus 7000 Series NX-OS Unicast Routing
Configuration Guide.
If one of the vPC peer devices fails, the vPC peer device on the other side of the vPC peer link senses the
failure by not receiving any peer-keepalive messages. You can configure a hold-timeout and a timeout value
simultaneously.
Hold-timeout value—The hold-timeout value range is between 3 to 10 seconds, with a default value of 3
seconds. This timer starts when the vPC peer link goes down. The purpose of the hold-timeout period is to
prevent false-positive cases.
If you configure a hold-timeout value that is lower than the timeout value, then the vPC system ignores vPC
peer-keepalive messages for the hold-timeout period and considers messages for the reminder of the timeout
period. If no keepalive message is received for this period, the vPC secondary device takes over the role of
the primary device. For example, if the hold-timeout value is 3 seconds and the timeout value is 5 seconds,
for the first 3 seconds vPC keepalive messages are ignored (such as, when accommodating a supervisor failure
for a few seconds after peer link failure) and keepalive messages are considered for the remaining timeout
period of 2 seconds. After this period, the vPC secondary device takes over as the primary device, in case
there is no keep alive message.
Timeout value—The timeout value range is between 3 to 20 seconds, with a default value of 5 seconds. This
timer starts at the end of the hold-timeout interval. If you configure a timeout value that is lower than or equal
to the hold-timeout value, then the timeout duration is initiated after the hold-timeout period. For example, if
the timeout value is 3 seconds and the hold-timeout value is 5 seconds, the timeout period starts after 5 seconds
Note Ensure that both the source and destination IP addresses used for the peer-keepalive messages are unique in
your network and these IP addresses are reachable from the VRF associated with the vPC peer-keepalive link.
Use the CLI to configure the interfaces you are using the vPC peer-keepalive messages as trusted ports. Leave
the precedence at the default (6) or configure it higher.
This is an example of configuring an interface as a trusted port:
See the Cisco Nexus 7000 Series NX-OS Quality of Service Configuration Guide for complete information
about configuring trusted ports and precedence.
Configuring vPCs
12
Configuring vPCs
Layer 3 over vPC for F2E, F3 Modules
Note From Cisco NX-OS Release 6.2(2), you can use the mode auto command to automatically enable this feature.
See the “Enabling Certain vPC Commands Automatically” section for more information about using this
command.
Some network-attached storage (NAS) devices or load balancers might have features that help to optimize
the performances of particular applications. These features enable the device to avoid a routing-table lookup
when responding to a request that originated from a host that is not locally attached to the same subnet. Such
devices might reply to traffic using the MAC address of the sender Cisco Nexus 7000 Series and Cisco Nexus
7700 Series devices rather than the common HSRP gateway. This behavior is noncompliant with some basic
Ethernet RFC standards. Packets that reach a vPC device for the nonlocal router MAC address are sent across
the peer link and could be dropped by the built in vPC loop avoidance mechanism if the final destination is
behind another vPC.
The vPC peer-gateway capability allows a vPC switch to act as the active gateway for packets that are addressed
to the router MAC address of the vPC peer. This feature enables local forwarding of packets without the need
to cross the vPC peer link. In this scenario, the feature optimizes use of the peer link and avoids potential
traffic loss.
Configuring the peer-gateway feature must be done on both primary and secondary vPC peers and is
nondisruptive to the operations of the device or to the vPC traffic. The vPC peer-gateway feature can be
configured globally under the vPC domain submode.
When you enable this feature, Cisco NX-OS automatically disables IP redirects on all interface VLANs
mapped over a vPC VLAN to avoid generation of IP redirect messages for packets switched through the peer
gateway router.
Note From Cisco NX-OS Release 5.1(3) and above, when a VLAN interface is used for Layer 3 backup routing
on the vPC peer devices and an F1 line card is used as the peer link, the VLAN must be excluded from the
peer-gateway feature, if enabled, by running the peer-gateway exclude-vlan vlan-number command. For more
information about backup routes, see the “Configuring Layer 3 Backup Routes on a vPC Peer Link” section.
Packets that arrive at the peer-gateway vPC device have their Time to Live (TTL) decremented, so that packets
carrying a TTL of 1 might get dropped in transit due to TTL expiration. You should take this situation into
account when the peer-gateway feature is enabled and particular network protocols that source packets with
a TTL of 1 operate on a vPC VLAN.
Configuring vPCs
13
Configuring vPCs
Layer 3 over VPC Support in Cisco NX-OS Release 7.2(0)D1(1)
peer adjacency between Layer 3 device and vPC peer without separate Layer 3 links. Both bridged and routed
traffic can flow over the same link.
Routing adjacency between Layer 3 device and vPC peer is formed without a non-vPC VLAN. Adjacency is
formed on the vPC VLAN. Routing adjacency between a Layer 3 device and a vPC peer is formed without
Layer 3 inter-switch links between the vPC peers. Adjacency is formed on the vPC peer-link. There is faster
convergence when a link or device fails for all traffic. vPC loop avoidance mechanism is available for all
traffic.
Figure 4: Layer 3 Over vPC Solution
Configuring vPCs
14
Configuring vPCs
Layer 3 over VPC Support in Cisco NX-OS Release 7.2(0)D1(1)
Figure 5: Supported: Peering Over a vPC Interconnection Where the Router Peers with Both the vPC Peers.
Figure 6: Supported: Peering Over an STP Interconnection Using a vPC VLAN Where the Router Peers with Both the vPC Peers.
Configuring vPCs
15
Configuring vPCs
Layer 3 over VPC Support in Cisco NX-OS Release 7.2(0)D1(1)
Figure 7: Supported: Peering Over an Orphan Device with Both the vPC Peers.
Figure 8: Supported: Peering Over a vPC Interconnection Where Each Nexus Device Peers with Two vPC Peers.
Configuring vPCs
16
Configuring vPCs
Layer 3 over VPC Support in Cisco NX-OS Release 7.2(0)D1(1)
Figure 9: Supported: Peering with vPC Peers Over FEX vPC Host Interfaces
The FEX is connected to Nexus in straight-through topology. The router peers with both Nexus boxes over
satellite ports. Layer 3 over vPC in FEX Active-Active mode vPC is not supported.
Figure 10: Unsupported: Peering Across vPC Interfaces with Unequal Layer 3 Metrics
Configuring vPCs
17
Configuring vPCs
Layer 3 over VPC Support in Cisco NX-OS Release 7.2(0)D1(1)
Figure 11: Unsupported: Peering Over vPC+ Interfaces in Cisco NX-OS 7.2(0)D1(1)
Configuring vPCs
18
Configuring vPCs
vPC Domain
Figure 13: Unsupported: Route Peering with Orphan Device with Both the vPC+ Peers
Figure 14: Unsupported: Peering Over PC Interconnection and Over vPC+ Peer Link Using vPC VLAN
vPC Domain
You can use the vPC domain ID to identify the vPC peer links and the ports that are connected to the vPC
downstream devices.
The vPC domain is also a configuration mode that you use to configure the keepalive messages and other
vPC peer link parameters rather than accept the default values. See the “Configuring vPCs” section for more
information about configuring these parameters.
To create a vPC domain, you must first create a vPC domain ID on each vPC peer device using a number
from 1 to 1000. You can have only one vPC domain per VDC.
You must explicitly configure the port channel that you want to act as the peer link on each device. You
associate the port channel that you made a peer link on each device with the same vPC domain ID to form a
single vPC domain. Within this domain, the system provides a loop-free topology and Layer 2 multipathing.
You can only configure these port channels and vPC peer links statically. All ports in the vPC on each of the
vPC peer devices must be in the same VDC. You can configure the port channels and vPC peer links either
using LACP or no protocol. We recommend that you use LACP with the interfaces in active mode to configure
port channels in each vPC, which ensures an optimized, graceful recovery in a port-channel failover scenario
and provides configuration checks against configuration mismatches among the port channels themselves.
The vPC peer devices use the vPC domain ID that you configure to automatically assign a unique vPC system
MAC address. Each vPC domain has a unique MAC address that is used as a unique identifier for the specific
vPC-related operations, although the devices use the vPC system MAC addresses only for link-scope operations,
such as LACP. We recommend that you create each vPC domain within the contiguous Layer 2 network with
Configuring vPCs
19
Configuring vPCs
vPC Topology
a unique domain ID. You can also configure a specific MAC address for the vPC domain, rather than having
the Cisco NX-OS software assign the address.
See the “Cisco Fabric Services Over Ethernet” section for more information about displaying the vPC MAC
table. After you create a vPC domain, the Cisco NX-OS software creates a system priority for the vPC domain.
You can also configure a specific system priority for the vPC domain.
Note When manually configuring the system priority, you must ensure that you assign the same priority value on
both vPC peer devices. If the vPC peer devices have different system priority values, vPC does not come up.
vPC Topology
The figure below shows a basic configuration in which the Cisco Nexus 7000 Series device ports are directly
connected to another switch or host and are configured as part of a port channel that becomes part of a vPC.
Figure 15: Switch vPC Topology
In the figure, vPC 20 is configured on port channel 20, which has Eth1/10 on the first device and Eth2/1 on
the second as member ports.
From Cisco NX-OS Release 5.2(1), you can configure a vPC from the peer devices through Fabric Extenders
(FEXs), as shown in the figure below.
Configuring vPCs
20
Configuring vPCs
Physical Port vPCs
In the figure, each FEX is single-homed (straight-through FEX topology) with a Cisco Nexus 7000 Series
device. The host interfaces on this FEX are configured as port channels and those port channels are configured
as vPCs. Eth100/1/1 and Eth102/1/5 are configured as members of PO200, and PO200 is configured for vPC
200.
In both topologies, port channels P020 and P0200 must be configured identically on the peer switches and
configuration synchronization is used to synchronize the configurations of the vPC switches. See Cisco Nexus
2000 Series Fabric Extender Software Configuration Guide for Cisco Nexus 7000 Series Switches, Release
7.x for more information about configuring FEX ports.
Configuring vPCs
21
Configuring vPCs
Compatibility Parameters for vPC Interfaces
• Provides accounting logs and system logs for the physical port, rather than the port-channel.
• Supports large FEX setups. This feature is best suited for port-channel vPC with only one interface.
• Expands the limits of vPC by decoupling the configuration and deployment from the port-channel
constructs.
• Enables additional enhancement to extend FCOE support on physical port on the vPC, thus enabling
multipathing for the Ethernet traffic while preserving existing constructs for FCOE support.
Note Enter the show vpc consistency-parameters command to display the configured values on all interfaces in
the vPC. The displayed configurations are only those configurations that would limit the vPC peer link and
vPC from coming up.
The compatibility check process for vPCs differs from the compatibility check for regular port channels. See
“Configuring Port Channels” for information about regular port channels.
Configuring vPCs
22
Configuring vPCs
Configuration Parameters That Must Be Identical
Note You must ensure that all interfaces in the vPC have the identical operational and configuration parameters
listed in this section.
Note Enter the show vpc consistency-parameters command to display the configured values on all interfaces in
the vPC. The displayed configurations are only those configurations that would limit the vPC peer link and
vPC from coming up.
The devices automatically check for compatibility for some of these parameters on the vPC interfaces. The
per-interface parameters must be consistent per interface, and the global parameters must be consistent globally:
• Port-channel mode: on, off, or active (port-channel mode can, however, be active/passive on each side
of the vPC peer)
• Link speed per channel
• Duplex mode per channel
• Trunk mode per channel:
• Native VLAN
• VLANs allowed on trunk
• Tagging of native VLAN traffic
Configuring vPCs
23
Configuring vPCs
Configuration Parameters That Should Be Identical
The following parameters were added in Cisco NX-OS Release 6.2(6) for physical port vPCs:
• Native VLAN
• Port mode
• Interface type
• VLAN xLT mapping
• vPC card type
• Shared mode
If any of these parameters are not enabled or defined on either device, the vPC consistency check ignores
those parameters.
Note To ensure that none of the vPC interfaces are in the suspend mode, enter the show vpc brief and show vpc
consistency-parameters commands and check the syslog messages.
• Port security
• Cisco Trusted Security (CTS)
• Port security
• Cisco Trusted Security (CTS)
• Dynamic Host Configuration Protocol (DHCP) snooping
Configuring vPCs
24
Configuring vPCs
Consequences of Parameter Mismatches
To ensure that all the configuration parameters are compatible, we recommend that you display the
configurations for each vPC peer device once you configure the vPC.
vPC Number
Once you have created the vPC domain ID and the vPC peer link, you create port channels to attach the
downstream device to each vPC peer device. That is, you create one port channel to the downstream device
from the primary vPC peer device and you create another port channel to the downstream device from the
secondary peer device.
Note We recommend that you configure the ports on the downstream devices that connect to a host or a network
device that is not functioning as a switch or a bridge as STP edge ports. See the Cisco Nexus 7000 Series
NX-OS Layer 2 Switching Configuration Guide for more information about STP port types.
On each vPC peer device, you assign a vPC number to the port channel that connects to the downstream
device. You will experience minimal traffic disruption when you are creating vPCs. To simplify the
Configuring vPCs
25
Configuring vPCs
vPC Shutdown
configuration, you can assign the vPC ID number to every port channel to be the same as the port channel
itself (that is, vPC ID 10 for port channel 10).
Note The vPC number that you assign to the port channel that connects to the downstream device from the vPC
peer device must be identical on both vPC peer devices.
vPC Shutdown
The vPC Shutdown feature enables a user to isolate a switch from a vPC complex before it is debugged,
reloaded, or even removed physically, so that the vPC traffic passing through the peer vPC switch in the vPC
complex is not affected.
When the user executes the shutdown command, the MCEC module (MCECM) stops sending out-of-band
(OOB) keep-alive messages and also brings down all the vPC ports, SVIs, and the peer-link. On detection of
the peer-link going down and the non-availability of the keep-alive messages, the peer vPC switch takes over
as the primary peer. As the keep-alive messages are not received, the peer vPC switch does not bring up the
vPC peer-link even after a flap. The isolated vPC switch keeps all the vPCs down as the peer-link is down.
The vPC orphan port suspends configured orphan ports.
When the user executes the no form of this command, the switch is brought back into the vPC complex with
minimal disruption of the network traffic. Executing the no form of this command, starts the keepalives, brings
up the peer links, and consecutively brings up all the vPCs.
When executed on the primary switch, the shutdown command dual-active status is established.
Orphan ports lose connectivity when the vPC shutdown command is executed.
Cisco NX-OS services saves the shutdown command in the persistent storage service (PSS). The command
is restored when the switch reloads. The shutdown command is saved as vPC configuration. The shutdown
command executed again along with the vPC configuration, if it has been copied to the startup configuration.
The shutdown command is restored when the switch reloads
Configuring vPCs
26
Configuring vPCs
vPC shutdown Command for a Switch in FEX Active-Active Mode
All line cards and the remote line cards, including FEX Active-Active, upgrade to higher version of the
software image. This happens because the FEX Active-Active is offline on the inactive peer.
Consecutively, when the inactive peer becomes online due to the VPC no shutdown command, this peer will
still run the lower version of the software image. In such as case, the status of FEX Active-Active toggles
between AA version mismatch and Offline in this peer. This is because both the peers run different versions
of the software image. To avoid this situation, the user should not bring up the Peer 2, or execute the VPC
shutdown command on it, until the Peer 2 is also upgraded to higher version software image.
Note You must attach a downstream device using a port channel to both vPC peer devices.
To connect to the downstream device, you create a port channel to the downstream device from the primary
vPC peer device and you create another port channel to the downstream device from the secondary peer device.
On each vPC peer device, you assign a vPC number to the port channel that connects to the downstream
device. You will experience minimal traffic disruption when you are creating vPCs.
Configuring vPC Peer Links and Links to the Core on a Single Module
Note We recommend that you configure the vPC peer links on dedicated ports of different modules to reduce the
possibility of a failure. For the best resiliency scenario, use at least two modules.
From Cisco NX-OS Release 4.2, if you must configure all the vPC peer links and core-facing interfaces on a
single module, you should configure, using the command-line interface, a track object and a track list that is
associated with the Layer 3 link to the core and on all vPC peer links on both vPC peer devices. You use this
Configuring vPCs
27
Configuring vPCs
Configuring vPC Peer Links and Links to the Core on a Single Module
configuration to avoid dropping traffic if that particular module goes down because when all the tracked
objects on the track list go down, the system does the following:
• Stops the vPC primary peer device sending peer-keepalive messages, which forces the vPC secondary
peer device to take over.
• Brings down all the downstream vPCs on that vPC peer device, which forces all the traffic to be rerouted
in the access switch toward the other vPC peer device.
Once you configure this feature and if the module fails, the system automatically suspends all the vPC links
on the primary vPC peer device and stops the peer-keepalive messages. This action forces the vPC secondary
device to take over the primary role and all the vPC traffic to go to this new vPC primary device until the
system stabilizes.
You should create a track list that contains all the links to the core and all the vPC peer links as its object.
Enable tracking for the specified vPC domain for this track list. Apply this same configuration to the other
vPC peer device. See the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide for information
about configuring object tracking and track lists.
See the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide for information about
configuring object tracking.
Note This example uses Boolean OR in the track list and forces all traffic to the vPC peer device only for a complete
module failure. Note that the Boolean AND operation is not supported with vPC object tracking.
A vPC deployment with a single Cisco Nexus 7000 Series M132XP-12 module or M108XP-12 module, where
the L3 core uplinks and vPC peer-link interfaces are localized on the same module, is vulnerable to access
layer isolation if the 10-Gbps module fails on the primary vPC (vPC member ports are defined on both 1-Gbps
line cards and on 10-Gbps line card).
To configure a track list to switch over a vPC to the remote peer when all related interfaces on a single module
fail, follow these steps:
1. Configure track objects on an interface (Layer 3 to core) and on a port channel (vPC peer link).
2. Create a track list that contains all the interfaces in the track list using the Boolean OR to trigger when
all objects fail.
Configuring vPCs
28
Configuring vPCs
vPC Interactions with Other Features
This example shows how to display information about the track objects:
Configuring vPCs
29
Configuring vPCs
vPC Peer Links and STP
Note When manually configuring the system priority, you must ensure that you assign the same priority value on
both vPC peer devices. If the vPC peer devices have different system priority values, vPC does not come up.
Configuring vPCs
30
Configuring vPCs
vPC Peer Links and STP
Note If any of these parameters are misconfigured, the Cisco NX-OS software suspends all interfaces in the vPC.
Check the syslog and enter the show vpc brief command to see if the vPC interfaces are suspended.
Ensure that the following STP interface configurations are identical on both sides of the vPC peer links or
you may see unpredictable behavior in the traffic flow:
• BPDU Filter
• BPDU Guard
• Cost
• Link type
• Priority
• VLANs (PVRST+)
Note Display the configuration on both sides of the vPC peer link to ensure that the settings are identical.
You can use the show spanning-tree command to display information about the vPC when that feature is
enabled. See the Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide for an example.
We recommend that you configure the ports on the downstream devices as STP edge ports. You should
configure all host ports connected to a switch as STP edge ports. See the Cisco Nexus 7000 Series NX-OS
Layer 2 Switching Configuration Guide for more information about STP port types.
Note If you bridge two VLANs on a Nexus 7000 peer-switch, with an Adaptive Security Appliance (ASA) in a
transparent mode, the switch puts one of the VLAN in a STP dispute. To avoid this, disable peer-switch or
STP on the ports.
Configuring vPCs
31
Configuring vPCs
vPC Peer Switch
Note The Peer-switch feature on networks that use vPC and STP-based redundancy is not supported. If the vPC
peer-link fails in a hybrid peer-switch configuration, you can lose traffic. In this scenario, the vPC peers use
the same STP root ID as well as the same bridge ID. The access switch traffic is split in two with half traffic
going to the first vPC peer and the other half traffic to the second vPC peer. With peer link failure, there is
no impact to the north/south traffic but the east/west traffic is lost.
See the Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide for information about STP
enhancement features and Rapid PVST+.
From Cisco NX-OS Release 6.2(2), this feature is automatically enabled when the mode auto command is
used. See the “Enabling Certain vPC Commands Automatically” section for more information about using
this command.
Note Only an F2-series module supports multicast load balancing. On an F1-series module, the configuration is
supported, but load balancing does not occur.
Note The fabricpath multicast load-balance command is required for configuring vPC+ with FEX ports.
See the Cisco Nexus 7000 Series NX-OS FabricPath Configuration Guide for more detailed information on
enabling designated forwarders on vPCs.
Configuring vPCs
32
Configuring vPCs
vPC and ARP or ND
Note From Cisco NX-OS Release 6.2(2), you can use the mode auto command to automatically enable this feature.
See the “Enabling Certain vPC Commands Automatically” section for information about using this command.
Note The Cisco NX-OS software for the Nexus 7000 Series devices does not support Product Independent Multicast
(PIM), Source-Specific Multicast(SSM) or Bidirectional (BIDR) on a vPC. The Cisco NX-OS software fully
supports PIM Any Source Multicast (ASM) on a vPC.
The software keeps the multicast forwarding state synchronized on both of the vPC peer devices. The IGMP
snooping process on a vPC peer device shares the learned group information with the other vPC peer device
through the vPC peer link; the multicast states are always synchronized on both vPC peer devices. The PIM
process in vPC mode ensures that only one of the vPC peer devices forwards the multicast traffic to the
receivers.
Each vPC peer is a Layer 2 or Layer 3 device. Multicast traffic flows from only one of the vPC peer devices.
You might see duplicate packets in the following scenarios:
• Orphan hosts
• When the source and receivers are in the Layer 2 vPC cloud in different VLANs with multicast routing
enabled and a vPC member link goes down.
Ensure that you dual-attach all Layer 3 devices to both vPC peer devices. If one vPC peer device goes down,
the other vPC peer device continues to forward all multicast traffic normally.
See the Cisco Nexus 7000 Series NX-OS Interfaces Command Reference for information about commands
that display information on a vPC and multicast.
The following outlines vPC PIM and vPC IGMP/IGMP snooping:
• vPC PIM—The PIM process in vPC mode ensures that only one vPC peer device forwards multicast
traffic. The PIM process in vPC mode synchronizes the source state with both vPC peer devices and
elects which vPC peer device forwards the traffic.
Configuring vPCs
33
Configuring vPCs
Multicast PIM Dual DR (Proxy DR )
• vPC IGMP/IGMP snooping—The IGMP process in vPC mode synchronizes the designated router (DR)
information on both vPC peer devices. Dual DRs are available for IGMP when you are in vPC mode.
Dual DRs are not available when you are not in vPC mode, because both vPC peer devices maintain the
multicast group information between the peers.
Note A PIM neighbor relationship between a vPC VLAN (a VLAN that is carried on a vPC peer link) and a
downstream vPC-attached Layer 3 device is not supported, which can result in dropped multicast packets. If
a PIM neighbor relationship is required with a downstream Layer 3 device, a physical Layer 3 interface must
be used instead of a vPC interface.
You should enable or disable IGMP snooping identically on both vPC peer devices, and all the feature
configurations should be identical. IGMP snooping is on by default.
See the Cisco Nexus 7000 Series NX-OS Multicast Routing Configuration Guide for more information about
multicasting.
VPC Device1:
------------
(*,G)
oif1 (igmp)
VPC Device2:
------------
(*,G)
oif1 (igmp)
Configuring vPCs
34
Configuring vPCs
PIM DUAL DR and IP PIM PRE-BUILD SPT with VPC Peer Link on F2 Modules
the nonforwarder (S,G) has 0 OIFs. Therefore, only the forwarder sends PIM (S,G) joins toward the source
as shown in this example:
(S,G)
oif1 (mrib)
VPC Device2:
------------
(*,G)
oif1 (igmp)
(S,G)
NULL
In the case of a failure (for example, a Layer 3 Reverse Path Forwarding(RPF) link on the forwarder becomes
inoperational or the forwarder gets reloaded), if the current nonforwarder ends up becoming the forwarder,
it has to start sending PIM joins for (S,G) toward the source to pull the traffic. Depending upon the number
of hops to reach the source, this operation might take some time (PIM is a hop-by-hop protocol).
To eliminate this issue and get better convergence, use the ip pim pre-build-spt command. This command
enables PIM send joins even if the multicast route has 0 OIFs. In a vPC device, the nonforwarder sends PIM
(S,G) joins upstream toward the source. The downside is that the link bandwidth upstream from the
nonforwarder gets used for the traffic that is ultimately dropped by it. The benefits that result with better
convergence far outweigh the link bandwidth usage. Therefore, we recommend that you use this command
if you use vPCs.
PIM DUAL DR and IP PIM PRE-BUILD SPT with VPC Peer Link on F2 Modules
In the vPC implementation in F2-mode, because of a hardware limitation, the PIM dual DR mode is disabled.
As a result, only the PIM DR adds the OIF, and the states are shown in this example:
VPC Device2:
------------
(*,G) will not be created.
When the source traffic is received, only vPC Device 1 adds the (S,G) route.
VPC Device2:
------------
Configuring vPCs
35
Configuring vPCs
vPC Peer Links and Routing
In this case (with F2 mode), even if you enter the ip pim pre-build-spt command, no value is added because
the corresponding (S,G) route is not created in the first place.
When the source traffic is received, associated OIFs are inherited by the (S,G) routes as shown in this example:
(S,G)
oif1 (mrib)
(S,G)
oif2 (mrib)
In the case of a vPC peer link with F2 modules, you do not need to enter the ip pim pre-build-spt command
because PIM sends (S,G) joins upstream because associated routes have a non-NULL oiflist.
Note Do not enter the ip pim pre-build-spt command if the vPC feature is enabled in F2 mode.
Configuring vPCs
36
Configuring vPCs
Cisco Fabric Services Over Ethernet
VRRP acts similarly to HSRP when running on vPC peer devices. You should configure VRRP the same way
that you configure HSRP. For GLBP, the forwarders on both vPC peer devices forward traffic.
When the primary vPC peer device fails over to the secondary vPC peer device, the FHRP traffic continues
to flow seamlessly.
We recommend that you configure routing adjacency between the two vPC peer devices to act as a backup
routing path. If one vPC peer device loses Layer 3 uplinks, the vPC can redirect the routed traffic to the other
vPC peer device and leverage its active Layer 3 uplinks.
You can configure the inter-switch link for a backup routing path in the following ways:
• Create a Layer 3 link between the two vPC peer devices.
• Use the non-VPC VLAN trunk with a dedicated VLAN interface.
• Use a vPC peer link with a dedicated VLAN interface.
We do not recommend that you configure the burnt-in MAC address option (use-bia) for HSRP or manually
configure virtual MAC addresses for any FHRP protocol in a vPC environment because these configurations
can adversely affect vPC load balancing. The HSRP use-bia option is not supported on vPCs. When you are
configuring custom MAC addresses, you must configure the same MAC address on both vPC peer devices.
From Cisco NX-OS Release 4.2(1), you can use the delay restore command to configure a restore timer that
delays the vPC coming back up until after the peer adjacency forms and the VLAN interfaces are back up.
This feature enables you to avoid packet drops when the routing tables might not be converged before the
vPC is once again passing traffic. Use the delay restore command to configure this feature.
To delay the VLAN interfaces on the restored vPC peer device from coming up, use the interfaces-vlan option
to the delay restore command.
See the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide for more information about
FHRPs and routing.
Note Do not enter the no cfs eth distribute or the no cfs distribute command. You must enable Cisco FSoE for
vPC functionality. If you do enter either of these commands with vPC enabled, the system displays an error
message.
Configuring vPCs
37
Configuring vPCs
vPC and Orphan Ports
When you enter the show cfs application command, the output displays “Physical-eth,” which shows the
applications that are using Cisco FSoE.
Cisco Fabric Service also transports data over TCP/IP. See the Cisco Nexus 7000 Series NX-OS System
Management Configuration Guide for more information about Cisco Fabric Service over IP.
Note The software does not support Cisco Fabric Service regions.
Shutdown LAN
Certain configuration and network parameters must be consistent across peer switches in order for physical
port vDCs to work. If an inconsistency impacting the network (Type 1) is detected, the secondary vPC leg
(the physical link between the access switch and the host) is brought down. With FCoE over physical port
vPC, vPC legs carry both FCoE and LAN traffic so that the FCoE and LAN link are both brought down. The
shutdown LAN feature enables you to shut down or bring up only the LAN VLANs on an Ethernet interface.
Configuring vPCs
38
Configuring vPCs
Restore on Reload
Restore on Reload
Note From Cisco NX-OS Release 5.2(1), the reload restore command and method is deprecated. We recommend
that you use the auto-recovery command and method.
From Cisco NX-OS Release 5.0(2), you can configure the Cisco Nexus 7000 Series device to restore vPC
services when its peer fails to come online by using the reload restore command. You must save this setting
in the startup configuration. On reload, the Cisco NX-OS software starts a user-configurable timer (the default
is 240 seconds). If the peer link port comes up physically or if the peer-keepalive is functional, the timer is
stopped and the device waits for the peer adjacency to form.
If at timer expiration no peer-keepalive or peer link up packets were received, the Cisco NX-OS software
assumes the primary STP role and the primary LACP role. The software reinitializes the vPCs, bringing up
its local ports. Because there are no peers, the consistency check is bypassed for the local vPC ports. The
device elects itself to be STP primary regardless of its role priority and also acts as the master for LACP port
roles.
Autorecovery
From Cisco NX-OS Release 5.2(1), you can configure the Cisco Nexus 7000 Series device to restore vPC
services when its peer fails to come online by using the auto-recovery command. You must save this setting
in the startup configuration. On reload, if the peer link is down and three consecutive peer-keepalive messages
are lost, the secondary device assumes the primary STP role and the primary LACP role. The software
reinitialize the vPCs, bringing up its local ports. Because there are no peers, the consistency check is bypassed
for the local vPC ports. The device elects itself to be the STP primary regardless of its role priority and also
acts as the master for LACP port roles.
From Cisco NX-OS Release 6.2(2), you can use the mode auto command to automatically enable this feature.
See the “Enabling Certain vPC Commands Automatically” section for information about using this command.
From Cisco NX-OS Release 7.2(0)D1(1), the secondary device assumes primary role, if the primary peer is
down and 15 keep-alives messages are lost.
From Cisco NX-OS Release 7.2(0)D1(1), to enable the secondary peer to take over as the primary peer if the
secondary peer misses 15 keep-alives from primary peer, you can configure auto-recovery command. When
the switch reloads, the auto-recovery timer starts, and the switch takes on the primary STP role if the peer
switch does not respond to it.
When vPC shutdown command is configured, auto-recovery is blocked.
From Cisco NX-OS Release 6.2.(2), for auto recovery to occur during the initial boot, the logical peer link
must be down, and no peer keepalive messages must be received. In earlier releases, auto recovery did not
occur if peer kepalive messages were not received and the physical peer link was set to Up status.
Configuring vPCs
39
Configuring vPCs
High Availability
High Availability
During an In-Service Software Upgrade (ISSU), the software reload process on the first vPC device locks its
vPC peer device by using CFS messaging over the vPC communications channel. Only one device at a time
is upgraded. When the first device completes its upgrade, it unlocks its peer device. The second device then
performs the upgrade process, locking the first device as it does so. During the upgrade, the two vPC devices
temporarily run different releases of Cisco NX-OS, however the system functions correctly because of its
backward compatibility support.
See the Cisco Nexus 7000 Series NX-OS High Availability and Redundancy Guide for complete information
about high-availability features.
Note Always check the existing device role priority before configuring the vpc role
preempt command. Configure no port-channel limit under the vpc domain
command before configuring the vpc role preempt command.
• Dual-active recovery—In a dual-active recovery scenario, the vPC primary switch continues to be
(operational) primary, but the vPC secondary switch becomes the targeted primary switch and keeps its
vPC member ports up. You can use the vPC hitless feature and restore the device roles. After the
Dual-active recovery, if one side is operational primary and the other side operational secondary, then
you can use the the vpc role preempt command to restore the device roles to be primary and secondary.
Configuring vPCs
40
Configuring vPCs
Benefits of vPC Configuration Synchronization
synchronization eliminates these problems by allowing you to configure one switch and automatically
synchronize the configuration on the peer switch.
In a vPC topology, each Cisco Nexus 7000 Series switch must have some matching parameters. You can use
a vPC consistency check to verify that both Cisco Nexus 7000 Series switches have the same configuration
(Type 1 or Type 2). If they do not match, depending on whether it is a global (for example, spanning-tree port
mode), a port-level (for example, speed, duplex, or channel-group type), or even a port-channel interface, the
vPC can go into a suspended state or a VLAN can go into a blocking state on both peer switches. As a result,
you must ensure that the configuration from one switch is copied identically to the peer switch.
Configuration synchronization allows you to synchronize the configuration between a pair of switches in a
network. Configuration synchronization and vPCs are two independent features and configuration
synchronization does not eliminate vPC consistency checks. The checks will continue. If there is a configuration
mismatch, the vPC can still go into a suspended state.
In a FEX Active-Active setup:
• All the Host Interfaces (HIFs) ports are mapped to the internal vPC.
• The vPC Config-Sync feature listens to the internal vPC creation notification and triggers a merge of the
HIF port configuration.
• All the future HIF configuration are synchronized with the peer switch, if the merge is successful.
• The status of HIF is marked as "peer out of synchronization" and the configuration of the interface is not
synchronized, if the merge fails.
• We recommend that you disable vpc-config-sync command before starting ASCII configuration. After
the ASCII configuration is completed, enable config-sync command for regular operation.
Configuring vPCs
41
Configuring vPCs
Supported Commands for vPC Configuration Synchronization
Note The show vpc config-sync cli syntax command lists all the commands that are enabled for configuration
synchronization. You cannot choose which commands are synchronized. For more information, see the Cisco
Nexus 7000 Series NX-OS Interfaces Command Reference.
• Type-1 configurations:
• Global configurations
• vPC member port-channel configurations
• vPC configurations.
Note The configurations can be given on either of the vPC peer switches.
Configuring vPCs
42
Configuring vPCs
Guidelines and Limitations for vPCs
See the Cisco Nexus 7000 Series NX-OS Unicast Routing Configuration Guide for further details about
OSPF.
• When you configure a static MAC address on a vPC switch, ensure to configure a corresponding static
MAC address on the other vPC switch. If you configure the static MAC address only on one of the vPC
switches, the other vPC switch will not learn the MAC address dynamically.
• In a vPC topology, when a Multichassis EtherChannel Trunk (MCT) link is shut down on a vPC primary
switch, and is followed by the vPC primary switch reload, the vPC secondary switch's ports do not come
up immediately. This may cause a drop in traffic.
• Check that the necessary configuration parameters are compatible on both sides of the vPC peer link.
See the “Compatibility Parameters for vPC Interfaces” section for information about compatibility
recommendations.
• From Cisco NX-OS Release 7.2(0)D1(1), when you attach a Layer 3 device to a vPC domain, the peering
of routing protocols using a VLAN also carried on the vPC peer link is not supported. If routing protocol
adjacencies are needed between the vPC peer devices and a generic Layer 3 device, you must use physical
Configuring vPCs
43
Configuring vPCs
Guidelines and Limitations for vPCs
routed interfaces for the interconnection. Use of the vPC peer-gateway feature does not change this
requirement.
• From Cisco NX-OS Release 8.1(x), in a vPC topology, non-MAC-in-MAC-encapsulated traffic can be
lost if all the following conditions are met:
• The non-MAC-in-MAC-encapsulated traffic that is routed through FabricPath enabled VLANs.
• The packets have to hit the vPC switch from a non-core interface (an orphan port or from one of
the hosts hanging off the vPC leg).
• The packet must be destined to one of the hosts hanging off the vPC leg. It has to be an Layer 3
routing case.
• The no port-channel limit command is configured under vPC.
• The vPC leg connecting to the vPC host is down and the traffic is routed through the vPC peer link.
• The vPC peer link is on M3 line card modules.
In such a scenario, we recommend that you do not configure the no port-channel limit command under
vPC.
• The STP port cost is fixed to 200 in a vPC environment.
• You might experience minimal traffic disruption while configuring vPCs.
• Jumbo frames are enabled by default on the vPC peer link.
• Routing protocol adjacency over a fabric path VLAN is not supported.
• The software does not support BIDR PIM or SSM on vPCs.
• The software does not support DHCP snooping, DAI, or IPSG in a vPC environment.
• The software does not support CFS regions.
• Port security is not supported on port channels.
• BFD for HSRP is not supported in a vPC environment.
• A single vPC domain between two VDCs on the same physical Cisco Nexus 7000 device is not supported.
• When Layer 3 over vPC feature is enabled using the layer3 peer-router command, BFD enabled with
echo function is not supported on a switched virtual interface (SVIs) using vPC VLANs that are part of
a vPC peer-link.
Configuring vPCs
44
Configuring vPCs
Guidelines and Limitations for vPCs
FCoE over physical port vPC has the following guidelines and limitations:
• FCoE is supported only on trunk ports.
• FCoE is supported only for shared interfaces.
• FCoE is not supported on port channel vPCs.
• FCoE over a physical port vPC is supported in storage VDCs of type F2 only.
• FCoE over a physical port vPC is not supported in storage VDCs because Layer 2 multipathing over
physical port vPCs are supported only for LAN.
• FCoE over a VPC+ is not supported.
• The shutdown LAN configuration is supported on shared interfaces only.
• The Link Layer Discovery Protocol (LLDP) must be enabled in the Ethernet VDC for shutdown LAN.
Hitless vPC role change feature has the following guidelines and limitations:
• vPC STP hitless role change feature is supported only from Cisco Nexus 7.3(0)D1(1) release onwards.
• vPC role change can be performed from either of the peer devices.
• If the original secondary device has higher role priority value than the original primary device, role
swapping cannot be performed. Change the role priority on either vPC device so that the value of the
original secondary device is lower than the original primary one. To view the existing role of a device,
use the show vpc role command on local and peer switch.
• On vPC+, enable the fabricpath multi path load-balance command before configuring the vPC hitless
role change feature. The Forwarding Tag (FTag) scheme is used in vPC+ to seamlessly configure the
role change. To ensure FTag scheme is used, you need to enable the no port channel limit command
on vPC+ as it has dependencies on the fabricpath multi path load-balance command.
• Enable the no port channel limit command on vPC+ before configuring the vPC hitless role change
feature. If this command is not enabled, vPC hitless role change cannot be configured and an error
message is displayed. Configure this command on both the vPC devices.
Configuring vPCs
45
Configuring vPCs
Configuring vPCs
Note Always check the existing configured role priority before configuring vPC hitless
role change feature.
• In a vPC domain, enable the peer-switch command, where both vPC peers have same STP priorities,
and ensure it is operational before issuing a role change. If you do not enable the peer-switch command,
it can lead to convergence issues.
• vPC hitless role change cannot be performed if there are any Type 1 inconsistencies on the peer devices.
• When the peer-switch feature is enabled under a vPC domain, ensure that the vPC pair is configured as
spanning-tree root for all the vPC VLANs.
Configuring vPCs
Enabling vPCs
Before you begin
• You must enable the vPC functionality before you can configure and use vPCs.
• Before you configure this feature for the entire system, ensure that you are in the correct VDC. To change
the VDC, use the switchto vdc command.
Procedure
Step 4 (Optional) switch# show feature Displays which features are enabled on the
device.
Step 5 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to enable the vPC feature:
Configuring vPCs
46
Configuring vPCs
Disabling vPCs
Disabling vPCs
Note When you disable the vPC functionality, the device clears all the vPC configurations.
Procedure
Step 4 (Optional) switch# show feature Displays which features are enabled on the
device.
Step 5 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to disable the vPC feature:
Configuring vPCs
47
Configuring vPCs
Configuring a vPC Keepalive Link and Messages
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 4 (Optional) switch# show vpc brief Displays brief information about each vPC
domain.
Step 5 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to create a vPC domain:
This example shows how to enter the vpc-domain command mode to configure an existing vPC
domain:
Note You must configure the vPC peer-keepalive link before the system can form the vPC peer link.
You can configure the destination IP for the peer-keepalive link that carries the keepalive messages. Optionally,
you can configure other parameters for the keepalive messages.
Note We recommend that you configure a separate VRF instance and put a Layer 3 port from each vPC peer device
into that VRF for the vPC peer-keepalive link. Do not use the peer link itself to send vPC peer-keepalive
messages. For information about creating and configuring VRFs, see the Cisco Nexus 7000 Series NX-OS
Unicast Routing Configuration Guide. Ensure that both the source and destination IP addresses use for the
peer-keepalive message are unique in your network.
Configuring vPCs
48
Configuring vPCs
Configuring a vPC Keepalive Link and Messages
The management port and management VRF are the defaults for these keepalive messages.
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 3 switch(config-vpc-domain)# peer-keepalive Configures the IPv4 address for the remote end
destination ip address [hold-timeout secs | of the vPC peer-keepalive link.
interval msecs {timeout secs} | {precedence
Note The system does not form the vPC
{prec-value | network | internet | critical |
peer link until you configure a vPC
flash-override | flash | immediate | priority |
peer-keepalive link.
routine}} | {tos {tos-value | max-reliability |
max-throughput | min-delay | Ensure that you either use IPv4
min-monetary-cost | normal}} | tos-byte address to configure the
tos-byte-value} | source ipaddress | udp-port peer-keepalive link.
number | vrf {name | management |
vpc-keepalive}] The management ports and VRF are the
defaults.
Note We recommend that you configure
a separate VRF and use a Layer 3
port from each vPC peer device in
that VRF for the vPC peer-keepalive
link. For more information about
creating and configuring VRFs, see
the Cisco Nexus 7000 Series NX-OS
Unicast Routing Configuration
Guide.
Step 5 (Optional) switch# show vpc statistics Displays information about the configuration
for the keepalive messages.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Configuring vPCs
49
Configuring vPCs
Creating a vPC Peer Link
Example
For more information about configuring VRFs, see the Cisco Nexus 7000 Series NX-OS Unicast
Routing Configuration Guide.
This example shows how to configure the destination and source IP address and VRF for the
vPC-peer-keepalive link:
Procedure
Step 2 switch(config)# interface port-channel Selects the port channel that you want to use as
channel-number the vPC peer link for this device, and enters
interface configuration mode.
Step 3 (Optional) switch(config-if)# switchport mode Configures this interface in trunk mode.
trunk
Step 4 (Optional) switch(config-if)# switchport trunk Configures the permitted VLAN list.
allowed vlan vlan-list
Step 5 switch(config-if)# vpc peer-link Configures the selected port channel as the vPC
peer link, and enters vpc-domain configuration
mode.
Configuring vPCs
50
Configuring vPCs
Configuring Physical Port vPC on F2, F3, and FEX
Step 7 (Optional) switch# show vpc brief Displays information about each vPC, including
information about the vPC peer link.
Step 8 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure a vPC peer link:
Step 2 switch(config)# interface name number Specifies the interface that you want to add to
a physical port, and enters the interface
configuration mode.
Step 4 switch(config-if)# vpc number Configures the selected physical interface into
the vPC to connect to the downstream device,
and enters interface vPC configuration mode.
You can use any module in the device for the
physical interface. The range is from 1 and
4096.
Configuring vPCs
51
Configuring vPCs
Creating VLAN on vPC
Step 5 Required: switch(config-if-vpc)# lacp mode Enables LACP on the physical port.
active
Note Static mode can also be used.
Step 6 Required: switch(config-if-vpc)# exit Exits the interface vPC configuration mode.
Step 9 (Optional) switch# show running-config Displays information about the interface.
interface name number
Example
This example shows how to configure Physical Port vPC on F2, F3, and FEX modules:
Interface Ethernet1/1
no shutdown
Switchport
vpc 1
lacp mode active
Configuring vPCs
52
Configuring vPCs
Configuring Layer 3 over vPC for F2E, F3 Modules
Procedure
Step 2 switch(config)# vlan 200-299 Configures VLANs in the range 200 to 299 and
enters the VLAN configuration mode.
Example
This example shows how to configure 100 VLANs and name each of them:
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Configuring vPCs
53
Configuring vPCs
Configuring a vPC Peer Gateway
Step 6 (Optional) switch# show vpc brief (Optional) Displays brief information about
each vPC domain.
Step 7 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure a Layer 3 over vPC for F2E, F3 modules:
This example shows how to verify if the Layer 3 over vPC for F2E, F3 modules feature is configured:
Configuring vPCs
54
Configuring vPCs
Configuring a Graceful Consistency Check
devices and a generic Layer 3 device, you must use physical routed interfaces for the interconnection. Use of
the vPC peer-gateway feature does not change this requirement.
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 6 (Optional) switch# show vpc brief Displays brief information about each vPC,
including information about the vPC peer link..
Step 7 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Procedure
Configuring vPCs
55
Configuring vPCs
Configuring vPC Shutdown
Step 3 switch(config-vpc-domain)# graceful Specifies that only the links on the secondary
consistency-check peer device are suspended when a mismatch is
detected in a mandatory compatibility
parameter.
Use the no form of this command to disable the
feature.
Step 5 (Optional) switch# show vpc brief Displays brief information about each vPC
domain.
Example
This example shows how to enable the graceful consistency check feature:
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 3 switch(config-vpc-domain)# shutdown Shuts down the peer to isolate it for debugging,
reloading, or physically removing it from the
vPC complex, and enables the peer vPC switch
to take over as the primary peer.
Configuring vPCs
56
Configuring vPCs
Configuring vPC Config Synchronization
Example
This example shows how to enable the graceful consistency check feature:
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 3 switch(config-vpc-domain)# config-sync Enables vPC configuration synchronization.
Note This command must be configured
on both the primary and secondary
switch.
The table below shows the process of configuration synchronization on switch 1 and switch 2:
Configuring vPCs
57
Configuring vPCs
Synchronizing Configuration for a Physical Port vPC
The above configuration is applied on the primary switch and is configuration synchronized to the secondary
switch.
The configuration is either successfully applied to both switches or will be failed on both.
The configuration is applied on the secondary switch and is configuration synchronized to the primary
switch.
Note The configuration can be applied to either switch.
Procedure
Step 2 switch(config)# interface type slot/port Specifies the vPC physical port, and enters
interface configuration mode.
Configuring vPCs
58
Configuring vPCs
Synchronizing Configuration for a Physical Port vPC
Step 4 (Optional) switch(config-if)# show Displays the running configuration for the
running-config interface ethernet slot/port physical port.
Asymmetric Mapping
The table below shows the process of enabling configuration synchronization (asymmetric mapping) on the
vPC physical port on the primary and the secondary switch:
The physical port (ethernet1/1) is added to the vPC 100 domain on the primary switch.
vPC 100 is not configured on the secondary switch. The configuration will not be synchronized until vPC
100 is added to the secondary switch.
Following the configuration of vPC 100 to the secondary switch, the physical ports (interface ethernet2/3
on the secondary switch and interface ethernet1/1 on the primary switch) will be configuration synchronized.
Symmetric Mapping
The table below shows the process of enabling configuration synchronization (symmetric mapping) on the
vPC physical port on the primary and the secondary switch:
Configuring vPCs
59
Configuring vPCs
Synchronizing Configuration of vPC Member Port Channel
The physical port (ethernet1/1) is added to the vPC 100 domain on the primary switch. The physical port
(ethernet 1/1) is also present on the secondary switch.
The configuration of the physical port on both the primary and secondary switch will be kept in
synchronization.
Procedure
Step 2 switch(config)# interface port-channel Selects the port channel that you want to use as
channel-number the vPC peer link for this device, and enters
interface configuration mode.
Step 4 switch(config-if)# vpc vpc-id [sync {export | Moves port channel into a vPC and enters
import}] interface vPC configuration mode. The range
is from 1 to 4096.
• sync export enables the primary switch
configuration to be exported to the
secondary switch.
• sync import enables the secondary switch
configuration to be imported to primary
switch.
Step 5 (Optional) switch(config-if)# show Displays the running configuration for the port
running-config interface port-channel channel.
channel-number
Configuring vPCs
60
Configuring vPCs
Verifying vPC Configuration Synchronization
The table below shows the process of enabling configuration synchronization under port channel 10 on the
primary and the secondary switch:
interface port-channel10
switchport
vpc 10
The configuration is applied on the secondary switch and is configuration synchronized to the primary
switch.
Note The configuration can be applied to either switch.
The show running-config interface port-channel channel-number command shows that the configuration
synchronization for port channel 10 is successful:
Command Purpose
show vpc config-sync cli syntax Displays the list of commands that are able to be
configuration synchronized.
Configuring vPCs
61
Configuring vPCs
Checking Configuration Compatibility on a vPC Peer Link
Command Purpose
show vpc config-sync merge status Displays the merge status of the switch and of each
vPC interface.
show vpc config-sync status Displays the status of the last 10 operations of the
vPC configuration synchronization process.
• Displays merge status (success/failure).
• Displays the last action done by the vPC
configuration synchronization process and the
result of that action.
Procedure
Step 2 (Optional) switch(config)# show vpc Displays the status of those parameters that
consistency-parameters {global | interface must be consistent across all vPC interfaces.
port-channel channel-number}
Example
This example shows how to check that the required configurations are compatible across all the vPC
interfaces:
Note Messages regarding the vPC interface configuration compatibility are also logged to the syslog.
Note We recommend that you attach the vPC domain downstream port channel to two devices for redundancy.
Configuring vPCs
62
Configuring vPCs
Moving Other Port Channels into a vPC
To connect to the downstream device, you create a port channel from the downstream device to the primary
vPC peer device and you create another port channel from the downstream device to the secondary peer device.
On each vPC peer device, you assign a vPC number to the port channel that connects to the downstream
device. You will experience minimal traffic disruption when you are creating vPCs.
Procedure
Step 2 switch(config)# interface port-channel Selects the port channel that you want to use as
channel-number the vPC peer link for this device, and enters
interface configuration mode.
Step 3 switch(config-if)# vpc number Configures the selected port channel into the
vPC to connect to the downstream device. You
can use any module in the device for these port
channels. The range is from 1 and 4096.
Note The vPC number that you assign to
the port channel connecting to the
downstream device from the vPC
peer device must be identical on both
vPC peer devices.
Step 5 (Optional) switch# show vpc brief Displays brief information about each vPC
domain.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure a port channel to connect to the downstream device:
Configuring vPCs
63
Configuring vPCs
Enabling Certain vPC Commands Automatically
Note From Cisco NX-OS Release 6.2(2) and later releases, auto recovery is enabled by default. If you want to
disable auto recovery in Release 6.2(2) and later releases, you must use the no auto-recovery command to
explicitly disable auto recovery.
Procedure
Step 3 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 7 (Optional) switch# show running-config vpc Displays information about the vPC, including
the commands that are enabled.
Step 8 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Configuring vPCs
64
Configuring vPCs
Manually Configuring a vPC Domain MAC Address
Example
This example shows how to simultaneously enable the following commands: peer-gateway,
auto-recovery, fabricpath multicast load-balance, ip arp synchronize, and ipv6 nd synchronize.
Warning:
Enables restoring of vPCs in a peer-detached state after reload, will wait for 240 seconds
to determine if peer is un-reachable
switch(config-vpc-domain)# exit
switch(config)# exit
switch# show running-config vpc
version 6.2(2)
feature vpc
vpc domain 1
peer-gateway
auto-recovery
fabricpath multicast load-balance
ip arp synchronize
ipv6 nd synchronize
Procedure
Configuring vPCs
65
Configuring vPCs
Manually Configuring System Priority
Step 3 switch(config-vpc-domain)# system-mac Enters the MAC address that you want for the
mac-address specified vPC domain in the following format:
aaaa.bbbb.cccc.
Step 5 (Optional) switch# show vpc role Displays the vPC system MAC address.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to manually configure a vPC domain MAC address:
Note We recommend that you manually configure the vPC system priority when you are running LACP to ensure
that the vPC peer devices are the primary devices on LACP. When you manually configure the system priority,
ensure that you configure the same priority value on both vPC peer devices. If these values do not match, vPC
does not come up.
Procedure
Configuring vPCs
66
Configuring vPCs
Manually Configuring the vPC Peer Device Role
Step 3 switch(config-vpc-domain)# system-priority Enters the system priority that you want for the
priority specified vPC domain. The range of values is
from 1 to 65535. The default value is 32667.
Step 5 (Optional) switch# show vpc role Displays the vPC system MAC address.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to manually configure the vPC domain system priority:
Procedure
Configuring vPCs
67
Configuring vPCs
Configuring the Tracking Feature on a Single-Module vPC
Step 3 switch(config-vpc-domain)# role priority Enters the role priority that you want for the
priority vPC system priority.The range of values is from
1 to 65636, and the default value is 32667. A
lower value means that this switch has a better
chance of being the primary vPC.
Step 5 (Optional) switch# show vpc role Displays the vPC system priority.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to manually configure the role priority of the vPC peer device:
Configuring vPCs
68
Configuring vPCs
Configuring for Recovery After an Outage
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 5 (Optional) switch# show vpc brief Displays information about the tracked objects.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to put the previously configured track-list object into the vPC domain on
the vPC peer device:
Note From Cisco NX-OS Release 5.2(1), the reload restore command and procedure described in this section is
deprecated. We recommend that you use the auto-recovery command and procedure described in the
“Configuring an Autorecovery” section.
From Cisco NX-OS Release 5.0(2), you can configure the Cisco Nexus 7000 Series device to restore vPC
services when its peer fails to come online by using the reload restore command.
Configuring vPCs
69
Configuring vPCs
Configuring Reload Restore
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 3 switch(config-vpc-domain)# reload restore Configures the vPC to assume its peer is not
[delay time-out] functional and to bring up the vPC. The default
delay is 240 seconds. You can configure a
time-out delay from 240 to 3600 seconds.
Use the no form of the command to reset the
vPC to its default settings.
Step 5 (Optional) switch# show running-config vpc Displays information about the vPC, specifically
the reload status.
Step 6 (Optional) switch# show vpc Displays information about the vPC consistency
consistency-parameters interface parameters for the specified interface.
port-channel number
Step 7 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to set the vPC reload restore feature and save it in the switch startup
configuration:
Configuring vPCs
70
Configuring vPCs
Configuring an Autorecovery
version 5.0(2)
feature vpc
Configuring an Autorecovery
From Cisco NX-OS Release 5.2(1), you can configure the Cisco Nexus 7000 Series device to restore vPC
services when its peer fails to come online by using the auto-recovery command.
Note From Cisco NX-OS Release 6.2(2) and later releases, auto recovery is enabled by default. If you want to
disable auto recovery in Release 6.2(2) or a later release, you must use the no auto-recovery command to
explicitly disable auto recovery.
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Configuring vPCs
71
Configuring vPCs
Configuring the Suspension of Orphan Ports
Step 5 (Optional) switch# show running-config vpc Displays information about the vPC, specifically
the reload status.
Step 6 (Optional) switch# show vpc Displays information about the vPC consistency
consistency-parameters interface parameters for the specified interface.
port-channel number
Step 7 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to set the vPC autorecovery feature and save it in the switch startup
configuration:
Note From Cisco NX-OS Release 6.2 and earlier, configure the vPC orphan-port command on all the member ports
and bundle them into the port channel. For later releases, configure the command directly on the port-channel
interfaces.
Configuring vPCs
72
Configuring vPCs
Configuring the vPC Peer Switch
Procedure
Step 2 (Optional) switch(config)# show vpc Displays a list of the orphan ports.
orphan-ports
Step 3 switch(config)# interface port-channel Selects the port channel that you want to use as
channel-number the vPC peer link for this device, and enters
interface configuration mode.
Step 4 switch(config-if)# vpc orphan-ports suspend Configures the selected interface as a vPC
orphan port to be suspended by the secondary
peer in the case of a vPC failure.
Step 6 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure an interface as a vPC orphan port to be suspended by the
secondary peer in the case of a vPC failure:
Configuring vPCs
73
Configuring vPCs
Configuring a Pure vPC Peer Switch Topology
Note When using a non-VPC dedicated trunk link between the VPC peers, the non-VPC VLANs should have a
different global priority on the peers to prevent STP from blocking the VLANs.
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Step 6 (Optional) switch# show spanning-tree Displays a summary of the spanning tree port
summary states including the vPC peer switch.
Step 7 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure a pure vPC peer switch topology:
Configuring vPCs
74
Configuring vPCs
Configuring a Hybrid vPC Peer Switch Topology
Note When using a non-VPC dedicated trunk link between the VPC peers, the non-VPC VLANs should have a
different pseudo root priority on the peers to prevent STP from blocking the VLANs.
Procedure
Step 3 switch(config-pseudo)# vlan vlan-range Configures the designated bridge priority of the
designated priority value VLAN. Valid values are multiples of 4096 from
0 to 61440.
Step 4 switch(config-pseudo)# vlan vlan-range root Configures the root bridge priority of the
priority value VLAN. Valid values are multiples of 4096 from
0 to 61440.
Step 5 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default; the
range is from 1 to 1000.
Configuring vPCs
75
Configuring vPCs
Enabling Distribution for vPC
Step 9 (Optional) switch# copy running-config Copies the running configuration to the startup
startup-config configuration.
Example
This example shows how to configure a hybrid vPC peer switch topology:
Procedure
Step 2 switch(config)# vpc domain domain-id Creates a vPC domain on the device, and enters
vpc-domain configuration mode for
configuration purposes. There is no default;
the range is from 1 to 1000.
Step 3 switch(config-vpc-domain)# config-sync Enables the vPC config-sync on the switch and
registers with the CFS for physical-ethernet
(CFSoE).
Note Repeat the configuration of the
config-sync command on the other
vPC peer as well.
Configuring vPCs
76
Configuring vPCs
Enabling Distribution for vPC
Step 10 switch(config)# show vpc config-sync merge Displays the status of the configuration merge
status with the peer switch.
Example
Configuring vPCs
77
Configuring vPCs
Configuring FCoE Over a Physical Port vPC
Procedure
Step 2 switch(config)# interface ethernet slot/port-list Specifies an Ethernet interface and enters
interface configuration mode.
The range is from 1 to 253 for the slot and from
1 to 128 for the port.
Step 4 switch(config-if)# switchport mode trunk Specifies the trunking VLAN interface in Layer
2.
A trunk port can carry traffic in one or more
VLANs (based on the trunk allowed VLAN list
configuration) on the same physical link.
Step 5 switch(config-if)# switchport trunk allowed Configures a list of allowed VLANs on the
vlan vlan-list trunking interface.
Step 6 switch(config-if)# spanning-tree port type Configures the interface that connects to a Layer
network 2 switch as a network spanning tree port.
Step 7 switch(config-if)# vpc number Moves port channels into a vPC and enters
interface vPC configuration mode.
The range of the number argument is from 1 to
4096.
Configuring vPCs
78
Configuring vPCs
Configure Physical Port vPC Interfaces
Example
These examples show how to configure a physical port vPC in an Ethernet VDC:
switch-eth(config)# feature vpc
switch-eth(config)# interface port-channel 1
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# spanning-tree port type network
switch-eth(config-if)# vpc peer-link
switch-eth(config)# interface Ethernet3/21
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# channel group 1 mode active
switch-eth(config-if)# no shutdown
switch-eth(config)# interface Ethernet3/1
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# vpc 10
switch-eth(config-if-vpc)# lacp mode active
switch-eth(config-if-vpc)# no shutdown
These examples show how to configure a physical port vPC in the peer VDC:
switch-eth(config)# feature vpc
switch-eth(config)# interface port-channel 1
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# spanning-tree port type network
switch-eth(config-if)# vpc peer-link
switch-eth(config)# interface Ethernet4/21
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# channel group 1 mode active
switch-eth(config-if)# no shutdown
switch-eth(config)# interface Ethernet4/1
switch-eth(config-if)# switchport
switch-eth(config-if)# switchport mode trunk
switch-eth(config-if)# switchport trunk allowed vlan 10-20
switch-eth(config-if)# vpc 10
switch-eth(config-if-vpc)# lacp mode active
switch-eth(config-if-vpc)# no shutdown
Configuring vPCs
79
Configuring vPCs
Configuring Hitless vPC Role Change
Procedure
! The following is an output from the show vpc role command after the
vPC hitless feature is configured !
Configuring vPCs
80
Configuring vPCs
Upgrading Line Card Modules for vPC
Note • Traffic outage might occur on orphan ports when a vPC peer is isolated.
• Multicast receivers behind the vPC might experience traffic outages.
• Ensure that there are alternate paths from core routes to each vPC peer.
• Ensure that the new line card module has the same slot ID and number as the old line card module.
Procedure
Step 1 Perform an ISSU upgrade to a supported Cisco NX-OS release version for a new line card module on both
the switches. Perform this task one at a time on both the switches. For information on supported release version
for a line card module type, see the Cisco Nexus 7000 Series NX-OS Release Notes document. For information
on how to perform an ISSU upgrade, see the Cisco Nexus 7000 Series NX-OS Software Upgrade and
Downgrade Guide.
Step 2 On both the switches, move the peer-keepalive link out of the existing module, and use the management
interface for the peer-keepalive link.
Example:
switch# configure terminal
switch(config)# vpc domain <domain-id>
switch(config-vpc-domain)# peer-keepalive destination <peer-switch management-ip>
Step 3 Enable the hidden commands on both the switches, one at a time.
Example:
Configuring vPCs
81
Configuring vPCs
Upgrading a Line Card Module Using the ISSU Method
Step 4 Copy the running configuration to the startup configuration on both the switches.
Example:
switch# copy running-config startup-config vdc-all
Step 5 On the secondary switch (Switch B), shut down the vPC legs. Perform this action in batches and wait until
all the traffic is converged. All traffic is now on the primary switch (Switch A).
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# shutdown
Step 6 On the secondary switch (Switch B), shut down all the ports going to core devices. Perform this action in
batches and wait until all the traffic is converged.
Step 7 On the secondary switch (Switch B), shut down the vPC peer link.
Step 8 On the secondary switch (Switch B), save the running configuration to a file on bootflash.
Example:
switch# copy running-config bootflash:run-cfg-SwitchB.txt vdc-all
Step 9 On the secondary switch (Switch B), edit the saved configuration file to change the Virtual Device Context
(VDC) type from an existing module to a new module.
For more information on Cisco NX-OS release support for a module type, see the Cisco Nexus 7000 Series
NX-OS Release Notes document.
This example shows that the VDC type has changed from an existing module (F2 or F2e) to a new module
(F3):
Edit { vdc <xyx>
limit-resource module-type “f3” }
Step 10 On the secondary switch (Switch B), replace the old line card with the new line card module.
Step 11 On the secondary switch (Switch B), reconnect the vPC leg ports to the new module. Ensure that all the ports
have the same number as the old line card module.
Step 12 On the secondary switch (Switch B), reconfigure the respective ports on the new module using the saved
configuration file on bootflash. Ensure that vPC leg ports are in shut state.
Example:
switch# copy bootflash:run-cfg-SwitchB.txt running-config
Step 13 On the secondary switch, copy the running configuration to the startup configuration on the admin VDC.
Example:
switch# copy running-config startup-config vdc-all
Step 14 On the secondary switch (Switch B), bring up the vPC peer link. Ensure that the vPC peer link speed is the
same on both the switches.
Ensure that vPC is up and Switch A is the primary switch and Switch B is the secondary switch.
Step 15 On the secondary switch (Switch B), bring up the vPC leg ports. Perform this task in batches and wait for all
the traffic to converge.
Configuring vPCs
82
Configuring vPCs
Upgrading a Line Card Module Using the ISSU Method
Step 16 On the secondary switch (Switch B), bring up all the ports going to the core device. Perform this task in
batches and wait for all the traffic to converge.
Step 17 On the secondary switch (Switch B), clear all the dynamic MAC entries from the MAC address table.
Example:
switch# clear mac address-table dynamic
switch# test l2fm dump smac
Step 19 On the secondary switch (Switch B), change the vPC role priority to match the primary switch.
Example:
switch(config)# vpc-domain <domain-id>
switch(config-vpc-domain)# role priority <priority-id>
Step 20 On the primary switch (Switch A), shut down all the ports going to the core devices. Perform this action in
batches and wait until all the traffic is converged. All traffic is now on the secondary switch (Switch B).
Step 21 On the primary switch (Switch A), reconfigure the vPC peer-keepalive link by configuring a dummy IP
address.
Example:
switch# configure terminal
switch(config-if)# vpc domain <domain-id>
switch(config-if)# peer-keepalive destination <dummy-ip>
Step 22 On the primary switch (Switch A), shut down the vPC peer link.
vPC role change takes place without any disruption because of the sticky bit feature on the Switch B.
Step 24 Edit the saved configuration file to change the VDC type from the existing module to the new module.
For information on Cisco NX-OS release support for a module type, see the Cisco Nexus 7000 Series NX-OS
Release Notes document.
Example:
This example shows that the VDC type is changed from F2 to F3 module.
Edit { vdc <xyx>
limit-resource module-type “f3” }
Step 25 On the primary switch (Switch A), replace the old line card with the new line card module.
Step 26 On the primary switch (Switch A), reconnect the vPC leg ports to the new module. Ensure that all the ports
have the same number as the old line card module.
Configuring vPCs
83
Configuring vPCs
Upgrading a Line Card Module Using the ISSU Method
Step 27 On the primary switch (Switch A), reconfigure the respective ports on the new module using the saved
configuration file on bootflash.
Example:
switch# copy bootflash:run-cfg-SwitchA.txt running-config
Note Ensure that all the vPC leg ports are in shut state.
Step 28 On the primary switch (Switch A), copy the running configuration to the startup configuration on the Admin
virtual device context (VDC).
Example:
switch# copy running-config startup-config vdc-all
Step 29 On the primary switch (Switch A), bring up the vPC peer-keepalive link by configuring the peer-keepalive
destination address back to the management IP of Switch B.
Example:
switch# configure terminal
switch(config-if)# vpc domain <domain-id>
switch(config-if)# peer-keepalive destination <management-ip peer-device
Step 30 On the primary switch (Switch A), bring up the vPC peer link.
Note Ensure that the vPC peer-link speed configuration is same on both the switches.
Step 31 On the primary switch (Switch A), bring up the vPC leg ports. Perform this task in batches and wait for all
the traffic to converge.
All the traffic is load balanced on both the switches.
Step 32 On the primary switch (Switch A), bring up all the ports going to the core device. Perform this task in batches
and wait for all the traffic to converge.
Step 33 Disable the hidden commands on both the switches. Perform this step one at a time on both the switches.
Example:
switch# configure terminal
switch(config)# vpc-domain <domain-id>
switch(config-vpc-domain)# no bypass module-check
Step 34 On both the switches, reconfigure the peer-keepalive link on the new card modules.
Step 35 Copy the running configuration to the startup configuration on the Admin VDC on both the switches.
Example:
switch# copy running-config startup-config vdc-all
Step 36 On the primary switch (Switch A), clear all the dynamic MAC entries from the MAC address table.
Example:
switch# clear mac address-table dynamic
switch# test l2fm dump smac
Step 37 On the secondary switch (Switch B), run the test l2fm dump smac command to view any errors.
Configuring vPCs
84
Configuring vPCs
Upgrading Line Card Modules Using the Reload Method
Example:
switch# test l2fm dump smac
Migration from existing line card module to a new module is completed on both the switches.
Before you plan to upgrade a line card module, refer the Cisco Nexus 7000 Series NX-OS Release Notes
document, to see the supported Cisco NX-OS release version for a line card module.
Note Traffic outage might occur on orphan ports when a vPC peer is isolated. Multicast receivers behind the vPC
might experience traffic outages (30 to 40 seconds).
Procedure
Step 1 Set equal vPC role priority on both the vPC peer devices.
Example:
switch# configure terminal
switch(config)# vpc domain <domain-id>
switch(config-vpc-domain)# role priority <priority-id>
Step 2 Set the auto-recovery reload-delay value, in seconds, to maximum delay time on both the switches.
Example:
switch(config-vpc-domain)# auto-recovery reload-delay 84600
Configuring vPCs
85
Configuring vPCs
Installing a Cisco Image on vPC Peers
Step 3 Change the system boot parameters to boot the system from the Cisco NX-OS release verison that is supported
on the new module on both the switches.
Example:
This example shows that the Cisco NX-OS 6.2(16) image is used for the Cisco Nexus F3 module:
switch(config)# no boot kickstart
switch(config)# no boot system
switch(config)# boot kickstart bootflash://n7000-s2-kickstart.6.2.16.bin
switch(config)# boot system bootflash://n7000-s2-dk9.6.2.16.bin
For information on the supported release version for a module type, see the Cisco Nexus 7000 Series NX-OS
Release Notes document.
Step 4 On the secondary switch (Switch B), shut down the vPC legs. Perform this action in batches and wait until
all the traffic is converged.
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# shutdown
Step 5 On the secondary switch (Switch B), copy the running configuration to the start up configuration for an Admin
VDC.
Example:
switch# copy running-config startup-config vdc-all
Step 6 On the secondary switch (Switch B), reboot the system with the new Cisco NX-OS image. Wait for the system
to boot up and for the Layer 3 links to come up.
Example:
switch# reload
Step 7 On the secondary switch (Switch B), bring the vPC legs up again. Perform this action in batches and wait
until all the traffic is converged.
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# no shutdown
Step 8 On the primary switch (Switch A), shut down the vPC legs. Perform this action in batches and wait until all
the traffic is converged.
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# shutdown
Step 9 On the primary switch (Switch A), copy the running configuration to the start up configuration for an Admin
VDC.
Example:
switch# copy running-config startup-config vdc-all
Step 10 On the primary switch (Switch A), reboot the system with the new Cisco NX-OS image. Wait for the system
to boot up and for the Layer 3 links to come up.
Configuring vPCs
86
Configuring vPCs
Installing a Line Card Module on a vPC Peer Using the Reload Method
Example:
switch# reload
Step 11 On the primary switch (Switch A), bring the vPC legs up again. Perform this action in batches and wait until
all the traffic is converged.
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# no shutdown
Traffic is load balanced between the primary switch (Switch A) and the secondary switch (Switch B).
Switch B takes on the role of the operational primary, and Switch A takes on the role of the operational
secondary.
Installing a Line Card Module on a vPC Peer Using the Reload Method
Note In this task, Switch A is the operational secondary, and Switch B is the operational primary switch.
Procedure
Step 2 Set the auto-recovery reload-delay value , in seconds, to maximum delay time on both the switches.
Example:
switch(config-vpc-domain)# auto-recovery reload-delay 86400
Step 3 Enable the hidden commands on both the switches, one at a time.
Example:
switch# configure terminal
switch(config)# vpc domain <domain-id>
switch(config-vpc-domain)# bypass module-check
Step 4 Copy the running configuration to the startup configuration on the Admin VDC on both the switches.
Configuring vPCs
87
Configuring vPCs
Installing a Line Card Module on a vPC Peer Using the Reload Method
Example:
switch# copy running-config startup-config vdc-all
Step 5 On the operational secondary (Switch A) switch, shut down the vPC legs. Perform this action in batches and
wait until all the traffic is converged.
Example:
switch(config)# interface port-channel <channel-number>
switch(config-if)# shutdown
Step 6 Save the running configuration to a file on bootflash and transfer the configuration file outside the switch
(Switch A).
Example:
switch# copy running-config bootflash:run-cfg-SwitchA.txt vdc-all
switch# copy bootflash:run-cfg-SwitchA.txt tftp://server/run-cfg-SwitchA.txt vrf management
Step 7 On the operational secondary switch, edit the saved configuration file to change the VDC type from an existing
module to a new module. Copy the configuration file back to the switch (Switch A).
Example:
This example show that the VDC type is changed from F2 to F3 module:
Edit { vdc <xyx>
limit-resource module-type “f3” }
For information on the Cisco NX-OS release support for a module type, see the Cisco Nexus 7000 Series
NX-OS Release Notes document.
Step 8 Power off the operational secondary switch (Switch A) and physically replace the existing module with the
new module on the switch.
Step 9 Power on the switch (Switch A) and wait for the system to go online.
Ensure that the Admin VDC is active. On the Admin VDC, reconfigure the new module ports using the saved
configuration file. Ensure that all the ports have the same number as the old line card module.
Ensure that all the vPC leg ports are in shut state, and the vPC peer link and the Layer 3 links are up.
Example:
switch# copy bootflash:run-cfg-SwitchA.txt running-config
Step 10 Bring up the vPC legs on the operational secondary (Switch A). Perform this task in batches and wait for all
the traffic to converge.
Example:
switch# interface port-channel <channel-number>
Switch# no shutdown
Step 11 On the operational primary (Switch B) switch, shut down the vPC legs. Perform this action in batches and
wait until all the traffic is converged.
Example:
Configuring vPCs
88
Configuring vPCs
Installing a Line Card Module on a vPC Peer Using the Reload Method
Step 12 Save the running configuration to a file on bootflash and transfer the configuration file outside the switch
(Switch B).
Example:
switch# copy running-config bootflash:run-cfg-SwitchB.txt vdc-all
switch# copy bootflash:run-cfg-SwitchA.txt tftp://server/run-cfg-SwitchB.txt vrf management
Step 13 On the operational primary switch (Switch B), edit the saved configuration file to change the VDC type from
an existing module to a new module. Copy the configuration file back to the switch (Switch B).
Example:
This example shows that the VDC type is changed from F2 to F3 module:
Edit { vdc <xyx>
limit-resource module-type “f3” }
For information on the Cisco NX-OS release support for a module type, see the Cisco Nexus 7000 Series
NX-OS Release Notes document.
Step 14 Power off the operational primary switch (Switch B) and physically replace the existing module with the new
module on the switch.
Step 15 Power on the switch (Switch B) and wait for the system to go online.
Note Ensure that the Admin VDC is active. On the Admin VDC, reconfigure the new module ports using
the saved configuration file. Ensure that all the ports have the same number as the old line card
module.
Ensure that all the vPC leg ports are in shut state, and the vPC peer link and the Layer 3 links are
up.
Example:
switch# copy bootflash:run-cfg-SwitchB.txt running-config
Step 16 Bring up the vPC legs on the operational primary (Switch B). Perform this task in batches and wait for all the
traffic to converge.
Switch A resumes the role of a primary switch and Switch B takes on the role of a secondary switch. Traffic
is load balanced between both the switches.
Example:
switch# interface port-channel <channel-number>
Switch# no shutdown
Step 17 Disable the hidden commands on both the switches. Perform this step one at a time on both the switches.
Example:
switch# configure terminal
switch(config)# vpc-domain <domain-id>
switch(config-vpc-domain)# no bypass module-check
Configuring vPCs
89
Configuring vPCs
Verifying the vPC Configuration
Step 18 Copy the running configuration to the startup configuration on the Admin VDC on both the switches.
Example:
switch# copy running-config startup-config vdc-all
Migration from existing line card module to a new module is completed on both the switches.
Command Purpose
show vpc consistency-parameters Displays the status of those parameters that must be
consistent across all vPC interfaces.
show port-channel capacity Displays how many port channels are configured and
how many are still available on the device.
show vpc role Displays the peer status, the role of the local device,
the vPC system MAC address and system priority,
and the MAC address and priority for the local vPC
device.
For detailed information about the fields in the output from these commands, see the Cisco Nexus 7000 Series
NX-OS Interfaces Command Reference.
Command Purpose
Configuring vPCs
90
Configuring vPCs
Verifying Physical Port vPC on F2, F3, and FEX
Command Purpose
show lacp port-vpc summary Displays the LACP status for the physical
port VPC, such as the vPC ID, physical
port, and the LACP port state details.
show lacp counters interface name number Displays the LACP counters on a physical
interface or port-channel interface
depending on the interface name.
show lacp neighbor interface name number Displays the neighbors of ports that are
configured on a physical interface.
This example shows how to verify brief information about the vPCs:
vPC status
-----------------------------------------------------------------------------------
id Port Status Consistency Reason Active vlans
-----------------------------------------------------------------------------------
1 Ethernet1/1 up success - - - - 200-250, 900-1000
This example shows how to verify LACP status for the physcial port VPC, such as the vPC ID,
physical port, and the LACP port state details:
Flags: D – Down P – up
s - Suspended H – Hot-standby (LACP only)
This example shows how to verify LACP counters for port-channel and physical port vPC interfaces:
port-channel2
Ethernet2/2 1677 1808 0 0 0 0 0
Configuring vPCs
91
Configuring vPCs
Monitoring vPCs
This example shows how to verify the LACP counters on a physical interface:
This example shows how to verify the neighbors of ports that are configured both as a vPC and as
a port-channel member:
This example shows how to verify the neighbors of ports that are configured on the physical interface:
Monitoring vPCs
Use the show vpc statistics command to display vPC statistics.
Note This command displays the vPC statistics only for the vPC peer device that you are working on.
Configuring vPCs
92
Configuring vPCs
Configuration Examples for vPCs
2. (Optional) Configure one of the interfaces that you want to be a peer link in the dedicated port mode:
switch(config)# interface ethernet 7/1, ethernet 7/3, ethernet 7/5. ethernet 7/7
switch(config-if)# shutdown
switch(config-if)# exit
switch(config)# interface ethernet 7/1
switch(config-if)# rate-mode dedicated
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)#
3. (Optional) Configure the second, redundant interface that you want to be a peer link in the dedicated
port mode:
switch(config)# interface ethernet 7/2, ethernet 7/4, ethernet 7/6. ethernet 7/8
switch(config-if)# shutdown
switch(config-if)# exit
switch(config)# interface ethernet 7/2
switch(config-if)# rate-mode dedicated
switch(config-if)# no shutdown
switch(config-if)# exit
switch(config)#
4. Configure the two interfaces (for redundancy) that you want to be in the peer link to be an active Layer
2 LACP port channel.:
Configuring vPCs
93
Configuring vPCs
Configuration Examples for vPCs
6. Create a separate VRF for the vPC peer-keepalive link and add a Layer 3 interface to that VRF:
7. Create the vPC domain and add the vPC peer-keepalive link:
9. Configure the interface for the port channel to the downstream device of the vPC:
Note If you configure the port channel first, ensure that it is a Layer 2 port channel.
Configuring vPCs
94
Configuring vPCs
Related Documents
Related Documents
Table 5: Related Documents
Related Topic
Cisco Nexus 7000 Series NX-OS High Availability and Redundancy Guide
Cisco Nexus 2000 Series NX-OS Fabric Extender Software Configuration Guide for Cisco Nexus 7000
Series Switches, Release 6.x
Cisco Nexus 7000 Series NX-OS Virtual Device Context Configuration Guide
VLANs, MAC address tables, private VLANs, and the Spanning Tree Protocol.
Cisco Nexus 7000 Series NX-OS Layer 2 Switching Configuration Guide
Standards
Table 6: Standards
Standards Title
IEEE 802.3ad —
MIBs
Table 7: MIBs
Configuring vPCs
95
Configuring vPCs
MIBs
Configuring vPCs
96