Free tech learning for everyone, from basics to pro

Routing & SwitchingNetworking SecurityIntermediate

OSPFv3 for IPv6 on Cisco IOS: configuration, address families and verification

In short: OSPFv3 is OSPF rebuilt for IPv6. It uses the same areas and SPF calculation, but it is enabled on interfaces rather than with network statements, forms neighbours over link-local addresses, and moves addressing information into new LSA types. With address families, one OSPFv3 process can carry IPv4 and IPv6.

What stayed the same

If you know OSPFv2 you already know most of OSPFv3. It is still a link-state protocol with areas, a backbone area 0, hello and dead timers, DR and BDR election on broadcast networks, cost based on bandwidth, and Dijkstra's SPF calculation. Neighbours still move through Init, 2-Way, ExStart, Exchange, Loading and Full.

OSPFv2 compared with OSPFv3OSPFv2IPv4 onlyEnabled with network statementsNeighbours use IPv4 addressesAuthentication inside OSPFOSPFv3IPv6, and IPv4 with address familiesEnabled per interfaceNeighbours use link-local addressesIPsec or authentication trailer
Figure 1. OSPFv3 keeps the same areas, LSAs ideas and SPF calculation, but changes how it is switched on and how it talks.

What changed

  • Per-interface configuration. There are no network statements. You put the interface in an area directly.
  • Link-local neighbours. Hellos are sent from the link-local address to FF02::5 (all OSPF routers) and FF02::6 (DRs). Next hops in the routing table are link-local addresses.
  • Router ID is still 32 bits. It looks like an IPv4 address. On a router with no IPv4 addresses at all, OSPFv3 cannot pick one automatically, so you must set it or the process will not start.
  • New LSAs. Router and network LSAs no longer carry prefixes. Type 8 (link LSA) carries the link-local address and prefixes on a link, and type 9 (intra-area prefix LSA) carries prefixes for the area. This means a change to an address does not force a full SPF run.
  • Security. OSPFv3 originally relied on IPsec. Newer IOS releases also support the authentication trailer (RFC 7166), which is simpler to configure.

Configuration: classic IPv6 style

ipv6 unicast-routing
ipv6 router ospf 1
 router-id 1.1.1.1
!
interface GigabitEthernet0/0
 ipv6 address 2001:db8:1:1::1/64
 ipv6 ospf 1 area 0
interface GigabitEthernet0/1
 ipv6 address 2001:db8:1:12::1/64
 ipv6 ospf 1 area 0
 ipv6 ospf network point-to-point

Configuration: address-family style

Newer IOS XE configurations use router ospfv3, which can run separate IPv4 and IPv6 address families under one process:

router ospfv3 1
 router-id 1.1.1.1
 address-family ipv6 unicast
  passive-interface GigabitEthernet0/0
 exit-address-family
!
interface GigabitEthernet0/1
 ospfv3 1 ipv6 area 0
 ospfv3 1 ipv4 area 0

Each address family forms its own neighbour relationship, so a link carrying both shows two neighbours to the same router in the outputs.

Verification

  • show ospfv3 neighbor (or show ipv6 ospf neighbor): neighbour ID, state and interface.
  • show ospfv3 interface brief: which interfaces are in which area, with cost and state.
  • show ipv6 route ospf: OSPF routes, marked O, OI (inter-area), OE1 or OE2.
  • show ospfv3 database: look for the link and intra-area prefix LSAs.

Real-world example: the IPv6-only lab router

A student built an IPv6-only lab with three routers and could not get OSPFv3 to start on any of them. The log message said the process could not allocate a router ID. Because there were no IPv4 addresses anywhere, IOS had nothing to borrow. Adding router-id 1.1.1.1, 2.2.2.2 and 3.3.3.3 under each process brought all the adjacencies up within seconds.

Practice

How do you add an interface to OSPFv3 area 0 in classic IPv6 configuration?
Under the interface: ipv6 ospf 1 area 0.
Why might OSPFv3 refuse to start on an IPv6-only router?
It needs a 32-bit router ID and cannot choose one without an IPv4 address, so you must set router-id manually.
Which OSPFv3 LSA type carries a router's link-local address to its neighbours?
The type 8 link LSA.

Key takeaways

  • OSPFv3 keeps OSPF's areas and SPF but is enabled per interface.
  • Neighbours and next hops use link-local addresses.
  • The router ID is still a 32-bit value and must be set on IPv6-only routers.
  • Address families let one OSPFv3 process carry both IPv4 and IPv6.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: