Users Guide

Layer 3 Routing Commands 1863
Syntax
ip vrf forwarding vrf-name
no ip vrf forwarding
vrf-name—The name of the VRF with which to associate the interface.
Default Configuration
All interfaces are members of the global routing instance.
Command Mode
Interface (VLAN) Configuration mode, Interface Range (VLAN)
Configuration mode, Interface (Loopback) Configuration mode
User Guidelines
The VRF identified in the parameter must have been previously created or an
error is returned.
This command is only available on the N3000-ON/N3100-ON/N3200-ON
switches.
L3 configuration on an interface, including the IP address, is retained when
the interface migrated to a new VRF instance. A interface may be migrated
from the global routing instance to a VRF or from any non-global VRF
instances as well.
Example
The following example shows the configuration of two VRFs (Red and Blue)
for IPv4 routing. Both VRFs will operate over two trunk ports (te1/0/1-2) on
their respective VLANs (100 and 200).
console(config)#ip vrf Red
console(config-vrf-Red)#ip routing
console(config-vrf-Red)#exit
console(config)#ip vrf Blue
console(config-vrf-Blue)#ip routing
console(config-vrf-Blue)#exit
console(config)#vlan 100,200
console(config-vlan100,200)#exit
console(config)#interface range te1/0/1-2
console(config-if)#switchport mode trunk
console(config-if)#exit
console(config)#interface vlan 100