Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

IPv6 OSPF

Direct answer

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.

When to use this

Use it when IPv6 routes are missing, or OSPFv3 neighbours do not form.

First 30 seconds

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?

Operational verification

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
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandshow ospfv3 interface
Scope / prerequisiteUse it when IPv6 routes are missing, or OSPFv3 neighbours do not form.
Show · 2
What next?3 suggested next steps
Catalog command links2
Evidence1
On this pageJump to a specific section
Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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-routing is missing.
  • The usual OSPF show commands return nothing. show ip ospf … is OSPFv2; use show 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 brief in the right area.
  • Neighbours are Full.
  • Remote IPv6 prefixes are in show ipv6 route ospf and 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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • show ospfv3 neighbor (or show ipv6 ospf neighbor) — neighbours and state.
  • show ospfv3 interface brief (or show 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-routing must be enabled.
  • Configure the process with router ospfv3 <id> and a router-id; enable it per interface with ospfv3 <id> ipv6 area <area>. (The older style is ipv6 router ospf <id> and ipv6 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 … (or show ipv6 ospf … with the older style), and routes appear under show 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

OSPFv2OSPF for IPv6
Enable on interfacesnetwork statementsInterface command (ipv6 ospf <pid> area <id>)
Router IDDerived from IPv4 addresses if not setMust be set when the router has no IPv4 address
Next hopsNeighbour IPv4 addressNeighbour link-local address
Hello destination224.0.0.5FF02::5

Documented options (Catalyst 9000 guide)

OptionDetail
Area rangearea <id> range <prefix>/<len> [advertise | not-advertise] [cost <n>]
ECMPmaximum-paths 1–32, default 16
Verifyshow 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 5340

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%
Embedded reference data

Quick lookup tables

IPv6 OSPF operational reference

Topic-specific bounded interpretation: known-good protocol state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for IPv6 OSPFSuspicious signatureNext proof
IntentMatches 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 designPolicy, area, family or metric input differsCompare effective configuration
Protocol stateStable expected adjacency/database/topology decisionneighbors 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 participationInspect peer/LSDB/topology detail
Route/forwardingExpected RIB/FIB next hop or multipath setProtocol state exists but route/path disagreesRIB/FIB/CEF and next-hop proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or state was forcedRegression test
Confirmation

Confirm action

Continue?