From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 13 17:50:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B2653F4B for ; Thu, 13 Mar 2014 17:50:01 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7488D968 for ; Thu, 13 Mar 2014 17:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2DHo1Ou098921 for ; Thu, 13 Mar 2014 17:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2DHo1Eq098919; Thu, 13 Mar 2014 17:50:01 GMT (envelope-from gnats) Resent-Date: Thu, 13 Mar 2014 17:50:01 GMT Resent-Message-Id: <201403131750.s2DHo1Eq098919@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alan Somers Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1539BB6E for ; Thu, 13 Mar 2014 17:42:21 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 01FDE8DF for ; Thu, 13 Mar 2014 17:42:21 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2DHgKiH034669 for ; Thu, 13 Mar 2014 17:42:20 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2DHgKtg034666; Thu, 13 Mar 2014 17:42:20 GMT (envelope-from nobody) Message-Id: <201403131742.s2DHgKtg034666@cgiserv.freebsd.org> Date: Thu, 13 Mar 2014 17:42:20 GMT From: Alan Somers To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/187550: Multiple interfaces on different FIBs but the same subnet don't all have a subnet route X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 17:50:01 -0000 >Number: 187550 >Category: kern >Synopsis: Multiple interfaces on different FIBs but the same subnet don't all have a subnet route >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 13 17:50:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Alan Somers >Release: 11.0-CURRENT r262867 >Organization: Spectra Logic >Environment: FreeBSD alans-fbsd-head 11.0-CURRENT FreeBSD 11.0-CURRENT #38 r262867M: Thu Mar 6 13:50:32 MST 2014 alans@ns1.eng.sldomain.com:/vmpool/obj/usr/home/alans/freebsd/head/sys/GENERIC amd64 >Description: When you UP an interface, the kernel automatically adds host and subnet routes. However, if two interfaces are on the same subnet but have different FIBs, the second one to be created won't get a subnet route in its FIB. >How-To-Repeat: # ifconfig tap0 create # ifconfig tap1 create # setfib 2 ifconfig tap0 192.0.2.2/24 fib 2 # setfib 3 ifconfig tap1 192.0.2.3/24 fib 3 # setfib 2 netstat -rn -f inet Routing tables (fib: 2) Internet: Destination Gateway Flags Netif Expire 192.0.2.0/24 link#3 U tap0 # setfib 3 netstat -rn -f inet Routing tables (fib: 3) Notice that FIB 3 does not contain a subnet route. >Fix: Working on a patch ... >Release-Note: >Audit-Trail: >Unformatted: