cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
404
Views
0
Helpful
1
Replies

IP Route

grapevine
Level 1
Level 1

What is 5 in ip route 0.0.0.0 0.0.0.0 192.168.1.1 5?

1 Accepted Solution

Accepted Solutions

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.

 

View solution in original post

1 Reply 1

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.