(E-Mail Removed) (Moe Trin) wrote:
>On 12 Feb 2007, in the Usenet newsgroup comp.os.linux.networking, in article
><(E-Mail Removed) s.com>, Binary wrote:
>
>>If I have two default gw in kernel routing table, in any given time,
>
>you will run into problems.
Not really... ;-)
>>which rule will be used first?
>
>The one with the lower metric. Assuming the metrics are the same, then
>the _last_ defined route will be used, because there kernel assumes you
>changed your mind and thought of a better solution. The other "default"
>routes will be ignored.
>
>>The same as displayed in route command? Or has a random order, each
>>one will have the oppotunity to be used? Or each time both will be tried?
Use the "route" command to see what the kernel route table looks
like. The route used for any given destination is the *first*
one that matches as it scans down the routing table. Hence, if
you have two "default" routes, one of the them will *never* be
reached, because everything that makes it all the way to the
first "default" will in fact be routed by that entry.
--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska)
(E-Mail Removed)