OSPFv3 for IPv6 - Configuration, Neighbor Formation, Verification, and Troubleshooting
Lesson Overview
OSPFv3 is the IPv6-capable version of Open Shortest Path First and retains the core link-state behavior, SPF calculation, area design, neighbor states, DR/BDR operation, and LSDB synchronization concepts used in OSPFv2.
In this lesson, learners examine what changes when moving from OSPFv2 to OSPFv3, including IPv6 addressing, link-local neighbor communication, Router ID requirements, updated LSA behavior, and modern IOS-XE configuration methods.
Learning objectives
- Explain what OSPFv3 changes compared with OSPFv2 and what remains the same.
- Describe neighbor formation from Down through Full and identify where failures occur.
- Configure a single-area OSPFv3 domain for IPv6 using current IOS-XE syntax.
- Recognize the classic ipv6 router ospf / ipv6 ospf interface syntax still seen in labs and existing networks.
- Use show commands and their counters/states to isolate adjacency and route-learning problems.
- Perform a controlled fault-injection lab and recover OSPFv3 without guessing.
1. Introduction to OSPFv3
OSPFv3 is a link-state Interior Gateway Protocol used for dynamic routing.
Like OSPFv2, every OSPFv3 router maintains information about the network topology in a Link-State Database.
Routers exchange LSAs describing the topology. Each router uses this information to independently calculate the shortest paths through the OSPF domain.
Figure 1 - OSPFv3 Basic Process for Neighborship Formation
OSPFv3 uses the same fundamental SPF algorithm as OSPFv2.
The preferred path is the path with the lowest accumulated OSPF cost.
2. OSPFv3 Fundamentals - IPv6 OSPF
OSPFv3 is the OSPF version designed for IPv6. It keeps core OSPF concepts such as areas, link-state advertisements, SPF calculation, cost, DR/BDR election, and neighbor state machines.
OSPFv3 runs directly over IPv6 using IP protocol number 89. It does not use TCP or UDP.
Neighbor packets are sourced from IPv6 link-local addresses on the local link. Learned IPv6 routes commonly show the neighbor link-local address as the next hop.
The OSPF Router ID is still a 32-bit value written in IPv4 dotted-decimal format, such as 1.1.1.1. It does not need to be an IPv4 address assigned to an interface.
OSPFv3 is enabled on interfaces rather than by matching interfaces with an OSPFv2-style network statement.
On broadcast networks, OSPFv3 uses DR/BDR behavior. Point-to-point links do not elect a DR/BDR.
2.1 OSPFv2 vs OSPFv3 - practical comparison
|
Item |
OSPFv2 |
OSPFv3 |
|
Primary use |
IPv4 routing |
IPv6 routing; OSPFv3 address families can also support IPv4 on capable IOS-XE platforms |
|
Transport |
IPv4 protocol 89 |
IPv6 protocol 89 |
|
Neighbor source address |
Interface IPv4 address |
IPv6 link-local address |
|
Router ID |
32-bit dotted decimal |
32-bit dotted decimal |
|
Activation |
network statement or interface |
interface-based |
|
Multicast |
224.0.0.5 / 224.0.0.6 |
FF02::5 / FF02::6 |
|
Next hop in route table |
IPv4 neighbor address |
Usually neighbor link-local IPv6 address |
|
CCNP point: A global IPv6 address carries the routed prefix, while the OSPFv3 adjacency itself is built using link-local communication on the connected segment. This is why a route can be installed with FE80::... as the next hop. |
|
Address |
Meaning |
Where used |
|
FF02::5 |
All OSPF routers |
Hello packets and OSPF communication on the local link |
|
FF02::6 |
All DR/BDR routers |
DROTHER routers send certain updates toward the DR/BDR on broadcast segments |
2.3 OSPFv3 and IPv6 Link-Local Addresses
Every IPv6-enabled OSPFv3 transit interface requires IPv6 capability.
OSPFv3 routers normally exchange protocol packets using their…
