Assigning OSPFv3 Areas in a Non-default VRF

Areas can be assigned as OSPFv3 areas in a non-default VRF.
Note: ICX 7150 devices do not support VRFs.

Enable IPv6 on each interface on which you plan to enable OSPFv3. You enable IPv6 on an interface by configuring an IP address or explicitly enabling IPv6 on that interface.

  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 red
  3. Enter the rd command, assigning an administrative number and arbitrary number the route, to distinguish a route for VRF green.
    device(config-vrf-red)# rd 100:200
  4. Enter the ip router-id command to specify the router ID.
    device(config-vrf-red)# ip router-id 10.11.12.14
  5. Enter the address-family ipv6 command to enter IPv6 address-family configuration mode.
    device(config-vrf-red)# address-family ipv6
  6. Enter the exit command until you return to global configuration mode.
    device(config-vrf-red-ipv6)# exit
  7. Enter the ipv6 router ospf command and specify a VRF name to enter OSPFv3 configuration mode and enable OSPFv3 in a non-default VRF.
    device(config)# ipv6 router ospf vrf red
  8. Enter the area command to define an OSPFv3 area ID.
    device(config-ospf6-router-vrf-red)# area 0
  9. Enter the area command to define a second OSPFv3 area ID.
    device(config-ospf6-router-vrf-red)# area 10.1.1.1

The following example assigns an OSPFv3 ID to two areas in a non-default VRF instance. One of the areas is assigned by decimal number. The second area is assigned by IP address.

device# configure terminal
device(config)# vrf red
device(config-vrf-red)# rd 100:200
device(config-vrf-red)# ip router-id 10.11.12.13
device(config-vrf-red)# address-family ipv6 
device(config-vrf-red-ipv6)# 
device(config-vrf-red-ipv6)# exit
device(config)# ipv6 router ospf vrf red
device(config-ospf6-router-vrf-red)# area 0
device(config-ospf6-router-vrf-red)# area 10.1.1.1