Static statement

Answered Question

Hello,

A very basic question. I have a static route statement for eg

ip route 10.10.10.0 255.255.255.0 200.200.200.5

Now, let's say you have started to learn this network 10.10.10.0 through OSPF or BGP through a different Interface and your original connection to 200.200.200.5 is down.

Now if a customer is connected to this router wants to access 10.10.10.0/24. The first thing this router will do is use the Static route statement because of Administrative distance of 1. But connection is down. Would the router by-pass the static statement and still tell it's customer connected on it, I know how else to access it through OSPF or BGP. Or would we need to remove the static statement out of the router for 10.10.10.0/24.

My question is without removing the static route statement, can the router access the above network through OSPF or BGP. Let's say i do not want to remove this static route statement

Thanks,

Hassan

I have this problem too.
0 votes
Correct Answer by sundar.palaniappan about 9 years 7 months ago

When the route via 200.200.200.5 is down the router would start using the next best route for 10.10.10.0/24. I am assuming 200.200.200.5 is a directly connected next-hop and when the interface through which that device is connected is down the router would purge all routes pointing to that next-hop IP address. The next best route, based on the longest prefix match and admin distance of protocol source, would be installed in the routing table in place of static route.

HTH

Sundar

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
sundar.palaniappan Wed, 01/31/2007 - 10:59

When the route via 200.200.200.5 is down the router would start using the next best route for 10.10.10.0/24. I am assuming 200.200.200.5 is a directly connected next-hop and when the interface through which that device is connected is down the router would purge all routes pointing to that next-hop IP address. The next best route, based on the longest prefix match and admin distance of protocol source, would be installed in the routing table in place of static route.

HTH

Sundar

Actions

This Discussion