From owner-freebsd-config Sat Sep 28 13:44:12 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 6385437B401 for ; Sat, 28 Sep 2002 13:44:09 -0700 (PDT) Received: from pilsener.srv.ualberta.ca (pilsener.srv.ualberta.ca [129.128.5.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id D1E2843E75 for ; Sat, 28 Sep 2002 13:44:08 -0700 (PDT) (envelope-from eic@gateway.ualberta.ca) Received: from [10.0.0.30] (h24-86-164-47.ed.shawcable.net [24.86.164.47]) by pilsener.srv.ualberta.ca (8.12.6/8.12.6) with ESMTP id g8SKi7sK013798 for ; Sat, 28 Sep 2002 14:44:08 -0600 (MDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 Date: Sat, 28 Sep 2002 14:44:11 -0600 Subject: DHCP problems when installing, dhclient "returns status of 2" From: David Zeibin To: Message-ID: Mime-version: 1.0 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 Hello all. I looked at the lists and this looked to be the most relevant list to post to. If I'm barking up the wrong tree, please direct me to a list that may be of more help. Thanks! Otherwise.... I've been googling all over trying to find out what the status of dhclient means and coming up with nothing. My setup is a little bit weird: I have a FreeBSD machine currently serving happily. It is also configured to act as a basic firewall so my laptop can access the Internet. Usually, I just use static settings on my laptop to communicate between the server and the laptop. I just recently got the DHCP server going, and all is well. Laptop (Mac OS9.2.2, Open Transport 2.7.9) works A-OK, discover, offer, request, acknowledge are all great... Currently, I am trying to install (using FTP) FreeBSD on a *different* machine, one that should communicate just like my laptop, but I get nothing. Sysinstall DHCP server-scan times out and I get the regular network configuration screen. If I enter my data in as best I can (what is the host/domain supposed to be? I'm using urbanpush.com since that's what the frontline FreeBSD box is serving, but the new machine doesn't have an hostname or anything. I expect that the frontline doesn't know how to address the backline? Can I use an IP, namely what I want the backline machine to be? I tried that and still no go) I have this: SETTINGS: Host: hilary.urbanpush.com Domain: urbanpush.com IPv4 Gateway: 10.0.0.1 // IP of frontline machine ie. Router Name Server: 129.128.5.233 // the one I always use IPv4 Address: 10.0.0.2 // IP I want this machine to be on local network Netmask: 255.0.0.0 // Class A type network No extra ifconfig options... F2 DEBUG LOG OUTPUT (set to all log): 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 To note, the frontline box (dhcpd) does not display any DHCP-related messages After I try to configure it manually (with above settings) I get this: Wrote out /etc/resolv.conf Wrote out /etc/hosts Init routine called for network device fxp0 ifconfig fxp0 inet 10.0.0.2 netmask 255.0.0.0 Executing command 'ifconfig fxp0 inet 10.0.0.2 netmask 255.0.0.0' Command 'ifconfig fxp0 inet 10.0.0.2 netmask 255.0.0.0' returns status of 0 // I assume that's good Adding default route to 10.0.0.1 Executing command 'route -n add default 10.0.0.1' add net default 10.0.0.1 Command 'route -n add default 10.0.0.1' returns status of 0 // I assume that's also good Network initialized successfully. // Yay! hostname = 'ftp.freebsd.org' // The FTP server I chose dir = '/' port # = '21' Notify: Looking up host ftp.freebsd.org. Starting DNS. Looking up hostname, ftp.freebsd.org, using getaddrinfo(AI_NUMERICHOST). Looking up hostname, ftp.freebsd.org, using getaddrinfo(). And then it just sits there. After I hit the OK, the ethernet's LEDs flash a couple times and then nothing. It doesn't timeout, it doesn't stop. It seems like my Name Server is not responding, but I've never had a problem with that one before. I think I will soon take the box to work and jack into a real network, where I know I have a host name and everything, but I still like to know if anyone has any ideas, for future reference. Terribly sorry about the length. Thought I should give you as much info as I could. Thanks in advance for any advice/info you might be able to offer. Toodles, Skip To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message From owner-freebsd-config Sat Sep 28 14:46:39 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 B283237B401 for ; Sat, 28 Sep 2002 14:46:38 -0700 (PDT) Received: from pilsener.srv.ualberta.ca (pilsener.srv.ualberta.ca [129.128.5.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22E1743E6E for ; Sat, 28 Sep 2002 14:46:38 -0700 (PDT) (envelope-from eic@gateway.ualberta.ca) Received: from [10.0.0.255] (h24-86-164-47.ed.shawcable.net [24.86.164.47]) by pilsener.srv.ualberta.ca (8.12.6/8.12.6) with ESMTP id g8SLkasK027677 for ; Sat, 28 Sep 2002 15:46:37 -0600 (MDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Sat, 28 Sep 2002 15:46:40 -0600 Subject: Re: IGNORE: DHCP problems when installing, dhclient "returns status of 2" From: David Zeibin To: Message-ID: In-Reply-To: Mime-version: 1.0 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 Looks like I posted erroneously. Please excuse my ignorance. My apologies... Thanks anyway. on 28/09/2002 2:44 PM, David Zeibin at eic@gateway.ualberta.ca wrote: > Hello all. > > I looked at the lists and this looked to be the most relevant list to post > to. If I'm barking up the wrong tree, please direct me to a list that may be > of more help. Thanks! > > > Otherwise.... > > > I've been googling all over trying to find out what the status of dhclient > means and coming up with nothing. > ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-config" in the body of the message 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