08-03-2010 01:27 AM - edited 03-06-2019 12:17 PM
I have noted that, when I add a static route, if I put the exit interface, the static route is always added to the route table.
Instead, if I put the next hop, it seems that the router checks if it can reach that next hop.
If it is so, it adds the route, otherwise it does not add the route.
Is it true? Thanks.
08-03-2010 01:42 AM
Hello,
Indeed certain conditions must be met before a static route is written into the route table (also when specifying a static route with an exit interface) :
- IP routing must be enabled
- As you noticed, the next-hop address, if used, must be reachable.
- The exit interface must have an IP address configured on it, and the exit interface must be up.
Regards.
Karim
08-03-2010 01:55 AM
While I remembered the other two conditions, I had some doubts about the reachability of the next hop.
May be I had already read this third condition, but I did not remember the book.
So I have prefered to ask here for less loss of time.
Thanks for your good answer.
08-03-2010 06:42 PM
If you specify a next-hop with a static route, the route is installed as long as we have a valid route for that next-hop in the routing table (i.e. connected interface, IGP route, etc). Does the next-hop have to respond to ARP requests, ICMP, etc. no, but it does need to be in the RIB.
08-03-2010 06:14 PM
Hola.
Debes tener presente lo siguiente:
Espero que halla sido de ayuda la informacion.
Si deseas mayor detalle, avizame.
Attn.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide