From owner-freebsd-net@FreeBSD.ORG Fri Mar 16 14:11:30 2007 Return-Path: X-Original-To: freebsd-net@FreeBSD.org Delivered-To: freebsd-net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0BB1E16A409; Fri, 16 Mar 2007 14:11:30 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by mx1.freebsd.org (Postfix) with ESMTP id CD9D513C4B0; Fri, 16 Mar 2007 14:11:29 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out1.internal (unknown [10.202.2.149]) by out1.messagingengine.com (Postfix) with ESMTP id 5EF671F9750; Fri, 16 Mar 2007 10:11:28 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by out1.internal (MEProxy); Fri, 16 Mar 2007 10:11:28 -0400 X-Sasl-enc: +eu8BQOxAf62eTLYUuz3KIFLXSQdeK9k4z0p80ygecGJ 1174054289 Received: from [192.168.123.18] (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTP id 72D5417819; Fri, 16 Mar 2007 10:11:28 -0400 (EDT) Message-ID: <45FAA58E.6000600@FreeBSD.org> Date: Fri, 16 Mar 2007 14:11:26 +0000 From: "Bruce M. Simpson" User-Agent: Thunderbird 1.5.0.9 (X11/20070125) MIME-Version: 1.0 To: Anton Yuzhaninov References: <20070314115916.GB2713@cell.sick.ru> <45F81C0D.2000608@FreeBSD.org> <20070314161023.GF2713@cell.sick.ru> <45F974BE.5050404@freebsd.org> <446293168.20070316145503@citrin.ru> In-Reply-To: <446293168.20070316145503@citrin.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@FreeBSD.org, Andre Oppermann Subject: Re: kern/106722: [net] [patch] ifconfig may not connect an interface to known network 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: Fri, 16 Mar 2007 14:11:30 -0000 Anton Yuzhaninov wrote: > Thursday, March 15, 2007, 7:30:54 PM, Andre Oppermann wrote: > > AO> IMO when configuring a interface with an IP address and network it should > AO> kick out previous host and/or network routes matching it. Unless those > AO> are from locally configured interfaces, then it should reject the new > AO> attempt. > > New route should replace existing one only if it have administrative > distance (in cisco terms) smaller than AD for existing route. > > Preference of network from locally configured interface is only > particular case of this general principle. > We are obstructed by the current radix trie code only matching on destination and prefix. Adding 'administrative distance' to the FTE match is something which should seriously be considered. It is a stepping stone to equal cost multipath and would help in this situation. It does however considerably change the semantics of the existing routing socket and its consumers would need to be updated to reflect that fact. As I hinted at in my original response: it seems acceptable that ifconfig'ing an interface into the system should be able to clobber the overlapping routes in the meantime, but only until the architecture is fixed. Regards, BMS