From owner-freebsd-stable@FreeBSD.ORG Fri Dec 2 01:44:00 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FD5916A41F for ; Fri, 2 Dec 2005 01:44:00 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id E239943D5A for ; Fri, 2 Dec 2005 01:43:58 +0000 (GMT) (envelope-from joao.barros@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so324525wxc for ; Thu, 01 Dec 2005 17:43:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UMAr5XtNxAOkl+O1lMM0ciRro/AfliNobqzUK4+psBcVKfAqgyxvsp0VErcOWwNaQmESZTEvdZv34jp2XSQYzzhFvQBF/UrWEvv1SaMmYzcJ1jdQ2B2Gxfg+oiKdqzDmxXGNdT8sZ0cFHGa5AO7EvoFGpa0jEACebPT7n7+Z0ZI= Received: by 10.70.80.9 with SMTP id d9mr2743093wxb; Thu, 01 Dec 2005 17:43:58 -0800 (PST) Received: by 10.70.9.10 with HTTP; Thu, 1 Dec 2005 17:43:57 -0800 (PST) Message-ID: <70e8236f0512011743m67f2dbeck4ad6ee1854f3fc90@mail.gmail.com> Date: Fri, 2 Dec 2005 01:43:57 +0000 From: Joao Barros To: "Lutt, Paul" In-Reply-To: <20051201075632.P1063@evtpc1390.na.flukecorp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051127114252.GG1383@sun.unixguru.nl> <20051201075632.P1063@evtpc1390.na.flukecorp.com> Cc: freebsd-stable@freebsd.org Subject: Re: dhclient problem with static leases X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Dec 2005 01:44:00 -0000 On 12/1/05, Lutt, Paul wrote: > > Richard Arends wrote: > >> Removing /var/db/dhclient.leases* fixed the > >> problem not getting a lease for me and several other people over here. > > I had similar issues with my DLINK access point at home. DHCP was > very flakey until I setup a /etc/rc.shutdown.local file to remove > /var/db/dhclient.leases* at shutdown. > After upgrading my "router" machine from 5.4 to 6.0 and when my ISP had DHCP problems, I came home and saw that either the machine had IP but could not connect anywhere or that dhclient had left and it's famous last words were: "Link down, exiting" I started getting flashbacks of dhcpcd on Linux.... I had no link faults on the nic or switch so I started poking on dhclient info and then I saw 2 leases on dhclient.leases After some testing I noticed that if dhclient couldn't get an IP directly from the DHCP it went for the backup lease which was invalid. Now...this on 5.4 was fine, but then again this is another dhclient. Bug? Undocumented feature? I couldn't find a way to disable the "see if we have a lease in file" behavior... -- Joao Barros