Professional Documents
Culture Documents
Configuring VPC Virtual Port Channel With Cisco Nexus: Lab Topology
Configuring VPC Virtual Port Channel With Cisco Nexus: Lab Topology
PNETLAB Store
PNETLab.com
Lab Topology:
Please use the following topology to complete this lab exercise:
Objectives
vPC stands for Virtual Port Channel, which is a virtualization technology that allows physical links on two different
Cisco Nexus 3000 5000 7000 or 9000 devices that can be consolidated into a logical port to connect to Endpoint
devices. Endpoint can be a switch, server, router or any other device that supports LACP (EtherChannel) link
technology.
vPC uses vPC number to determine which ports belong to the same channel. Ports with the same number of VPCs
on 2 devices will form 1 group. That port channel can be configured as port trunk or access vlan depending on the
model.
In this LAB, configure port channel 1000 mode trunk to connect 2 Switch Distribution and port channel 3 mode
access to connect down to the switch access below.
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task
On 2 Switch NXOS1 and NXOS2 use 2 physical ports E1/1 and E1/2 form a group vPC 1000 and perform
this vPC line trunk.
Using the physical port E1/3 and E1/4 of 2 Switch NXOS1 and NXOS2 form group 3 participating in vPC
number 980 and configure access mode vlan 1900 for this port channel.
Configuration
Perform the initial configuration for the Swich Nexus
After turning on the Nexus Switch, the switch starts long, about 4 -5 minutes, after
starting, we see the log as below, select "yes".
Abort Power On Auto Provisioning [yes - continue with normal setup,
skip - bypass password and basic configuration, no - continue with
Power On Auto Provisioning] (yes/skip/no)[no]:
The switch will continue to run until the log appears as below, select "no". This dialog requires us to use
a highly secure password, if we select "yes" will have to set a complex password, if "no" then just set the
password simply. If you want to ignore not setting a password, select any and then press Ctrl + D
Do you want to enforce secure password standard (yes/no) [y]:
Then log on to the switch with the newly set password, if the password is not set, the password line is
blank.
Task 1: Use interface management 0 to send keepalive packets to set up and maintain vPC.
NXs1(config)#interface mgmt 0
NXs1(config-if)# vrf member management
NXs1(config-if)# ip address 172.16.12.1/24
NXs1(config-if)#exit
NXs2(config)#interface mgmt 0
NXs2(config-if)# vrf member management
NXs2(config-if)# ip address 172.16.12.2/24
NXs2(config-if)#exit
NXs1(config)#feature vpc
NXs1(config)#feature lacp
NXs2(config)#feature vpc
NXs2(config)#feature lacp
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
NXs1(config)#interface e1/1-2
NXs1(config-if)#switchport
NXs1(config-if)#switch mode trunk
NXs1(config-if)#channel-group 1000 mode active
NXs1(config-if)#no shut
NXs1(config-if)#exit
NXs2(config)#interface e1/1-2
NXs2(config-if)#switchport
NXs2(config-if)#switch mode trunk
NXs2(config-if)#channel-group 1000 mode active
NXs2(config-if)#no shut
NXs2(config-if)#exit
Performing the vPC domain creation configuration, on NXs1 pointing peer-keepalive destination to ip
management of NXs2 and on NXs2 pointing to NXs1's ip management.
Perform a configuration that puts the po1000 interface in the vPC domain just configured above
NXs1(config)#interface po1000
NXs1(config-if)#switchport
NXs1(config-if)#switch mode trunk
NXs1(config-if)#spanning-tree port type network
NXs1(config-if)#vpc peer-link
NXs1(config-if)#exit
NXs2(config)#interface po1000
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
NXs2(config-if)#switchport
NXs2(config-if)#switch mode trunk
NXs2(config-if)#spanning-tree port type network
NXs2(config-if)#vpc peer-link
NXs2(config-if)#exit
----------------------------------------------------------
Port Native Status Port
Vlan Channel
----------------------------------------------------------
Eth1/1 1 trnk-bndl Po1000
Eth1/2 1 trnk-bndl Po1000
Po1000 1 trunking --
----------------------------------------------------------
Port Vlans Allowed on Trunk
----------------------------------------------------------
Eth1/1 1-4094
Eth1/2 1-4094
Po1000 1-4094
Task 2: Create VLAN 1900, perform Etherchannel 3 line configuration and access to vlan 1900
NXs1(config)#vlan 1900
NXs1(config-vlan)#exit
NXs1(config)#interface e1/3
NXs1(config-if)#switchport
NXs1(config-if)#switchport access vlan 1900
NXs1(config-if)#channel-group 3 mode active
NXs1(config-if)#no shutdown
NXs1(config-if)#exit
NXs2(config)#vlan 1900
NXs2(config-vlan)#exit
NXs2(config)#interface e1/4
NXs2(config-if)#switchport
NXs2(config-if)#switchport access vlan 1900
NXs2(config-if)#channel-group 3 mode active
NXs2(config-if)#no shutdown
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
NXs2(config-if)#exit
NXs2(config-if)#interface po3
NXs2(config-if)#switchport
NXs2(config-if)#vpc 980
NXs2(config-if)#no shutdown
At the switch access below make vlan 1900 and configure Etherchannel line 3
NXs3(config)#vlan 1900
NXs3(config-vlan)#exit
NXs3(config)#interface e1/3-4
NXs3(config-if-range)# switchport
NXs3(config-if-range)# switchport access vlan 1900
NXs3(config-if-range)# channel-group 3 mode active
NXs3(config-if-range)# no shutdown
NXs3(config-if-range)# exit
Re-check vPC
NXs1# show vpc
Legend:
(*) - local vPC is down, forwarding via vPC peer-link
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com
vPC status
----------------------------------------------------------
Id Port Status Consistency Reason Active vlans
-- ------------ ------ ----------- ------
980 Po3 up success success 1900
vPC status
----------------------------------------------------------
Id Port Status Consistency Reason Active vlans
-- ------------ ------ ----------- ------
980 Po3 up success success 1900
7
Download PNETLab Platform
PNETLAB Store
PNETLab.com