cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
407
Views
0
Helpful
5
Replies

Routing question

persepolis77
Level 1
Level 1

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

Jon Marshall
Hall of Fame
Hall of Fame

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

View solution in original post

5 Replies 5

Jon Marshall
Hall of Fame
Hall of Fame

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

I got it Jon. Thanks alot for your reponse.

Jon Marshall
Hall of Fame
Hall of Fame

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

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?

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

Review Cisco Networking products for a $25 gift card