07-12-2015 07:24 AM - edited 03-08-2019 12:55 AM
What is 5 in ip route 0.0.0.0 0.0.0.0 192.168.1.1 5?
Solved! Go to Solution.
07-12-2015 10:18 AM
Hello Ranji,
The 5 is the administrative distance for this static route. Administrative distance is considered as the believability of the routing information and is much used when you have multiple routing protocols and 2 different protocols report route a destination. The default AD for static route is 1. But you can modify as above to fit to your routing decision based on your needs. For example you may have default route to 2 different next hop and you want to prefer one over the above, you can use as above.
example
ip route 0.0.0.0 0.0.0.0 192.168.1.10
ip route 0.0.0.0 0.0.0.0 192.168.1.1 5 ----> this will not be preferred comapared to above, but will be used if the first entry is deleted or 192.168.1.10 becomes unreachable.
Hope this helps.
Thanks,
Madhu.
07-12-2015 10:18 AM
Hello Ranji,
The 5 is the administrative distance for this static route. Administrative distance is considered as the believability of the routing information and is much used when you have multiple routing protocols and 2 different protocols report route a destination. The default AD for static route is 1. But you can modify as above to fit to your routing decision based on your needs. For example you may have default route to 2 different next hop and you want to prefer one over the above, you can use as above.
example
ip route 0.0.0.0 0.0.0.0 192.168.1.10
ip route 0.0.0.0 0.0.0.0 192.168.1.1 5 ----> this will not be preferred comapared to above, but will be used if the first entry is deleted or 192.168.1.10 becomes unreachable.
Hope this helps.
Thanks,
Madhu.
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