From owner-freebsd-stable@FreeBSD.ORG Fri Jun 8 10:22:17 2007 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C45A216A469 for ; Fri, 8 Jun 2007 10:22:17 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3134E13C487 for ; Fri, 8 Jun 2007 10:22:16 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (jktuxo@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l58AM9Zx065702; Fri, 8 Jun 2007 12:22:14 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l58AM9FC065701; Fri, 8 Jun 2007 12:22:09 +0200 (CEST) (envelope-from olli) Date: Fri, 8 Jun 2007 12:22:09 +0200 (CEST) Message-Id: <200706081022.l58AM9FC065701@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, kim.attree@za.verizonbusiness.com In-Reply-To: <4667B97D.2090200@za.verizonbusiness.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 08 Jun 2007 12:22:15 +0200 (CEST) Cc: Subject: Re: Server setup as a Diskless Server on reboot sends DHCP Discover packets out X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, kim.attree@za.verizonbusiness.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jun 2007 10:22:17 -0000 Kim Attree wrote: > I've setup a machine as a diskless server, using PXEBoot with ihc-dhcpd > to offer dhcp and dhcp configuration information. I did a test reboot on > the server, and found to my dismay that the server NIC's are sending out > dhcp discover packets and trying to get an address. > > The NIC's IP info is captured correctly in /etc/rc.conf: > [...] > and the /etc/dhclient.conf file is empty. I thought maybe it was the > /conf directory used in the diskless Root structure creation, so I > renamed it out of the way, but that made no difference. > > I can't seem to find where the definition is that makes the NIC's ask > for DHCP info. > > Shortened output of /var/run/dmesg.boot pertaining to the DHCP Discover > packets: > > > Sending DHCP Discover packet from interface bge0 (00:0b:db:e6:a9:33) > Sending DHCP Discover packet from interface bge1 (00:0b:db:e6:a9:35) That's the kernel itself trying to perform BOOTP/DHCP. It does that before mounting the root file system (which might be mounted via NFS anyway, requiring an IP address to be obtained via BOOTP or DHCP). If you don't want that, then remove "options BOOTP" from your kernel config file and rebuild your kernel. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "To this day, many C programmers believe that 'strong typing' just means pounding extra hard on the keyboard." -- Peter van der Linden