From owner-freebsd-config Sat Sep 28 17: 8: 4 2002 Delivered-To: freebsd-config@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8821737B401 for ; Sat, 28 Sep 2002 17:08:03 -0700 (PDT) Received: from conure.mail.pas.earthlink.net (conure.mail.pas.earthlink.net [207.217.120.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14E1943E6A for ; Sat, 28 Sep 2002 17:08:03 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0370.cvx40-bradley.dialup.earthlink.net ([216.244.43.115] helo=mindspring.com) by conure.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17vRcr-0000zw-00; Sat, 28 Sep 2002 17:07:57 -0700 Message-ID: <3D964408.CC4AF6B1@mindspring.com> Date: Sat, 28 Sep 2002 17:06:32 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Zeibin Cc: freebsd-config@freebsd.org Subject: Re: DHCP problems when installing, dhclient "returns status of 2" References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-config@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Zeibin wrote: > I've been googling all over trying to find out what the status of dhclient > means and coming up with nothing. [ ... ] > During DHCP try I get this: > > Notify: Scanning for DHCP servers... > Executing command 'dhclient -1 fxp0' //fxp0 -> ethernet device address > Command 'dhclient -1 fxp0' returns status of 2 Probably, instead of "googling", you should just look at the source code, where "exit(2)" happens? /usr/src2/contrib/isc-dhcp/client/dhclient.c: [ ... ] /* No leases were available, or what was available didn't work, so tell the shell script that we failed to allocate an address, and try again later. */ if (onetry) { exit(2); note ("Unable to obtain a lease on first try - exiting.\n"); } ...looks like there's an inverted order here; it probably want to do the "note()" before the "exit()" (maybe that's just me, though... 8-)). This is already fixed, in -current, but you can move the exit(2) in your local source tree, if you want... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message