Step 1: Verify OSPF Neighbors
Action
To verify that routers are adjacent and able to exchange OSPF data, enter the following CLI operational mode command:
user@host>show ospf neighborSample Output
The following sample output shows the adjacencies that formed for all routers in Figure 12:
user@R1>show ospf neighborAddress Interface State ID Pri Dead10.1.12.2 so-0/0/0.0 Full 10.0.0.2 128 36user@R2>show ospf neighborAddress Interface State ID Pri Dead10.1.23.2 so-0/0/1.0 Full 10.0.0.3 128 3210.1.24.2 so-0/0/3.0 Full 10.0.0.4 128 3310.1.12.1 so-0/0/0.0 Full 10.0.0.1 128 33user@R3>show ospf neighborAddress Interface State ID Pri Dead10.1.34.2 so-0/0/0.0 Full 10.0.0.4 128 3610.1.23.1 so-0/0/1.0 Full 10.0.0.2 128 3810.1.36.2 so-0/0/3.0 Full 10.0.0.6 128 33user@R4>show ospf neighborAddress Interface State ID Pri Dead10.1.34.1 so-0/0/0.0 Full 10.0.0.3 128 3110.1.24.1 so-0/0/3.0 Full 10.0.0.2 128 3610.1.45.2 so-0/0/2.0 Full 10.0.0.5 128 39user@R5>show ospf neighborAddress Interface State ID Pri Dead10.1.45.1 so-0/0/2.0 Full 10.0.0.4 128 35user@R6>show ospf neighborAddress Interface State ID Pri Dead10.1.36.1 so-0/0/3.0 Full 10.0.0.3 128 31What It Means
The sample output shows that ABR routers
R2,R3,andR4have formed adjacencies with routers in all areas to which they are directly connected. Internal routers (R1,R5, andR6) have formed an adjacency with the other router inside their local area.Adjacencies are formed after OSPF hello packets are sent and received by neighbors. Adjacencies determine the type of LSAs sent and received, and what topological database updates are sent. When adjacencies are established, pairs of adjacent routers synchronize their topological databases.
Table 33 lists and describes the fields in the
show ospf neighborcommand.
Table 33: Output Fields for the show ospf neighbor Command