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

ip route 0.0.0.0 0.0.0.0 x.x.x.x

With 4 default routes configured as shown, wouldn't the first ip route statement of ip route 0.0.0.0 0.0.0.0 x.x.x.x forward all processing? Wouldn't that statement need to be last? Or is it the more specific match wins or top down match. Thank you.

ip route 0.0.0.0 0.0.0.0 192.208.1.6

ip route 192.250.2.28 255.255.255.255 192.208.1.6

ip route 192.250.130.211 255.255.255.255 192.208.1.6

ip route 192.250.230.211 255.255.255.255 192.208.2.28

1 Reply 1

Jon Marshall
Hall of Fame
Hall of Fame

Only the first route is a default route.

The most specific match always wins so it does not matter what order you enter them or what order  they are in the IP routing table.

Note with the default route you don't need the second and third entries.

Jon