Use it when an OSPFv3 process will not start, or neighbours behave oddly because two routers share an ID.
Router ID · OSPFv3
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.
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.
router-id configured (or derived from IPv4) → unique in the domain → process running with that ID → neighbours form
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ospfv3 neighborShow Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show ospfv3 neighborShowDisplay OSPFv3 neighbors.
Use when: Directly verify OSPFv3 neighbor/adjacency state.
Quick note: FULL proves adjacency synchronization, not AF route installation.
Cisco IOS / IOS XE · mixed · verifiesshow ospfv3 databaseShowDisplay the OSPFv3 link-state database.
Use when: Trace whether required OSPFv3 topology/prefix information exists in the LSDB.
Quick note: Database evidence precedes AF route-table evidence.
Cisco IOS / IOS XE · control plane · 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
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
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-idwas 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-idconfigured. - Duplicate router IDs copied from templates.
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.
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.
show ospfv3(orshow 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>underrouter 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
| Order | Source |
|---|---|
| 1 | router-id configured under the process |
| 2 | Highest IPv4 address on a loopback |
| 3 | Highest IPv4 address on another up interface |
| 4 | None: the process doesn't start |
The Catalyst 9300 OSPF guide documents the same selection for OSPFv2: highest interface address, with loopbacks preferred.
Practice
| Practice | Reason |
|---|---|
| Configure the router ID explicitly | Works on IPv6-only routers; doesn't change when addresses change |
| Use the same ID for OSPFv2 and OSPFv3 | One identifier per router in monitoring and troubleshooting |
| Keep IDs unique across the whole OSPF domain | Duplicate 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.
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
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 → Router ID. 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
Router ID operational reference
Topic-specific bounded interpretation: known-good protocol state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for Router ID | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches the 32-bit OSPFv3 Router ID used as protocol identity independently of whether the routed address family is IPv6 or IPv4 design | Policy, area, family or metric input differs | Compare effective configuration |
| Protocol state | Stable expected adjacency/database/topology decision | duplicate 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 conflated | 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 |