Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Routing question

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,

Mehdi

1 ACCEPTED SOLUTION

Accepted Solutions
Hall of Fame Super Blue

Re: Routing question

Mehdi

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).

Jon

5 REPLIES
Hall of Fame Super Blue

Re: Routing question

Mehdi

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).

Jon

New Member

Re: Routing question

I got it Jon. Thanks alot for your reponse.

Hall of Fame Super Blue

Re: Routing question

Mehdi

Apologies but i should have be more specific. What i said about OSPF is still relevant but be aware that if the interface with 10.1.1.2 is down this will not remove the static entry from your route table so you will just black hole traffic.

That is one of the many reasons why it's a good idea to run a dynamic routing protocol.

Jon

New Member

Re: Routing question

Jon,

How my routing table will be if I add the following line (2 static routes with different metric)

ip route 10.130.142.0 255.255.255.0 10.1.1.2

ip route 10.130.142.0 255.255.255.0 10.2.2.2 10

if 10.1.1.2 goes down, the 2nd route will appear in routing table, right?

Hall of Fame Super Blue

Re: Routing question

Mehdi

No it still won't work because the first route

10.130.142.0 255.255.255.0 10.1.1.2

is not removed from the routing table.

What you can do is have the dynamic routing protocol insert the 10.130.142.0 route. You can then add a static route with an AD distance greater than the routing protocol eg.

OSPF route

10.130.142.0 255.255.255.0 10.10.1.2

then add a static route

ip route 10.130.142.0 255.255.255.0 10.2.2.2 200

The OSPF route will be used but if 10.10.1.2 goes down then the static route would then be used.

Jon

135
Views
0
Helpful
5
Replies