From owner-freebsd-net@FreeBSD.ORG Sat Feb 4 20:02:57 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD87D106564A; Sat, 4 Feb 2012 20:02:57 +0000 (UTC) (envelope-from melifaro@FreeBSD.org) Received: from mail.ipfw.ru (unknown [IPv6:2a01:4f8:120:6141::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8DADC8FC1B; Sat, 4 Feb 2012 20:02:57 +0000 (UTC) Received: from v6.mpls.in ([2a02:978:2::5] helo=ws.su29.net) by mail.ipfw.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76 (FreeBSD)) (envelope-from ) id 1Rtlp6-000KwG-5X; Sun, 05 Feb 2012 00:03:00 +0400 Message-ID: <4F2DC674.4070401@FreeBSD.org> Date: Sat, 04 Feb 2012 23:59:48 +0000 From: "Alexander V. Chernikov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:9.0) Gecko/20120121 Thunderbird/9.0 MIME-Version: 1.0 To: Hiroki Sato References: <20120205.033532.381149506660559829.hrs@allbsd.org> In-Reply-To: <20120205.033532.381149506660559829.hrs@allbsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: sem@FreeBSD.org, mark@mivok.net, net@FreeBSD.org Subject: Re: [CFT] multiple FIB support in route(8) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Feb 2012 20:02:57 -0000 On 04.02.2012 18:35, Hiroki Sato wrote: > Hello, > > Can anyone review/test the attached patch to add "-fib number" option > to route(8)? This should simplify static route configuration across > multiple FIBs in rc.conf. Just adding an -fib option like the > following will do the trick without changing rc.d/routing: > > static_routes="foo bar" > route_foo="10.1.1.1/24 192.168.2.1 -fib 2" > route_bar="10.1.1.1/24 192.168.2.1 -fib 3" > > The -fib option is supported in all subcommands but monitor. Why should we leave `monitor` as is? And, even if we really need to do so why "route monitor" silently accepts and ignores -fib X key? > > -- Hiroki