Spis treści

Cisco Switch: Port Channel and Virtual Port Channel

In this tutorial, we will discuss step-by-step what Port Channel (EtherChannel) and Virtual Port Channel (vPC) are, the benefits they bring to Cisco switch-based networks, and provide detailed configuration instructions on both Catalyst (IOS) and Nexus (NX-OS) switches. We will start by explaining the basic concepts, then move on to practical configuration examples, and finally summarise best practice and application scenarios.

What is a Port Channel (EtherChannel)

Definition

Port Channel, also known as EtherChannel, is a technology that combines multiple physical Ethernet ports into a single logical interface to increase throughput and redundancy Wikipedia

Advantages of

Aggregation protocols

EtherChannel configuration on Cisco Catalyst switches (IOS)

Requirements

Example of LACP configuration

Switch(config)# interface range GigabitEthernet1/0/1 - 2
Switch(config-if-range)# channel-group 1 mode active
Switch(config-if-range)# exit
Switch(config)# interface Port-channel1
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan 10,20,30

Status verification

Switch# show etherchannel summary

What is Virtual Port Channel (vPC)

Definition

Virtual Port Channel (vPC) is a solution available on Cisco Nexus switches that allows the configuration of a Multichassis EtherChannel - the aggregation of ports between two physically independent switches into a single logical Port Channel

Advantages and differences

vPC architecture on Nexus switches

Requirements

Key elements

Configuring vPCs on Cisco Nexus switches (NX-OS)

The following example assumes Nexus1 and Nexus2 switches.

Enabling the vpc function

Nexus(config)# feature vpc
Nexus(config)# feature interface-vlan

Configuring the vPC domain and keepalive

Nexus(config)# vpc domain 10
Nexus(config-vpc-domain)# peer-keepalive destination 192.168.0.2 source 192.168.0.1
Nexus(config)# interface ethernet1/1-2
Nexus(config-if-range)# channel-group 100 mode active
Nexus(config-if-range)# exit
Nexus(config)# interface port-channel100
Nexus(config-if)# switchport
Nexus(config-if)# switchport mode trunk
Nexus(config-if)# vpc peer-link

vPC configuration for end devices

Nexus(config)# interface ethernet1/10-11
Nexus(config-if-range)# channel-group 200 mode active
Nexus(config-if-range)# exit
Nexus(config)# interface port-channel200
Nexus(config-if)# switchport
Nexus(config-if)# switchport mode trunk
Nexus(config-if)# vpc 200

Verification

Nexus# show vpc brief
Nexus# show vpc consistency-parameters

Best practice

Applications

With Port Channel and vPC, you can flexibly scale your network, increase bandwidth and ensure high availability while eliminating single points of failure.

Sources

https://en.wikipedia.org/wiki/EtherChannel

https://networklessons.com/switching/etherchannel-cisco-ios-catalyst-switch

https://study-ccna.com/what-is-etherchannel/

https://www.cisco.com/c/dam/en/us/td/docs/switches/lan/catalyst9600/software/release/16-12/configuration_guide/lyr2/configuring_etherchannels.html

https://community.cisco.com/t5/networking-knowledge-base/steps-for-creating-an-etherchannel-between-catalyst-switches/ta-p/3116712

https://community.cisco.com/t5/server-networking/benefits-of-vpc/td-p/2829937

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/6-x/interfaces/configuration/guide/b_Cisco_Nexus_9000_Series_NX-OS_Interfaces_Configuration_Guide/b_Cisco_Nexus_9000_Series_NX-OS_Interfaces_Configuration_Guide_chapter_0111.html

https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/nx-os-software/217274-understand-virtual-port-channel-vpc-en.html

https://learningnetwork.cisco.com/s/question/0D56e0000DzEvFnCQK/nexus-vpc-virtual-port-channel-configuration-lab-for-beginners-who-want-to-learn-more-about-it-using-cisco-cml-part-1