Send document comments to nexus7k-docfeedback@cisco.com
7-37
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 7 Configuring vPCs
Configuring vPCs
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. configure terminal
2. interface port-channel channel-number
3. (Optional) switchport mode trunk
4. (Optional) switchport trunk allowed vlan vlan-list
5. vpc peer-link
6. exit
7. (Optional) show vpc brief
8. (Optional) copy running-config startup-config
DETAILED STEPS
Command Purpose
Step 1
configure terminal
Example:
switch# configure terminal
switch(config)#
Enters global configuration mode.
Step 2
interface port-channel channel-number
Example:
switch(config)# interface port-channel 20
switch(config-if)#
Selects the port channel that you want to use as the
vPC peer link for this device, and enters the interface
configuration mode.
Step 3
switchport mode trunk
Example:
switch(config-if)# switchport mode trunk
(Optional) Configures this interface in trunking
mode.
Step 4
switchport trunk allowed vlan vlan-list
Example:
switch(config-if)# switchport trunk
allowed vlan 1-120,201-3967
(Optional) Configures the allowed VLAN list.
Step 5
vpc peer-link
Example:
switch(config-if)# vpc peer-link
switch(config-vpc-domain)#
Configures the selected port channel as the vPC peer
link, and enters the vpc-domain configuration mode.
Step 6
exit
Example:
switch(config-vpc-domain)# exit
switch(config)#
Exits the vpc-domain configuration mode.