08-21-2008 06:44 AM - edited 03-03-2019 11:13 PM
Hi All,
Can any one explain me about parameter permanent
ip route X.Y.Z.0 255.255.255.0 A.B.C.1 permanent
Thanks,
Madan
Solved! Go to Solution.
08-21-2008 09:07 AM
Madan
If you have a static route with AD equal 1 and with permanent specified, then it will always be in the routing table (even if the next hop is not reachable) and the second route with higher distance will never be put into the routing table or used.
This is one aspect that should be evaluated in making the decision whether to specify permanent. Someone made the decision to use permanent and it prevents using floating static routes to get around a failure.
HTH
Rick
08-21-2008 06:49 AM
Madan,
the permanent in a static route specifies that the route is not removed from the routing table, even if the next-hop interface shuts down or next-hop IP address is not reachable.
HTH,
Mark
08-21-2008 07:28 AM
can i have other route with highest preference with the "distance"
distance "0"
can i have distance 0 for a route with out directly connected
08-21-2008 07:51 AM
I don't believe you can configure a distance of zero with a static route. The only way to have a distance of 0 is to be directly connected. If you want to have floating static routes just let the preferred route use the default distance of 1 and the second route with a higher distance such as 10.
Mark
08-21-2008 08:01 AM
Already there is a route with the permanent and distance of 1
If i have the second route with high distance value.
Being the first route with the distance of 1 and having permanent parameter will the second route be taken if the next hop is not reachable of first route ?
Thanks for the reply
08-21-2008 09:07 AM
Madan
If you have a static route with AD equal 1 and with permanent specified, then it will always be in the routing table (even if the next hop is not reachable) and the second route with higher distance will never be put into the routing table or used.
This is one aspect that should be evaluated in making the decision whether to specify permanent. Someone made the decision to use permanent and it prevents using floating static routes to get around a failure.
HTH
Rick
08-21-2008 09:14 AM
I agree with rick. It would not work having floating static routes with the lower distance being permanent. This would do you no good if the preferred interface went down.
Mark
08-21-2008 09:20 AM
Madan
I am glad that my response did resolve your question. Thank you for using the rating system to indicate that your question was resolved (and thanks for the rating). It makes the forum more useful when people can read a question and can know that there was a response which did resolve the question.
The forum is an excellent place to learn about Cisco networking. I encourage you to continue your participation in the forum.
HTH
Rick
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