peer-gateway

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

Syntax Description

This command has no arguments or keywords.

Command Default

None

Command Modes

vPC domain configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

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.

Examples

This example shows how to enable the vPC peer gateway:

switch(config)# vpc domain 20
switch(config-vpc-domain)# peer-gateway
switch(config-vpc-domain)#
 

Related Commands

Command
Description
copy running-config startup-config
Copies the running configuration to the startup configuration.
show vpc
Displays information about the vPCs.