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.
device# configure terminal
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-router-ospf-vrf-green)#