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

How does a router choose between mutiple default routes?

Venison Mogambi
Level 1
Level 1

Hi,

If I configure two or more default routes, for example:

ip route 0.0.0.0 0.0.0.0 10.10.10.1

ip route 0.0.0.0 0.0.0.0 192.168.10.1

ip route 0.0.0.0 0.0.0.0 192.168.20.1 50

Which will the router prefer? I was told that the router will choose them in order, as they are show in the config. So in the case above, it would choose 10.10.10.1 first, then if that next-hop isnt' reachable it will try 192.168.10.1, and if that's not reachable, it will choose 192.168.20.1. Note that in my example I weighted the AD for the last route, since I want to ensure that route is chosen as a last resort.

Can someone confirm that the router will consider these default routes in the order I described?

Thanks.

1 Reply 1

Hi Vension,

Why dont you try this

1) ip route 0.0.0.0 0.0.0.0 10.10.10.1

2) ip route 0.0.0.0 0.0.0.0 192.168.10.1 20

3) ip route 0.0.0.0 0.0.0.0 192.168.20.1 50

If 1 fails then it will chose 2.

If 1 and 2 fails it will chose 3

Regards
Thanveer
"Everybody is genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is a stupid."

Review Cisco Networking for a $25 gift card