From owner-freebsd-questions@FreeBSD.ORG Thu Feb 23 10:36:39 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0DE8106566C; Thu, 23 Feb 2012 10:36:39 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 4F8308FC12; Thu, 23 Feb 2012 10:36:39 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q1NAab6h019606; Thu, 23 Feb 2012 14:36:37 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q1NAabsc019605; Thu, 23 Feb 2012 14:36:37 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 23 Feb 2012 14:36:37 +0400 From: Gleb Smirnoff To: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= Message-ID: <20120223103637.GS92625@FreeBSD.org> References: <376001325.20120220220651@yandex.ru> <323151470.20120221225558@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <323151470.20120221225558@yandex.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-net@FreeBSD.org, freebsd-questions@FreeBSD.org, Ivan Ivanyuk Subject: Re: deleting an alias from interface cause the static route to be deleted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Feb 2012 10:36:39 -0000 On Tue, Feb 21, 2012 at 10:55:58PM +0200, ๋ฯฮุหฯื ๅืวลฮษส wrote: ๋> >> vlan74: flags=8843 metric 0 mtu 1500 ๋> >> š š š šoptions=3 ๋> >> š š š šether f4:6d:04:7c:7b:d3 ๋> >> š š š šinet6 fe80::f66d:4ff:fe7c:7bd3%vlan74 prefixlen 64 scopeid 0xd ๋> >> š š š šinet 10.1.26.1 netmask 0xfffffe00 broadcast 10.1.27.255 ๋> >> š š š šinet 10.1.26.3 netmask 0xfffffe00 broadcast 10.1.27.255 ๋> >> š š š šnd6 options=29 ๋> >> š š š šmedia: Ethernet autoselect (1000baseT ) ๋> >> š š š šstatus: active ๋> >> š š š švlan: 74 parent interface: re0 ๋> >> ๋> >> ifconfig vlan74 delete 10.1.26.1 ๋> >> ๋> >> will delete these static routes from route table: ๋> >> ๋> >> 10.3.0.1 š š š š š 10.1.26.2 š š š š šUGHS š š š š8 š š š367 vlan74 ๋> >> 10.1.6.0/23 š š š š10.1.26.2 š š š š šUGS š š š 275 š 166969 vlan74 ๋> >> ๋> >> Does this a bug? It is. The problem is that our routing table support only a single route for a prefix (yep, there is RADIX_MPATH, but it serves other needs). Thus, every time we add or delete a prefix we need to do a lot of sanity checking: running through interfaces list, seek for other origin for this prefix, etc. All suggested patches do this, and from my viewpoint these are crutches. I'd prefer to have something like this: http://lists.freebsd.org/pipermail/freebsd-net/2012-February/031468.html -- Totus tuus, Glebius.