Reference Guide
Task Command Syntax Command Mode
and VRF ID number, and enter
VRF configuration mode.
Assign an Interface to a VRF
You must enter the ip vrf forwarding command before you configure the IP address or any other setting
on an interface.
NOTE: You can configure an IP address or subnet on a physical or VLAN interface that overlaps the
same IP address or subnet configured on another interface only if the interfaces are assigned to
different VRFs. If two interfaces are assigned to the same VRF, you cannot configure overlapping IP
subnets or the same IP address on them.
Task Command Syntax Command Mode
Assign an interface to a VRF
instance.
ip vrf forwarding vrf-
name
INTERFACE
View VRF Instance Information
To display information about VRF configuration, enter the show ip vrf command.
Task Command Syntax Command Mode
Display the interfaces assigned to
a VRF instance. To display
information on all VRF instances
(including the default VRF 0), do
not enter a value for
vrf-name.
show ip vrf [
vrf-name]
EXEC
Connect an OSPF Process to a VRF Instance
OSPF routes are supported on all VRF instances. Refer to Open Shortest Path First (OSPFv2) for complete
OSPF configuration information.
Assign an OSPF process to a VRF instance . Return to CONFIGURATION mode to enable the OSPF
process. The OSPF Process ID is the identifying number assigned to the OSPF process, and the Router ID
is the IP address associated with the OSPF process.
Task Command Syntax Command Mode
Enable the OSPFv2 process
globally for a VRF instance. Enter
the VRF key word and instance
name to tie the OSPF instance to
the VRF. All network commands
under this OSPF instance are
subsequently tied to the VRF
instance.
process-id range:
0-65535
router ospf
process-id
vrf vrf name
CONFIGURATION
Once the OSPF process and the VRF are tied together, the OSPF Process ID cannot be used again in the
system.
1030
Virtual Routing and Forwarding (VRF)










