vpc bind-vrf

To bind a virtual routing and forwarding (VRF) instance to a virtual Port Channel (vPC), use the vpc bind-vrf command. To remove the static binding between the vPC and VRF, use the no form of this command.

vpc bind-vrf vrf-name vlan vlan-id

no vpc bind-vrf vrf-name vlan vlan-id

Syntax Description

vrf-name

VRF name.

vlan vlan-id

Specifies the VLANs to bind to the vPC. The VLAN ID range is from 1 to 3967, and 4049 to 4093.


Command Default

None

Command Modes

Global configuration mode

Command History

Release
Modification

5.0(3)N1(1)

This command was introduced.


Usage Guidelines

To bind the VRF to the vPC, you must use a VLAN that is not already in use. Use the show interfaces brief command to view the interfaces that are in use on the switch.

Examples

This example shows how to bind a vPC to the default VRF using VLAN 2:

switch(config)# vpc bind-vrf default vlan 2 
switch(config)#

Related Commands

Command
Description

show interfaces brief

Displays the configuration information about all interfaces.

show vpc

Displays vPC configuration information.