This questions seems to be so basic, but it is making me confused.
Lets say that I have the following routing in my router :
router ospf 10
network 10.130.0.0 0.0.255.255 area 1
ip route 10.130.142.0 255.255.255.0 10.1.1.2
In the routing table I will have the route which is advertised by static route.
Now imagine that 10.1.1.2 is down because of a reason, in my routing table will I still have a route to network 10.130.142.0 via OSPF???
Thanks for your help,
The statement "network 10.130.0.0 0.0.255.255 area 1" under your ospf config is not a route advertisement. It simly tells the OSPF protocol which interfaces to run OSPF on.
So if you have the static route in your route table and 10.1.1.2 goes down whether or not you have a route to the 10.130.142.0 network depends on the whether you have received a route for that from any OSPF neighbors (or more specifically an LSA for that network).