Cisco APIC Layer 2 Networking Configuration Guide, Release 6.2(x)

PDF

Cisco APIC Layer 2 Networking Configuration Guide, Release 6.2(x)

Virtual port channels in Cisco ACI

Want to summarize with AI?

Log in

Explains how virtual port channels allow links physically connected to two different ACI leaf nodes to appear as a single port channel to third-party devices.


A virtual port channel (vPC) is a link aggregation technology that

  • allows links that are physically connected to two different Cisco Application Centric Infrastructure (ACI) leaf nodes to appear as a single port channel (PC) to a third device

  • consists of two Cisco ACI leaf switches designated as vPC peer switches, and

  • forms a system referred to as a vPC domain where one peer is primary and one is secondary.

Figure 1. vPC Domain

Vpc implementation behavior

The following behavior is specific to the Cisco ACI vPC implementation:

  • No dedicated peer-link between the vPC peers. Instead, the fabric itself serves as the Multi-Chassis Trunking (MCT).

  • Peer reachability protocol: Cisco ACI uses the Zero Message Queue (ZMQ) instead of Cisco Fabric Services (CFS).

    • ZMQ is an open-source, high-performance messaging library that uses TCP as the transport.

    • This library is packaged as libzmq on the switch and linked into each application that needs to communicate with a vPC peer.

  • Peer reachability is not handled using a physical peer link. Instead, routing triggers are used to detect peer reachability.

    • The vPC manager registers with Unicast Routing Information Base (URIB) for peer route notifications.

    • When IS-IS discovers a route to the peer, URIB notifies the vPC manager, which in turn attempts to open a ZMQ socket with the peer.

    • When the peer route is withdrawn by IS-IS, the vPC manager is again notified by URIB, and the vPC manager brings down the MCT link.

  • When creating a vPC domain between two leaf switches, the following hardware model limitations apply:

    • Generation 1 switches are compatible only with other generation 1 switches. These switch models can be identified by the lack of "EX," "FX, "FX2," "GX," or later suffix at the end of the switch name. For example, N9K-9312TX.

    • Generation 2 and later switches can be mixed together in a vPC domain. These switch models can be identified by the "EX," "FX, "FX2," "GX," or later suffix at the end of the switch name. For example N9K-93108TC-EX or N9K-9348GC-FXP.

  • Examples of compatible vPC switch pairs:

    • N9K-C9312TX and N9K-C9312TX

    • N9K-C93108TC-EX and N9K-C9348GC-FXP

    • N9K-C93180TC-FX and N9K-C93180YC-FX

    • N9K-C93180YC-FX and N9K-C93180YC-FX

    Examples of incompatible vPC switch pairs:

    • N9K-C9312TX and N9K-C93108TC-EX

    • N9K-C9312TX and N9K-C93180YC-FX

  • Port channels and virtual port channels can be configured with or without LACP.

    If you configure a virtual port channel with LACP, LACP sets a port to the suspended state if it does not receive an LACP PDU from the peer. This can cause some servers to fail to boot up as they require LACP to bring up the port logically. You can tune the behavior to individual use by disabling LACP suspend individual. To do so, create a port channel policy in your vPC policy group, and after setting the mode to LACP active, remove Suspend Individual Port. Afterward, the ports in the vPC will stay active and continue to send LACP packets.

  • Adaptive load balancing (ALB), based on ARP negotiation, across virtual port channels is not supported in Cisco ACI.

  • The 25 gig port does not come up on its own and displays the vpc peerlink is down error, if one of the vPC links is not cabled correctly.


Configure Cisco ACI virtual port channel workflow

Figure 2. Virtual port channel configuration

The configuration workflow for virtual port channels (vPCs) is as follows:

Before you begin

  • Ensure that you have read/write access privileges to the infra security domain.

  • Ensure that the target leaf switches with the necessary interfaces are available.

  • Ensure that the hardware of the two leaf switches that are going to be part of the same vPC pair is compatible. For more information, see Virtual port channels in Cisco ACI.

Follow these steps to configure the Cisco ACI Virtual Port Channel workflow:

Procedure

  1. Configure the VLAN pools, domain, AAEP, access leaf port policy group of type vPC.

  2. Configure the vPC switch pairs.

  3. Configure the vPC interfaces.

  4. Configure the application profile.

    1. On the menu bar, choose Tenants > All Tenants.
    2. In the Work pane, double-click a tenant.
    3. In the Navigation pane, choose tenant_name > Quick Start.
    4. Configure the endpoint groups (EPGs), contracts, bridge domain, subnet, and context.
    5. Associate the application profile EPGs with the virtual port channel switch profile that you created previously.

Define a vpc using the GUI

Before you begin

Ensure that the hardware of the two leaf switches that are going to be part of the same vPC pair is compatible. For more information, see Virtual port channels in Cisco ACI.

Follow these steps to define a vPC using the GUI:

We recommend that you keep the leaf switch peer group names simple as shown in the following example:

  • Leaf201_202

  • Leaf203_204

  • Leaf205_206

For naming and numbering best practices, see the Cisco ACI Object Naming and Numbering: Best Practices document:

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/aci/apic/sw/kb/b-Cisco-ACI-Naming-and-Numbering.html

Procedure

  1. On the menu bar, choose Fabric > Access Policies.

  2. In the Navigation pane, choose Policies > Switch > Virtual Port Channel default.

  3. In the Explicit vPC Protection Groups table, click + and fill out the fields as follows:

    1. In the Name field, enter the vPC pair name.

      Example name: Leaf201_202. A name similar to the example easily identifies which two fabric nodes are vPC peers.

    2. In the ID field, enter the vPC pair ID (logical peer ID).

      Example ID: 201. The example uses the first node ID number of the pair to make it easier to correlate the ID with the vPC pair.

    3. In the Switch 1 and Switch 2 fields, choose the leaf switches for the vPC switch pair.
    4. Click Submit.

The vPC pair gets added to the Explicit vPC Protection Groups table. The Virtual IP value is an auto-generated IP address from the system tunnel endpoint (TEP) pool, and represents the virtual shared (Anycast) TEP of the vPC switch pair. That is, packets destined to vPC-connected endpoints of the vPC pair will use this Anycast VTEP to send the packets.


Vpc with the same leaf switch interfaces across two leaf switches with combined profiles

For the example of this use case, you define the following things:

  • A combined switch profile called Leaf201_202_SwProf (node 201 and node 202).

  • A combined interface profile called Leaf201_202_IntProf (node 201 and node 202).

  • An access port selector called Eth1_1 (under the Leaf201_202 interface profile) is pointing toward a vPC interface policy group.

  • The vPC interface policy group is pointing toward an AAEP called Customer_AEP.

  • The AEP (Customer_AEP) has an association with the Customer_PhysDom.

  • The Customer_PhysDom has an association with a VLAN pool called Customer_Static_VLPool.

Figure 3. Vpc with the same leaf switch interfaces across two leaf switches with combined profiles

What this configuration does

On switches Leaf201 and Leaf202, configure port Eth1/1 to be part of a vPC. This vPC interface will have access to VLANs 1201 through 1299. Depending on the interface policy group, you can enable LACP Active and other interface specific policy configurations.

When to use this configuration

If you have dedicated pairs of compute leaf switches with nothing but vPC-connected servers, for example, this would be a solid use case for using combined-switch/interface profiles under your fabric access policies for those switches. You could preconfigure your switch, interface, access port selector, and vPC interface policy groups in such a way that allowed you to plug in 48 chassis-type servers with minimal effort.


Vpc with the same leaf switch interfaces across two leaf switches with individual profiles

For the example of this use case, you define the following things:

  • Individual switch profiles called Leaf201_SwProf and Leaf202_SwProf (node 201 and node 202).

  • Individual interface profiles called Leaf201_IntProf and Leaf202_IntProf (node 201 and node 202)

  • Access port selectors called Eth1_1 (under the Leaf201 and Leaf202 interface profiles) is pointing toward the same vPC interface policy group.

  • The vPC interface policy group is pointing toward an AAEP called Customer_AEP.

  • The AEP (Customer_AEP) has an association with the Customer_PhysDom.

  • The Customer_PhysDom has an association with a VLAN pool called Customer_Static_VLPool.

Figure 4. Vpc with the same leaf switch interfaces across two leaf switches with individual profiles

What this configuration does

On switches Leaf201 and Leaf202, configure port Eth1/1 to be a part of a vPC. This vPC interface will have access to VLANs 1201 through 1299. Depending on the interface policy group, you can enable LACP active and other interface specific policy configurations.

When to use this configuration

Use this configuration when you have leaf switches that support mixed workloads, such as compute, services, or Cisco Application Policy Infrastructure Controllers (APICs). In this case, having individual interface profiles allows for the most amount of flexibility, while allowing you to keep your FabricAccess Policies configuration as clean and manageable as possible.


Configure a Cisco ACI leaf switch virtual port channel using the interface configuration model using the GUI

This procedure uses the "Interface Configuration" methodology to attach a trunked switch to a Cisco Application Centric Infrastructure (ACI) leaf switch virtual port channel. The steps are the same for attaching other kinds of devices to an Cisco ACI leaf switch interface.

Figure 5. Switch virtual port channel configuration

Before you begin

  • The Cisco ACI fabric is installed, the Cisco Application Policy Infrastructure Controllers (APICs) are online, and the Cisco APIC cluster is formed and healthy.

  • A Cisco APIC fabric administrator account is available that will enable creating the necessary fabric infrastructure configurations.

  • The target leaf switches are registered in the Cisco ACI fabric and available.

Note

When creating a vPC domain between two leaf switches, ensure that the hardware of the two leaf switches that are going to be part of the same vPC pair is compatible. For more information, see Virtual port channels in Cisco ACI.

Follow these steps to configure a Cisco ACI leaf switch virtual port channel using the Interface Configuration model:

Procedure

  1. On the menu bar, choose Fabric > Access Policies.

  2. Use one of the following methods to open the Configure Interfaces dialog:

    Method 1:

    1. In the Navigation pane, choose Quick Start.
    2. In the Work pane, click Configure Interfaces.

    Method 2:

    1. In the Navigation pane, choose Interface Configuration.
    2. In the Work pane, choose Actions > Configure Interfaces.
  3. In the Configure Interfaces dialog, perform the following actions:

    1. For Node Type, click Leaf.
    2. For Port Type, click Access.
    3. For Interface Type, click Ethernet.
    4. For Interface Aggregation Type, choose vPC.
    5. For vPC Leaf Switch Pair, click Select vPC Leaf Switch Pair, put a check in the box for the desired switch pair, then click Select. You can select multiple switches. Optionally, click Create vPC Leaf Switch Pair and fill out the fields as desired, then select the pair and click Select.
    6. For Interfaces For All Switches, enter the range of desired interfaces.
    7. For vPC Domain Policy, click Select vPC Domain Policy, then choose a policy and click Select. Optionally, click Create vPC Domain Policy, fill out the fields as desired, and click Save, then choose that policy and click Select.
    8. For Port Channel Member Policy, click Select Port Channel Member Policy, then choose a policy and click Select. Optionally, click Create Port Channel Member Policy, fill out the fields as desired, and click Save, then choose that policy and click Select..
    9. Click Save.

    Verification: Use the CLI show int command on the leaf switches where the external switch is attached to verify that the vPC is configured accordingly.


Configure virtual port channels in leaf nodes and FEX devices using the NX-OS CLI

This task configures virtual port channels (vPC) in leaf nodes and FEX devices to improve bandwidth utilization and availability by allowing hosts or switches to connect to two upstream leaf nodes simultaneously.

A virtual port channel (vPC) is an enhancement to port-channels that allows connection of a host or switch to two upstream leaf nodes to improve bandwidth utilization and availability. In NX-OS, vPC configuration is done in each of the two upstream switches and configuration is synchronized using peer link between the switches.

The Cisco Application Policy Infrastructure Controller (Cisco ACI) model does not require a peer link and vPC configuration can be done globally for both the upstream leaf nodes. A global configuration mode called vpc context is introduced in Cisco ACI and vPC interfaces are represented using a type interface vpc that allows global configuration applicable to both leaf nodes.

Two different topologies are supported for vPC in the Cisco ACI model: vPC using leaf ports and vPC over FEX ports. It is possible to create many vPC interfaces between a pair of leaf nodes and similarly, many vPC interfaces can be created between a pair of FEX modules attached to the leaf node pairs in a straight-through topology.

vPC considerations include:

  • The vPC name used is unique between leaf node pairs. For example, only one vPC 'corp' can be created per leaf pair (with or without FEX).

  • Leaf ports and FEX ports cannot be part of the same vPC.

  • Each FEX module can be part of only one instance of vPC corp.

  • vPC context allows configuration

  • The vPC context mode allows configuration of all vPCs for a given leaf pair. For vPC over FEX, the fex-id pairs must be specified either for the vPC context or along with the vPC interface, as shown in the following two alternative examples.

    (config)# vpc context leaf 101 102
    (config-vpc)# interface vpc Reg fex 101 101

    or

    (config)# vpc context leaf 101 102 fex 101 101
    (config-vpc)# interface vpc Reg

In the Cisco ACI model, vPC configuration is done in the following steps (as shown in the examples below).

Note

A VLAN domain is required with a VLAN range. It must be associated with the port-channel template.

  1. VLAN domain configuration (global config) with VLAN range

  2. vPC domain configuration (global config)

  3. Port-channel template configuration (global config)

  4. Associate the port channel template with the VLAN domain

  5. Port-channel configuration for vPC (global config)

  6. Configure ports to vPC in leaf nodes

  7. Configure Layer 2, Layer 3 for vPC in the vPC context

Before you begin

Ensure that the hardware of the two leaf switches that are going to be part of the same vPC pair is compatible. For more information, see Virtual port channels in Cisco ACI.

Follow these steps to configure virtual port channels in leaf nodes and FEX devices using the NX-OS CLI:

Procedure

  1. configure

    Enters global configuration mode.

    Example:

    apic1# configure
  2. vlan-domainname[dynamic] [typedomain-type]

    Configures a VLAN domain for the virtual port-channel (here with a port-channel template).

    Example:

    apic1(config)# vlan-domain dom1 dynamic
  3. exit

    Exits the VLAN domain configuration mode.

    Example:

    apic1(config-vlan)# exit
  4. port-channelname [typetype]

    Creates a Port-channel template for the vPC (or uses an existing one).

    Example:

    apic1(config)# port-channel corp vpc
  5. interfacetype

    Enters port-channel template interface configuration mode.

    Example:

    apic1(config-po-ch)# interface
  6. switchport

    Configures the port-channel as a Layer 2 interface.

    Example:

    apic1(config-po-ch-if)# switchport
  7. channel-modemode

    Sets the port-channel mode.

    Example:

    apic1(config-po-ch-if)# channel-mode active
  8. exit

    Exits the port-channel interface configuration mode.

    Example:

    apic1(config-po-ch-if)# exit
  9. leafleaf-range

    Enters leaf configuration mode.

    Example:

    apic1(config)# leaf 101-102
  10. interfacetypeport

    Specifies the interfaces to include in the port-channel.

    Example:

    apic1(config-leaf)# interface ethernet 1/3-4
  11. channel-groupnamevpc

    Assigns the interface(s) to the port-channel configured to be a vPC.

    Example:

    apic1(config-leaf-if)# channel-group corp vpc
  12. exit

    Exits the interface configuration mode.

    Example:

    apic1(config-leaf-if)# exit
  13. vpccontextleafleaf1leaf2

    Creates a vPC domain and enters vPC configuration mode.

    Example:

    apic1(config)# vpc context leaf 101 102
  14. interfacevpcname

    Specifies the vPC interface.

    Example:

    apic1(config-vpc)# interface vpc corp
  15. exit

    Exits the vPC interface configuration mode.

    Example:

    apic1(config-vpc-if)# exit
  16. interfacevpcnamefexfex-id1fex-id2

    Creates a vPC interface with FEX devices.

    Example:

    apic1(config-vpc)# interface vpc red fex 101 101
  17. switchport

    Configures the vPC interface as a Layer 2 interface.

    Example:

    apic1(config-vpc-if)# switchportapic1(config-vpc-if)# exit
  18. interfacevpcnamefexfex-id1fex-id2

    Creates another vPC interface with FEX devices.

    Example:

    apic1(config-vpc)# interface vpc blue fex 102 102
  19. shut

    Optionally shuts down the vPC interface.

    Example:

    apic1(config-vpc-if)# shut

This example shows how to configure a basic vPC.

apic1# configure
apic1(config)# vlan-domain dom1 dynamic
apic1(config-vlan)# vlan 1000-1999
apic1(config-vlan)# exit
apic1(config)# vpc domain explicit 1 leaf 101 102
apic1(config-vpc)# peer-dead-interval 10
apic1(config-vpc)# exit
apic1(config)# template port-channel corp
apic1(config-po-ch-if)# vlan-domain member dom1
apic1(config-po-ch-if)# channel-mode active
apic1(config-po-ch-if)# exit
apic1(config)# leaf 101-102
apic1(config-leaf)# interface ethernet 1/3-4
apic1(config-leaf-if)# channel-group corp vpc
apic1(config-leaf-if)# exit
apic1(config)# vpc context leaf 101 102

This example shows how to configure vPCs with FEX ports.

apic1(config-leaf)# interface ethernet 101/1/1-2
apic1(config-leaf-if)# channel-group Reg vpc
apic1(config)# vpc context leaf 101 102
apic1(config-vpc)# interface vpc corp
apic1(config-vpc-if)# exit
apic1(config-vpc)# interface vpc red fex 101 101
apic1(config-vpc-if)# switchport
apic1(config-vpc-if)# exit
apic1(config-vpc)# interface vpc blue fex 102 102
apic1(config-vpc-if)# shut