I first want to thank the Cisco learning network. I noticed when I was building a home lab that my OSPF routes had been removed completely when I entered a static route on the router.
Originally I was thinking that doing an “ip route” command that I would see both the static route AND the OSPF route. Granted I knew that the OSPF route would take “back seat” to the static route but I thought I’d see both.
Before static route was entered:
After the static route was entered:
Question #1 – What would happen if we delete the static route?
Answer – After deleting the static route the router would INSTANTLY switch over to the OSPF learned route. The router doesn’t need to go out and get the info again since that route is already in the local OSPF database!
The command to see the OSPF info is:
show ip ospf database
What’s neat is if we turn on “debug ip OSPF rib” we can see the router instantly flicking that switch when the static route is removed.
I believe if you click on the last image it will show you the full resolution version.