Assigning OSPFv3 areas

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 ip router-id command to specify the router ID.
    device(config) ip router-id 10.11.12.13
  3. Enter the ipv6 router ospf command to enter OSPFv3 router configuration mode and enable OSPFv3 on the device.
    device(config)# ipv6 router ospf
  4. Enter the area command to define an OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 0
  5. Enter the area command to define a second OSPFv3 area ID.
    device(config-ipv6-router-ospf-vrf-default-vrf)# area 10.1.1.1

The following example assigns an OSPFv3 ID to two areas. One of the areas is assigned by decimal number. The second area is assigned by IP address.

device# configure terminal
device(config)# ip router-id 10.11.12.13
device(config)# ipv6 router ospf 
device(config-ipv6-router-ospf-vrf-default-vrf)# area 0
device(config-ipv6-router-ospf-vrf-default-vrf)# area 10.1.1.1