From owner-freebsd-questions@FreeBSD.ORG Thu May 4 14:41:19 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0525916A422 for ; Thu, 4 May 2006 14:41:19 +0000 (UTC) (envelope-from fbsd@a1poweruser.com) Received: from mta11.adelphia.net (mta11.adelphia.net [68.168.78.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05F0F43D77 for ; Thu, 4 May 2006 14:41:10 +0000 (GMT) (envelope-from fbsd@a1poweruser.com) Received: from barbish ([70.39.69.56]) by mta11.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060504144110.DHNV9009.mta11.adelphia.net@barbish>; Thu, 4 May 2006 10:41:10 -0400 From: "fbsd" To: "Daniel Bye" , Date: Thu, 4 May 2006 10:41:05 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 In-Reply-To: <20060504131039.GD99544@catflap.slightlystrange.org> Importance: Normal Cc: Subject: RE: dhclient-exit-hooks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2006 14:41:19 -0000 Today I installed the isc-dhcp-client package. It installs a completlly different dhclient-script. One that looks like it matchhes what your begin/exit scripts are designed to work with. # base version /etc/dhclient-exit-hooks /etc/dhclient-exit-hooks.sav /etc/dhclient.conf /sbin/dhclient /sbin/dhclient-script # port version /etc/rc.d/dhclient /usr/local/etc/dhclient.conf /usr/local/etc/dhclient.conf.sample /usr/local/sbin/dhclient /usr/local/sbin/dhclient-script At the end of the pkg install it says this. **** To setup dhclient, you may need to edit /etc/rc.conf to replace the base system dhclient, such as : dhcp_program="/usr/local/sbin/dhclient" dhcp_flags="-q" When I boot with this in my rc.conf dhcp_program="/usr/local/sbin/dhclient" dhcp_flags="-q" # no banner background_dhclient="YES" # Start dhcp client in the background. ifconfig_dc0="DHCP" I get these error messages over and over. Have to reboot in single user mode to edit rc.conf to fix. Can't bind to dhcp address: Address already in use Please make sure there is no other dhcp server running and that there's no entry for dhcp or bootp in /etc/inetd.conf. Also make sure you are not running HP JetAdmin software, which includes a bootp server. When I boot with the same rc.conf content execpt with #ifconfig_dc0="DHCP" commented out, I do not get ip address from dhcp server. Next run I edited the pkg version of /usr/local/etc/dhclient.conf and added 'interface dc0' to it and rebooted and got same results. I think this is another indicator of a bug with the base dhclient and that this bug makes the pkg version unusable. How do I turn on this xtrace you talk about to capture the rc.conf boot process? I can not find man xtrace. There is a ktrace.