Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932841AbbHHKgn (ORCPT ); Sat, 8 Aug 2015 06:36:43 -0400 Received: from mail-ob0-f179.google.com ([209.85.214.179]:32958 "EHLO mail-ob0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932495AbbHHKgm (ORCPT ); Sat, 8 Aug 2015 06:36:42 -0400 MIME-Version: 1.0 In-Reply-To: References: <55C1D207.3040905@iogearbox.net> <55C24BAE.7090702@gmail.com> <55C3B8C8.9030507@redhat.com> <55C4D803.3090108@redhat.com> <878u9njaon.fsf@stressinduktion.org> From: Zang MingJie Date: Sat, 8 Aug 2015 18:36:22 +0800 Message-ID: Subject: Re: [BUG] net/ipv4: inconsistent routing table To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 23 Days ago I mistakenly set the gateway address on my box, then add the default router, after I deleted the address my box can't access Internet and all things looks fine. It takes me several hours to figure out it is an kernel bug. >On Sat, Aug 8, 2015, 1:00 AM Hannes Frederic Sowa wrote: >If we could rewind time, we could make local nexthops -EINVAL. I don't think this is the proper solution. As almost all network OS considers the routing table recursive, and it's next hop can be any unicast ip address. When the next hop is unreachable the entry won't be installed. I suggest adding a new sysconf entry, when not set, behavior as the same as now, when set recalculate the fib when necessary BTW is there any way to check the fib table? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/