vrf forwarding

Configures any port as a VRF port.

Syntax

vrf forwarding{ mgmt-vrf | default-vrf |vrf-name }
no vrf forwarding { mgmt-vrf | default-vrf |vrf-name }

Parameters

mgmt-vrf
Specifies the management VRF.
default-vrf
Specifies the default-vrf.
vrf_name
Specifies the user-defined name of the VRF.

Command Default

By default, the out-of-band (OOB) management port (the eth0 interface) is part of the predefined VRF named mgmt-vrf.

Modes

Interface subtype configuration mode

Usage Guidelines

Use the no form of the command to disable the specified VRF.

Examples

This example enables enable the management VRF on an Ethernet interface and assigns the interface to a subnet.

switch(config)# int te 3/0/2
switch(conf-if-te-3/0/2)# vrf forwarding mgmt-vrf
switch(conf-if-te-3/0/2)# ip addr 10.1.1.1/24

This example disables a management VRF that is configured on a VE interface.

switch(config)# int ve 100
switch(conf-Ve-100)# no vrf forwarding mgmt-vrf