Send document comments to nexus7k-docfeedback@cisco.com
7-38
Cisco Nexus 7000 Series NX-OS Interfaces Configuration Guide, Release 5.x
OL-23435-03
Chapter 7 Configuring vPCs
Configuring vPCs
This example shows how to configure a vPC peer link:
switch# configure terminal
switch(config)# interface port-channel 20
switch(config-if)# switchport mode
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk allowed vlan 1-120,201-3967
switch(config-if)# vpc peer-link
switch(config-vpc-domain)#
Configuring the vPC Peer-Gateway
Beginning with Cisco NX-OS Release 4.2(1) and later releases, you can configure vPC peer devices to
act as the gateway for packets that are destined to the vPC peer device's MAC address.
Note When you attach a Layer 3 device to a vPC domain, the peering of routing protocols using a VLAN also
carried on the vPC peer-link is not supported. If routing protocol adjacencies are needed between vPC
peer devices and a generic Layer 3 device, you must use physical routed interfaces for the
interconnection. Use of the vPC peer-gateway feature does not change this requirement.
BEFORE YOU BEGIN
Ensure that you have enabled the vPC feature.
Ensure that you are in the correct VDC (or use the switchto vdc command).
SUMMARY STEPS
1. configure terminal
2. vpc domain domain-id
3. peer-gateway
4. peer-gateway exclude-vlan backup-vlan-id
5. exit
6. (Optional) show vpc brief
7. (Optional) copy running-config startup-config
Step 7
show vpc brief
Example:
switch# show vpc brief
(Optional) Displays information about each vPC,
including information about the vPC peer link.
Step 8
copy running-config startup-config
Example:
switch# copy running-config startup-config
(Optional) Copies the running configuration to the
startup configuration.
Command Purpose