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.

About this task

Before you begin

A non-default VRF instance has been configured.

Procedure

  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

Example

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)#