lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120822.233808.1184757734447108096.davem@davemloft.net>
Date:	Wed, 22 Aug 2012 23:38:08 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	daviseago@...il.com
Cc:	netdev@...r.kernel.org, netfilter@...r.kernel.org
Subject: Re: Which one is chosen on multiple default gateway set?

From: Wei Huang <daviseago@...il.com>
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 netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ