From owner-freebsd-net@FreeBSD.ORG Mon Aug 26 18:49:03 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 05738B16; Mon, 26 Aug 2013 18:49:03 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from anubis.delphij.net (anubis.delphij.net [IPv6:2001:470:1:117::25]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C832B2787; Mon, 26 Aug 2013 18:49:02 +0000 (UTC) Received: from zeta.ixsystems.com (unknown [69.198.165.132]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by anubis.delphij.net (Postfix) with ESMTPSA id 52BED5D45; Mon, 26 Aug 2013 11:49:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=delphij.net; s=anubis; t=1377542941; bh=2GkMwHbiHN9Qzi0yTKk7eNMMAZZLrz3kwlr/i3uW3es=; h=Date:From:Reply-To:To:CC:Subject:References:In-Reply-To; b=QDPPL+pekpTF1iBefBUO7CcruBk5cq1EO7pBRWQ9+AjbRZkeTZEMb2c3a1vlMoBiT s6uo9iPSCkrpVR6IOnshxTGlKquF+fm7T0DlUC46WjcbO1Xi4je4UzZ1iX0s9o6uWD BKS1LyITolGEpyx70MMWveqkqBkCEuYADvtm4ja8= Message-ID: <521BA31C.5000807@delphij.net> Date: Mon, 26 Aug 2013 11:49:00 -0700 From: Xin Li Organization: The FreeBSD Project MIME-Version: 1.0 To: Julian Elischer Subject: Re: Why default route is not installed last? References: <521670FF.6080407@delphij.net> <20130826.203744.2304902117196747104.hrs@allbsd.org> <521B9A1B.7080908@freebsd.org> In-Reply-To: <521B9A1B.7080908@freebsd.org> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Kimmo Paasiala , Hiroki Sato , freebsd-rc@freebsd.org, d@delphij.net, FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: d@delphij.net List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Aug 2013 18:49:03 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 08/26/13 11:10, Julian Elischer wrote: > On 8/26/13 7:56 PM, Kimmo Paasiala wrote: >> On Mon, Aug 26, 2013 at 2:37 PM, Hiroki Sato >> wrote: >>> Xin Li wrote in >>> <521670FF.6080407@delphij.net>: >>> >>> de> -----BEGIN PGP SIGNED MESSAGE----- de> Hash: SHA512 de> de> >>> Hi, de> de> I've noticed that we do not install default route >>> last (after other de> static routes). I think we should >>> probably install it last, since the de> administrator may >>> legitimately configure a static route (e.g. this de> IPv6 >>> address goes to this interface) that is required by the >>> default de> route. >>> >>> Do you have an example? I could imagine some theoretically >>> but personally think that the default route which depends on a >>> static route is one which should be avoided. >>> >>> -- Hiroki >> Isn't that the case when the default gateway address is on a >> different subnet than the address assigned to the interface? Such >> set ups are admittedly odd but they should be possible on FreeBSD >> as well as on other OSes. > That has always been specifically not supported. default route > needs to be directly attached. in fact the routing tables only ever > deliver the 'next hop' Well, depends on whether the 'next hop' is an IP or an interface. For instance one can have a valid configuration that they have a static route of: 2607:5300:XXXX:XXXX:ff:ff:ff:ff -prefixlen 128 -interface em0 Then have 2607:5300:XXXX:XXXX:ff:ff:ff:ff as default router. This configuration is not possible with the current rc.d startup order. Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBCgAGBQJSG6MbAAoJEG80Jeu8UPuzAYMH/2K+wa2I2jexZourxzPgH25X OWxsxZgAwd/rEbsbm/0r0ApzGLNm7WQaXaBuNk+u9G9DWOLSTh1M/axRDAez4vOC EJiOfMQxMXlK7uBuA+1cUUrFbrPN4bNaRKY4DvSMWocd3x9T2CrxGaT9Y2SO6Q2g 1x2xSH63MXxebFaaT7nXqLLfpT4IK7yCOWPSXatBdZyZXAZh2ePa7wP4JX/Ti4ON IFE6IQwOs9q+w8EiyzLMtoqpZTt882Zw8beDmKMj7On+yXsw48+ryZF54kVu8+Sz dEwdvuKlXWB8FVWRz5gYbAOePq3XqCLeOuMZ5b6eIiHwhlY184nw2A94ahqVRGE= =27i9 -----END PGP SIGNATURE-----