Enabling OSPFv3 in a Non-default VRF

When OSPFv3 is enabled in a non-default VRF instance, the device enters OSPFv3 router VRF configuration mode. Several commands can then be accessed that allow the configuration of OSPFv3.
  1. Enter the configure terminal command to access global configuration mode.
    device# configure terminal
  2. Enter the vrf command and specify a name to enter Virtual Routing and Forwarding (VRF) configuration mode and create a non-default VRF instance.
    device(config)# vrf green
  3. Enter the rd command, assigning an administrative number and arbitrary number the route, to distinguish a route for VRF green.
    device(config-vrf-green)# rd 100:200
  4. Enter the ip router-id command to specify the router ID.
    device(config-vrf-green)# ip router-id 10.11.12.14
  5. Enter the address-family ipv6 command to enter IPv6 address-family configuration mode.
    device(config-vrf-green)# address-family ipv6
  6. Enter the exit command until you return to global configuration mode.
    device(config-vrf-green-ipv6)# exit
  7. Enter the ipv6 router ospf command and specify a VRF name to enter OSPFv3 router VRF configuration mode and enable OSPFv3 on a non-default VRF.
    device(config)# ipv6 router ospf vrf green

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

device# configure terminal
device(config)# vrf green
device(config-vrf-green)# rd 100:200
device(config-vrf-green)# ip router-id 10.11.12.14
device(config-vrf-green)# address-family ipv6
device(config-vrf-green-ipv6)# 
device(config-vrf-green-ipv6)# exit
device(config)# ipv6 router ospf vrf green
device(config-ospf6-router-vrf-green)#