Cisco Systems N5KC5596TFA Switch User Manual


 
This example shows how to configure a vPC peer link:
switch# configure terminal
switch(config)# vpc domain 5
switch(config-if)# system-priority 4000
Manually Configuring a vPC Peer Switch Role
By default, the Cisco NX-OS software elects a primary and secondary vPC peer switch after you configure
the vPC domain and both sides of the vPC peer link. However, you may want to elect a specific vPC peer
switch as the primary switch for the vPC. Then, you would manually configure the role value for the vPC
peer switch that you want as the primary switch to be lower than the other vPC peer switch.
vPC does not support role preemption. If the primary vPC peer switch fails, the secondary vPC peer switch
takes over to become operationally the vPC primary switch. However, the original operational roles are not
restored when the formerly primary vPC comes up again.
Before You Begin
Ensure that you have enabled the vPC feature.
You must configure both switches on either side of the vPC peer link with the following procedure.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Selects an existing vPC domain on the switch, or creates
a new vPC domain, and enters the vpc-domain
switch(config)# vpc domain
domain-id
Step 2
configuration mode. There is no default domain-id ; the
range is from 1 to 1000.
Enters the role priority that you want for the vPC system
priority. The range of values is from 1 to 65535. The
default value is 32667.
switch(config-vpc-domain)# role
priority priority
Step 3
(Optional)
Displays information about each vPC, including
information about the vPC peer link.
switch# show vpc brief
Step 4
(Optional)
Copies the running configuration to the startup
configuration.
switch# copy running-config
startup-config
Step 5
This example shows how to configure a vPC peer link:
switch# configure terminal
switch(config)# vpc domain 5
switch(config-if)# role priority 4000
Cisco Nexus 5000 Series NX-OS Interfaces Configuration Guide, Release 5.2(1)N1(1)
92 78-26881-OL
Configuring Virtual Port Channels
Manually Configuring a vPC Peer Switch Role