Re: Which one is chosen on multiple default gateway set?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Wei Huang <daviseago@xxxxxxxxx>
Date: Thu, 23 Aug 2012 14:31:26 +0800

> If multiple default gateways are set, which one will be chosen? And if
> the chosen one is down, will others take over?

Yes.

> It works sometime, but not most of the time. (example below) The
> behavior is inconsistent.

The problem is that when a nexthop becomes unresponsive we need
to wait for an event to timeout the routing cache entry.

In 3.6.0-rc1 and later, this inconsistent behavior will happen less
often, because the routing cache has been removed so we will do the
full default route resolution on every route lookup.  The only problem
at that point is socket cached routes, those will still need to wait
for a timeout before the next default gateway will be tried.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux