Default route and backup default route

networkingrouting

I am dealing with the following topology:

enter image description here

I have an "ISP ROUTER" connected via fastethernet to a MAIN router. "ISP ROUTER" is also connected via serial link to router CITY. CITY and MAIN are connected to each other via serial link.

The default route to the "ISP ROUTER" has to go through the fastEthernet connection on MAIN(out of fa0/1). However if the connection between "ISP ROUTER" and MAIN fails I should use the backup route from CITY router to "ISP ROUTER". I have to use static routes, no dynamic protocols are allowed on the connection to "ISP ROUTER". However between CITY and MAIN (and the rest) OSPF is configured.

So far I configured two default static routes for each router, the backup one has an administrative distance greater than the default one.

My problem is that when the connection fails I generate a loop, because MAIN redirects the traffic to city, but then CITY will still send it back to MAIN, because CITY does not know the connection is down.

How do I get CITY to know that the connection between "ISP ROUTER" and MAIN failed?

Best Answer

I think I solved my problem. Because both on CITY and MAIN OSPF is configured, i set up a default route to ISP on main and then issue the command default-information originate. This will propagate my default route. Also MAIN router will update any change that happens to the default route.
Then on CITY i configure a default route to ISP but with a administrative distance greater than 110(OSPF). It seems now that everything is working