Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Router ID · OSPFv3

Direct answer

The OSPF router ID is a 32-bit value, written like an IPv4 address, that identifies a router in the OSPF domain. OSPFv3 uses one too, even on IPv6-only routers.

When to use this

Use it when an OSPFv3 process will not start, or neighbours behave oddly because two routers share an ID.

First 30 seconds

1. show ospfv3 — which router ID is in use?

2. None / process down → configure router-id under the process.

3. Two routers with the same ID → change one, then clear ospfv3 process there.

4. Configured but not used → the process was not cleared after the change.

5. Check neighbours again.

Operational verification

router-id configured (or derived from IPv4) → unique in the domain → process running with that ID → neighbours form

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 · IOS/IOS XE
Key commandshow ospfv3 neighbor
Scope / prerequisiteUse it when an OSPFv3 process will not start, or neighbours behave oddly because two routers share an ID.
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.

6 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
show ospfv3 neighbor
show running-config | section router ospfv3

show ospfv3 prints the process with its router ID for each address family. The neighbour table lists the IDs of the neighbours. The configuration shows whether the ID was set explicitly.

Known-good: the ID in use equals the configured one, and no other router in the domain uses it.

Step 2 Verification & troubleshooting Narrow the fault

1. show ospfv3 → the process and the router ID in use.

2. show logging | include OSPFv3 → a message that no router ID could be chosen.

3. show ospfv3 neighbor → Neighbor ID column; look for an ID that equals your own or appears twice.

4. Configure router-id and, if the process was already running, restart it in a maintenance window.

Step 3 Branching failure-boundary diagnosis Narrow the fault

Branch interface/link and multicast reachability → Hello/dead/network-type/area/auth parameters → neighbor state → EXSTART/EXCHANGE DBD/MTU/sequence behavior → LOADING/FULL LSDB presence → SPF result → RIB/FIB/CEF installation and next-hop resolution → return path.

Step 4 Failure signatures and troubleshooting branches Narrow the fault
  • The process does not come up on an IPv6-only router. No router ID could be selected; configure one.
  • A neighbour will not form although everything else matches. Both routers have the same router ID.
  • Routes behind two routers flap. Duplicate IDs between routers that are not neighbours.
  • router-id was changed and the old ID is still shown. The process has not been restarted.
  • The ID is assumed to be an IPv6 address. It is a 32-bit label and never an IPv6 address.
Step 5 When the problem is really fixed Narrow the fault
  • The process is running and shows the configured router ID.
  • Every router in the domain has a unique ID.
  • No router-ID messages appear in the log.
  • Neighbours are listed under their expected IDs.
Step 6 Common mistakes Narrow the fault
  • IPv6-only router without an IPv4 address and no router-id configured.
  • Duplicate router IDs copied from templates.
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

Without an explicit router-id, the router picks one from an IPv4 address (loopback first). On a router with no IPv4 address at all, OSPFv3 cannot pick one — configure it. A changed router ID takes effect only after clear ospfv3 process (or clear ip ospf process). Duplicates are logged.

Key checks
  • show ospfv3 (or show ipv6 ospf) — the router ID in use.
  • show ip ospf | include ID — for OSPFv2.
  • show logging | include DUP_RTRID|NORTRID — duplicate or missing router ID.
  • show running-config | include router-id — configured values.
ReferenceWhat it is1 section · depth on demand

What it is

OSPFv3 identifies each router by a 32-bit router ID written in dotted decimal, exactly as OSPFv2 does — even though the addresses being routed are IPv6. The ID is a label for the router, not an address.

ReferenceWhy it matters1 section · depth on demand

Why it matters

On a router that has IPv4 addresses the ID is picked automatically, as in OSPFv2. On an IPv6-only router there is nothing to pick from, and the process does not start until an ID is configured. Because the ID is typed by hand more often here, copied configurations with duplicate IDs are a real risk too.

ReferenceHow it works1 section · depth on demand

Mechanics and state boundaries

Separate transport/interface eligibility, Hello exchange, parameter compatibility, neighbor discovery, adjacency state transitions, DBD/MTU negotiation, LSDB synchronization, SPF selection and RIB/FIB/CEF installation/programming. FULL is an adjacency milestone; it is not evidence that the expected LSA exists, wins route selection or forwards traffic.

ReferenceImportant terms & boundaries4 sections · depth on demand

Key points

  • 32 bits, dotted decimal; it does not have to match any address on the router.
  • Set it with router-id <a.b.c.d> under router ospfv3 <id>.
  • Without it, the router falls back to the highest IPv4 loopback or interface address; with no IPv4 address at all, OSPFv3 cannot start.
  • Must be unique in the OSPF domain.
  • A change takes effect only after the process is restarted.
  • Neighbours, LSAs and the DR election all refer to routers by this ID.

In depth

The OSPFv3 router ID is still a 32-bit number

RFC 5340 keeps router IDs, area IDs and link state IDs as 32-bit values in OSPFv3, and states that the router ID 0.0.0.0 is reserved and should not be used. The router ID has nothing to do with IPv6 addresses: it's only an identifier, written in dotted-decimal form.

R1(config)# ipv6 router ospf 1
R1(config-rtr)# router-id 10.0.0.1
%OSPFv3-4-NORTRID: Process OSPFv3-1-IPv6 could not pick a router-id, please configure manually
R1# show ipv6 ospf | include ID
 Routing Process "ospfv3 1" with ID 10.0.0.1
R1# show ospfv3 neighbor
Neighbor ID     Pri   State           Dead Time   Interface ID    Interface
10.0.0.2          0   FULL/  -        00:00:35    17              TenGigabitEthernet1/1/1

The NORTRID message is what an IPv6-only router logs before router-id is configured: with no IPv4 address on any interface, it has nothing to derive an ID from.

How IOS XE picks the router ID

OrderSource
1router-id configured under the process
2Highest IPv4 address on a loopback
3Highest IPv4 address on another up interface
4None: the process doesn't start

The Catalyst 9300 OSPF guide documents the same selection for OSPFv2: highest interface address, with loopbacks preferred.

Practice

PracticeReason
Configure the router ID explicitlyWorks on IPv6-only routers; doesn't change when addresses change
Use the same ID for OSPFv2 and OSPFv3One identifier per router in monitoring and troubleshooting
Keep IDs unique across the whole OSPF domainDuplicate IDs break adjacencies and LSA processing
Base the ID on a documented plan (for example the IPv4 loopback)Easy to map an ID to a device

Changing the router ID

A new router ID only takes effect after the process restarts (clear ipv6 ospf process), which drops all adjacencies of that router. Do it in a maintenance window.

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

The OSPFv3 router ID is still a 32-bit dotted-decimal number, even though OSPFv3 carries IPv6. On an IPv6-only router without IPv4 addresses, the process cannot choose one automatically and must be configured.

router ospfv3 1
 router-id 10.255.255.1
show ospfv3 | include Router ID

Documented example, not captured output.

Use the same router ID for OSPFv2 and OSPFv3 on a dual-stack router so troubleshooting outputs line up.

Mechanics and state ownership

The router ID has the same job as in OSPFv2: it goes in the header of every OSPFv3 packet and names the originator of every LSA. What differs is where it comes from. OSPFv3 has no IPv6 rule for choosing it; it borrows the OSPFv2 method and looks for IPv4 addresses. An IPv6-only router has none, the selection fails, and the process stays down with a log message asking for manual configuration.

Since OSPFv3 neighbours are reached through link-local addresses, the router ID is also the only stable way to tell neighbours apart in the output — which is why the neighbour table is keyed on it.

Duplicates behave as in OSPFv2. Two neighbours with the same ID do not form an adjacency. Two routers with the same ID elsewhere in the area keep replacing each other's LSAs, and routes behind them come and go.

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 → Router ID. 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

Router ID operational reference

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

BoundaryKnown-good for Router IDSuspicious signatureNext proof
IntentMatches the 32-bit OSPFv3 Router ID used as protocol identity independently of whether the routed address family is IPv6 or IPv4 designPolicy, area, family or metric input differsCompare effective configuration
Protocol stateStable expected adjacency/database/topology decisionduplicate Router IDs, an automatically selected Router ID changing after topology or interface changes, an operator expecting the Router ID to be an IPv6 address, stale neighbor/LSA state after a Router-ID change, or troubleshooting the wrong peer because link-local address and Router ID were conflatedInspect 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?