From owner-freebsd-net@FreeBSD.ORG Sat Dec 11 18:47:21 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFE5016A4CE for ; Sat, 11 Dec 2004 18:47:21 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55C2E43D1D for ; Sat, 11 Dec 2004 18:47:21 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [192.168.1.250] (pool-68-160-207-47.ny325.east.verizon.net [68.160.207.47]) by pi.codefab.com (8.12.11/8.12.11) with ESMTP id iBBIlIZu038943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Dec 2004 13:47:20 -0500 (EST) Message-ID: <41BB40B7.5000907@mac.com> Date: Sat, 11 Dec 2004 13:47:19 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrea Campi References: <20041211090235.GD11190@webcom.it> <41BAC0BD.7000706@mac.com> <20041211102825.GB12803@webcom.it> In-Reply-To: <20041211102825.GB12803@webcom.it> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: net@freebsd.org Subject: Re: Working on howl port X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 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, 11 Dec 2004 18:47:21 -0000 Andrea Campi wrote: > On Sat, Dec 11, 2004 at 04:41:17AM -0500, Chuck Swiger wrote: >>...but there is more there to read. It's fine to let an interface have a >>169.254/16 IP and a "real" IP (assigned by DHCP, the user, etc) for a >>little while during transitions, but not forever. [ ... ] > Still, what's worse, having two correct but potentially confusing > addresses, and everything still working; or having DHCP and autoipd > fighting over which one determines the one and only IP address? I'll > have to check how Mac OS X handles this, but unless we merge zeroconf > in dhclient (ugh!) or vice versa, I don't see an alternative which is > as convenient for the user. Do you? If your first implementation happens to leave the interface with a 169.254 IP address, it's doing something it shouldn't, however that is likely to be mostly harmless until you or someone has a chance to improve the implementation. autoipd and DHCP/dhclient should never get into a fight, nor should autoipd conflict with a manually-assigned network config: autoipd should only try to configure a link-local address during the interval when nothing else has done so, or if autoipd has reason to believe that the existing configuration is invalid (ie, after the carrier drops). Any time dhclient gets a lease and assigns an IP address to an interface, autoipd needs to back out of the way. -- -Chuck