2. Verify That OSPF Neighbors Are Established
Purpose
After configuring OSPF, you must verify that neighboring routers have formed adjacencies with each other.
Action
To verify OSPF neighbors, enter the following JUNOS CLI operational mode command:
user@host>show ospf neighborSample Output
user@R1>show ospf neighborAddress Interface State ID Pri Dead10.1.12.2 so-0/0/0.0 Full 10.0.0.2 128 3710.1.15.2 so-0/0/1.0 Full 10.0.0.5 128 3510.1.13.2 so-0/0/2.0 Full 10.0.0.3 128 38user@R3>show ospf neighborAddress Interface State ID Pri Dead10.1.34.2 so-0/0/0.0 Full 10.0.0.4 128 3810.1.23.1 so-0/0/1.0 Full 10.0.0.2 128 3510.1.13.1 so-0/0/2.0 Full 10.0.0.1 128 3710.1.36.2 so-0/0/3.0 Full 10.0.0.6 128 36user@R6>show ospf neighborAddress Interface State ID Pri Dead10.1.56.1 so-0/0/0.0 Full 10.0.0.5 128 3910.1.46.1 so-0/0/1.0 Full 10.0.0.4 128 3710.1.26.1 so-0/0/2.0 Full 10.0.0.2 128 3610.1.36.1 so-0/0/3.0 Full 10.0.0.3 128 37What It Means
The sample output from the ingress, transit, and egress routers shows that all routers in the network shown in Figure 1 have formed OSPF neighbor adjacencies.