Enabling OSPFv2 in a Non-default VRF

When OSPFv2 is enabled in a non-default VRF instance, the device enters OSPF router VRF configuration mode. Several commands can then be accessed that allow the configuration of OSPFv2.
A non-default VRF instance must be configured.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the router ospf command and specify a VRF name to enter OSPF router VRF configuration mode and enable OSPFv2 on a non-default VRF.
    device(config)# router ospf vrf green

The following example enables OSPFv2 in a non-default VRF.

device# configure terminal
device(config)# router ospf vrf green
device(config-ospf-router-vrf-green)#