From owner-freebsd-net Sun Oct 14 20:37:42 2001 Delivered-To: freebsd-net@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id 39D7D37B406 for ; Sun, 14 Oct 2001 20:37:39 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id f9F3bX834547 for ; Sun, 14 Oct 2001 20:37:34 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sun, 14 Oct 2001 20:37:33 -0700 (PDT) Organization: Polstra & Co., Inc. From: John Polstra To: net@freebsd.org Subject: PXE boot vs. DHCP Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've been setting up a 4.4-RELEASE system for net booting and diskless operation with pxeboot, and I've run into a minor but annoying problem. It seems that if you boot with PXE you can't use dhclient. pxeboot configures the relevant network interface (let's call it fxp0), NFS-mounts the root filesystem, boots the kernel, etc., and begins to enter multi-user mode. The rc.network script then runs dhclient, which tries to configure fxp0 (again). It apparently starts out by unconfiguring fxp0's IP address, because NFS immediately hangs with a "host unreachable" error. At that point I have to walk over and press the reset button. If I disable DHCP on fxp0 in /etc/rc.conf, the system boots fine and leaves me with a working, configured interface. But lots of other useful stuff that DHCP would give me is missing: e.g., the host name, the DNS server, and so forth. It would be nice if I could netboot the machine and then grab all that other information with DHCP. I'm aware that /etc/rc.diskless* allow me to put host-specific configuration files into /config//etc. But I'd much prefer to keep all that information together in the dhcpd.conf file. Any ideas on how to solve this problem? John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message