You want to look at the routers link-state database to make sure that all the OSPF routers know about each other.
Use the show ospf database command to view the contents of the link-state database:
aviva@RouterG> show ospf database OSPF link state database, area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 192.168.17.1 192.168.17.1 0x800000d0 986 0x2 0xebd2 60 Router 192.168.18.1 192.168.18.1 0x80000083 986 0x2 0xbd4a 60 Router *192.168.19.1 192.168.19.1 0x8000009f 656 0x2 0x46a5 60 Network *10.0.0.1 192.168.19.1 0x80000010 56 0x2 0x9b2e 32 Network *10.0.1.2 192.168.19.1 0x80000030 356 0x2 0x5353 32 Network 10.0.2.1 192.168.18.1 0x80000005 1454 0x2 0x993b 32
OSPF routers exchange LSAs that describe that routers view of the network topology, and the routers store the LSAs in a link-state database. The SPF algorithm then runs on the link-state database to create the OSPF routing table, which contains the shortest path to each destination.
Use the show ospf database command to look at the OSPF LSAs in the link-state database. Table 12-1 explains the different types OSPF LSAs.
In the command output in this recipe, the database has three Router (Type 1) and three Network (Type 2) LSAs. The lines with an asterisk in the ID are database entries that originated from the local router. The router also knows about its two neighbors, 192.168.17.1 and 192.168.18.1, and about the subnetwork that connects these two neighbors (10.0.2.1).
If you check on the other two routers in the area, you see that they have identical databases:
aviva@RouterJ> show ospf database OSPF link state database, area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router *192.168.17.1 192.168.17.1 0x8000010a 170 0x2 0x760e 60 Router 192.168.18.1 192.168.18.1 0x800000ae 377 0x2 0x6775 60 Router 192.168.19.1 192.168.19.1 0x80000007 372 0x2 0xdf32 48 Network 10.0.0.1 192.168.19.1 0x80000002 372 0x2 0xb720 32 Network 10.0.1.2 192.168.19.1 0x80000002 378 0x2 0xaf25 32 Network 10.0.2.1 192.168.18.1 0x8000002a 481 0x2 0x4f60 32 aviva@RouterH> show ospf database OSPF link state database, area 0.0.0.0 Type ID Adv Rtr Seq Age Opt Cksum Len Router 192.168.17.1 192.168.17.1 0x8000010a 45 0x2 0x760e 60 Router *192.168.18.1 192.168.18.1 0x800000ae 250 0x2 0x6775 60 Router 192.168.19.1 192.168.19.1 0x80000007 247 0x2 0xdf32 48 Network 10.0.0.1 192.168.19.1 0x80000002 247 0x2 0xb720 32 Network 10.0.1.2 192.168.19.1 0x80000002 251 0x2 0xaf25 32 Network *10.0.2.1 192.168.18.1 0x8000002a 354 0x2 0x4f60 32
The only thing different is which LSAs are marked as originated from the router.
Use the following version of the show ospf database command to get a quick summary of the entries LSA database:
aviva@RouterG> show ospf database summary Area 0.0.0.0: 3 Router LSAs 3 Network LSAs Externals: Interface fe-0/0/1.0: Interface fe-1/0/0.0:
Router Configuration and File Management
Basic Router Security and Access Control
IPSec
SNMP
Logging
NTP
Router Interfaces
IP Routing
Routing Policy and Firewall Filters
RIP
IS-IS
OSPF
BGP
MPLS
VPNs
IP Multicast