Use it when IPv6 routes are missing, or OSPFv3 neighbours do not form.
IPv6 OSPF
IPv6 OSPF is OSPFv3 carrying IPv6 routes: adjacencies form between link-local addresses, and IPv6 prefixes are advertised in dedicated LSAs separate from the topology.
1. ipv6 unicast-routing configured?
2. show ospfv3 neighbor — FULL?
3. Missing → interface enabled for OSPFv3 in the same area on both ends? Link-local addresses present?
4. Process not starting → router ID missing on a router with no IPv4 address.
5. show ipv6 route ospf — prefixes installed?
ipv6 unicast-routing on → router ID set → interfaces enabled in the right area → link-local hellos match → FULL → LSAs exchanged → IPv6 routes installed with link-local next hops
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ospfv3 interfaceShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ospfv3 interfaceShowDisplay OSPFv3 interface settings.
Use when: Verify local interface conditions for OSPFv3 adjacency and metric.
Quick note: Primary interface boundary for OSPFv3 neighbor troubleshooting.
Cisco IOS / IOS XE · mixed · verifiesshow ipv6 route ospfShowDisplay OSPFv3 routes in the IPv6 routing table.
Use when: Confirm expected OSPFv3 IPv6 routes reached the local RIB.
Quick note: After Full neighbor, use LSDB then this RIB view to trace a missing prefix.
Cisco IOS / IOS XE · mixed · verifiesVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational verification and known-good state Verify boundary
show ospfv3 interface brief
show ospfv3 neighbor
show ospfv3 database
show ipv6 route ospf
The brief interface view shows which interfaces take part, in which area and at what cost. The neighbour table lists neighbours by router ID with their state and interface. The database is organised by LSA type, including the Link and Intra-Area-Prefix types that have no OSPFv2 counterpart. The routing table shows O and OI routes via link-local next hops.
Known-good: every intended interface is listed, neighbours are Full, and each remote IPv6 prefix is present as an OSPF route.
Step 2 Verification & troubleshooting Narrow the fault
1. show ospfv3 interface brief → the interfaces enabled for OSPFv3, their area, cost and state.
2. show ospfv3 neighbor → neighbours and their state.
3. show ospfv3 database → the LSAs per area.
4. show ipv6 route ospf → the resulting routes, with link-local next hops and outgoing interfaces.
5. For a missing prefix, check on the originating router that the interface is enabled for OSPFv3 and has a global address.
Step 3 Failure signatures and troubleshooting branches Narrow the fault
- The OSPFv3 process does not start. The router has no IPv4 address to derive a router ID from and none is configured.
- No neighbours. OSPFv3 is not enabled on the interface, the interface has no link-local address, or area, timers or instance ID differ.
- Neighbours are Full but a prefix is missing. The originating interface is not in OSPFv3 or has no global address.
- Nothing is forwarded although routes exist.
ipv6 unicast-routingis missing. - The usual OSPF show commands return nothing.
show ip ospf …is OSPFv2; useshow ospfv3 ….
Step 4 When the problem is really fixed Narrow the fault
- The process is running with an explicit router ID.
- All intended interfaces appear in
show ospfv3 interface briefin the right area. - Neighbours are Full.
- Remote IPv6 prefixes are in
show ipv6 route ospfand a sourced ping succeeds.
Step 5 Common mistakes Narrow the fault
- Expecting OSPFv3 to use the IPv6 global address for neighbours — it uses link-local.
- No router ID on IPv6-only routers.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
ipv6 unicast-routing must be on. Enable it per interface: ipv6 ospf <process> area <area> (classic) or ospfv3 <process> ipv6 area <area> (address-family mode). A router with no IPv4 address needs router-id configured by hand. Next hops in the routing table are link-local.
show ospfv3 neighbor(orshow ipv6 ospf neighbor) — neighbours and state.show ospfv3 interface brief(orshow ipv6 ospf interface brief) — OSPFv3 interfaces and areas.show ospfv3 database— the LSAs.show ipv6 route ospf— the routes installed.show ipv6 interface brief— link-local addresses, which OSPFv3 uses for adjacencies.
ReferenceWhat it is1 section · depth on demand
What it is
OSPFv3 is the version of OSPF that routes IPv6. It keeps the ideas of OSPFv2 — areas, link-state database, SPF, cost — but runs over IPv6: routers talk to each other using link-local addresses, and IPv6 prefixes are carried in their own LSA types.
ReferenceWhy it matters1 section · depth on demand
Why it matters
Anyone who knows OSPFv2 can run OSPFv3, but a handful of differences cause most of the trouble in practice: the router ID still has to be a 32-bit value, even on a router with no IPv4 address; the protocol is enabled per interface rather than with network statements; neighbours and next hops are link-local addresses; and all the show commands are different.
ReferenceImportant terms & boundaries4 sections · depth on demand
Key points
ipv6 unicast-routingmust be enabled.- Configure the process with
router ospfv3 <id>and arouter-id; enable it per interface withospfv3 <id> ipv6 area <area>. (The older style isipv6 router ospf <id>andipv6 ospf <id> area <area>.) - Hellos go from the interface's link-local address to FF02::5; DR and BDR listen on FF02::6.
- Next hops in the routing table are the neighbours' link-local addresses.
- Router and Network LSAs describe topology only; prefixes travel in separate LSAs.
- Verification uses
show ospfv3 …(orshow ipv6 ospf …with the older style), and routes appear undershow ipv6 route ospf. - Administrative distance 110, cost and area rules as in OSPFv2.
In depth
OSPF for IPv6 on Cisco IOS XE
The Catalyst 9000 OSPF guide lists three prerequisites before enabling IPv6 OSPF: ip routing, ipv6 unicast-routing, and IPv6 enabled on each Layer 3 interface. OSPFv3 can be configured with the newer router ospfv3 and ospfv3 … area commands, or the older ipv6 router ospf and ipv6 ospf … area commands. Process IDs range from 1 to 65535.
R1(config)# ip routing
R1(config)# ipv6 unicast-routing
R1(config)# ipv6 router ospf 1
R1(config-rtr)# router-id 10.0.0.1
R1(config-rtr)# passive-interface Vlan20
R1(config)# interface TenGigabitEthernet1/1/1
R1(config-if)# ipv6 address 2001:db8:ff::1/127
R1(config-if)# ipv6 ospf 1 area 0
R1(config)# interface Vlan20
R1(config-if)# ipv6 address 2001:db8:20::1/64
R1(config-if)# ipv6 ospf 1 area 0
R1# show ipv6 ospf interface brief
Interface PID Area Intf ID Cost State Nbrs F/C
Te1/1/1 1 0 17 1 P2P 1/1
Vl20 1 0 52 1 DR 0/0
R1# show ipv6 route ospf
O 2001:DB8:30::/48 [110/11]
via FE80::A6BB:6DFF:FE11:2201, TenGigabitEthernet1/1/1
The next hop is the neighbour's link-local address, as RFC 5340 specifies for OSPFv3.
Configuration differences from OSPFv2
| OSPFv2 | OSPF for IPv6 | |
|---|---|---|
| Enable on interfaces | network statements | Interface command (ipv6 ospf <pid> area <id>) |
| Router ID | Derived from IPv4 addresses if not set | Must be set when the router has no IPv4 address |
| Next hops | Neighbour IPv4 address | Neighbour link-local address |
| Hello destination | 224.0.0.5 | FF02::5 |
Documented options (Catalyst 9000 guide)
| Option | Detail |
|---|---|
| Area range | area <id> range <prefix>/<len> [advertise | not-advertise] [cost <n>] |
| ECMP | maximum-paths 1–32, default 16 |
| Verify | show ipv6 ospf [<pid>] [<area>] interface, show ipv6 ospf |
Run OSPFv2 and OSPFv3 side by side for dual stack, or use OSPFv3 address families to carry both in one protocol.
Documented example, not captured output.
Quick reference
IPv6 OSPF (OSPFv3) runs per link rather than per subnet: adjacencies form over link-local addresses, and prefixes are carried in separate LSAs from topology. It is enabled directly on interfaces.
ipv6 unicast-routing
router ospfv3 1
router-id 10.255.255.1
interface Gi0/1
ipv6 address 2001:db8:12::1/64
ospfv3 1 ipv6 area 0
show ospfv3 neighbor
Documented example, not captured output.
Authentication in OSPFv3 uses IPsec or the authentication trailer (RFC 7166) instead of the OSPFv2 MD5 field.
Mechanics and state ownership
OSPFv3 runs per link rather than per subnet. Two routers on the same link become neighbours through their link-local addresses whether or not their global prefixes agree, and several prefixes on one interface are all advertised without extra configuration.
Topology and addressing are separated. Router and Network LSAs say which routers are connected to which, with costs, and contain no prefixes. The prefixes attached to a router or a segment are carried in Intra-Area-Prefix LSAs, and each router announces its link-local address and on-link prefixes to its direct neighbours in a Link LSA that never leaves the link. A change of address therefore does not alter the topology LSAs and does not force a full SPF run.
Because next hops are link-local addresses, a route always names the outgoing interface as well — the same FE80:: address can exist on every link.
Authentication is not built into the OSPFv3 packet as it was in OSPFv2; it is provided by IPsec or by a separate authentication trailer, configured on the interface or area.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → OSPF → OSPFv3 → IPv6 OSPF. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc5340.html · confidence 94%Quick lookup tables
IPv6 OSPF operational reference
Topic-specific bounded interpretation: known-good protocol state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for IPv6 OSPF | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches OSPFv3 operation for IPv6 unicast, where adjacencies are interface-centric and commonly use IPv6 link-local next hops while prefix reachability is carried separately from classic OSPFv2 addressing assumptions design | Policy, area, family or metric input differs | Compare effective configuration |
| Protocol state | Stable expected adjacency/database/topology decision | neighbors missing because OSPFv3 is not enabled on the intended interface, link-local or interface-scope confusion, a valid Full adjacency with the required IPv6 prefix absent from the LSDB or RIB, a route installed with an unexpected link-local next hop, or operators expecting OSPFv2-style network statements to explain interface participation | Inspect peer/LSDB/topology detail |
| Route/forwarding | Expected RIB/FIB next hop or multipath set | Protocol state exists but route/path disagrees | RIB/FIB/CEF and next-hop proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or state was forced | Regression test |