To enable Layer 3 forwarding for packets destined to the gateway MAC address of the virtual Port Channel (vPC), use the peer-gateway command. To disable Layer 3 forwarding packets, use the no form of this command.
peer-gateway
no peer-gateway
This command has no arguments or keywords.
None
vPC domain configuration mode
|
Release
|
Modification
|
|---|---|
|
5.0(3)N1(1)
|
This command was introduced.
|
The vPC peer-gateway functionality allows a vPC switch to act as the active gateway for packets that are addressed to the router MAC address of the vPC peer. This feature enables local forwarding of such packets without the need to cross the vPC peer-link. In this scenario, the feature optimizes use of the peer-link and avoids potential traffic loss.
You must configure the peer-gateway functionality on both vPC peer switches.
Note This command is applicable to a Cisco Nexus 5548 switch and Cisco Nexus 5596 switch.
This command does not require a license.
This example shows how to enable the vPC peer gateway:
|
Command
|
Description
|
|---|---|
|
copy running-config startup-config
|
Copies the running configuration to the startup configuration.
|
|
show vpc
|
Displays information about the vPCs.
|