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
220.127.116.11/32 is subnetted, 3 subnets
Next, here’s the routing table with just the OSPF routes.
R2(config)#do show ip route ospf