Troubleshooting notes · OSPF

OSPF duplicate router ID: two neighbours with the same ID

A router is missing from OSPF, and a neighbour table lists the same router ID twice. How to spot a duplicate OSPF router ID when IOS logs nothing, and fix it. Real output from Cisco IOS XE 17.18.

The symptom

One router, and everything behind it, is missing from OSPF. The neighbour tables give it away. R1 lists two neighbours called 2.2.2.2 at different addresses, and R2 doesn't list R3 at all:

R1# show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
2.2.2.2           1   2WAY/DROTHER    00:00:37    10.0.0.3        Ethernet0/0
2.2.2.2          50   FULL/DR         00:00:33    10.0.0.2        Ethernet0/0
R3# show ip protocols | include Router ID
  Router ID 2.2.2.2
R2# show ip ospf neighbor
Neighbor ID     Pri   State           Dead Time   Address         Interface
1.1.1.1           0   FULL/DROTHER    00:00:39    10.0.0.1        Ethernet0/0

Why it happens

R3 was configured with router-id 2.2.2.2, the same ID as R2. A router discards hellos that carry its own router ID, so R2 ignores R3. R3 never becomes adjacent with the DR, its LSAs don't reach the other routers, and its networks never appear in their routing tables. Don't wait for a log message: in the lab, IOS XE 17.18 logged nothing about the duplicate. The neighbour tables are the evidence.

The fix

Give the router its own ID. On IOS XE 17 the new ID applies at once and resets the router's adjacencies:

R3(config)# router ospf 1
R3(config-router)# router-id 3.3.3.3
%OSPF-6-NEW_RTRID: New router-id will take effect immediately. If OSPF adjacencies are UP for OSPF-1 they will be reset.

On older IOS releases, a new router-id takes effect only after clear ip ospf process or a reload.

Check it

show ip ospf neighbor on R1 should now list each router ID once, and R2 should list R3. Then check the routing tables: the networks behind R3 should appear as OSPF routes.

Practise this fault

This fault is in CCNA Lab 18 of CCNA Troubleshooting Labs: a ready-made GNS3 project where you find and fix it yourself, alongside the other faults in the ticket, with the tested solution.

Or start with 15 free labs (5 each from CCNA, ENARSI and ENCOR), by email:

We’ll email you the download links and occasional lab tips. Unsubscribe with one click, any time. Your address is never shared.