Show IP Route OSPF
Allows you to see just the OSPF routes installed in the routing table.
Router#show ip route ospf
This example demonstrates the show ip route ospf command. First, here’s the full routing table for R2.
R2(config-if)#do sh ip route
Gateway of last resort is not set
126.96.36.199/32 is subnetted, 3 subnets
Next, here’s the routing table with just the OSPF routes.
R2(config)#do show ip route ospf