How does a router choose between mutiple default routes?
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?