From owner-freebsd-questions@FreeBSD.ORG Thu Dec 29 20:30:53 2005 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 806E516A41F for ; Thu, 29 Dec 2005 20:30:53 +0000 (GMT) (envelope-from LukeD@pobox.com) Received: from thorn.pobox.com (thorn.pobox.com [208.210.124.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id D72C743D67 for ; Thu, 29 Dec 2005 20:30:52 +0000 (GMT) (envelope-from LukeD@pobox.com) Received: from thorn (localhost [127.0.0.1]) by thorn.pobox.com (Postfix) with ESMTP id 02DA6105 for ; Thu, 29 Dec 2005 15:31:14 -0500 (EST) Received: from pool-71-112-204-187.sttlwa.dsl-w.verizon.net (pool-71-112-204-187.sttlwa.dsl-w.verizon.net [71.112.204.187]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by thorn.sasl.smtp.pobox.com (Postfix) with ESMTP id 8D9DA1F63 for ; Thu, 29 Dec 2005 15:31:13 -0500 (EST) Date: Thu, 29 Dec 2005 12:30:47 -0800 (PST) From: Luke Dean X-X-Sender: lukas@border.crystalsphere.multiverse To: freebsd-questions@freebsd.org Message-ID: <20051229115929.P1560@border.crystalsphere.multiverse> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Gripe about new dhclient X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Luke Dean List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 20:30:53 -0000 Ever since FreeBSD switched to OpenBSD's dhclient, I've had a serious problem. I'm running 6-STABLE as of earlier this week, but the problem has existed ever since we switched dhclients. Whenever I take the system offline long enough for the lease to expire, it will never get a new lease. On startup dhclient appears to broadcast requests for an IP address, but it never gets one. Once this situation occurs, the only way to get an IP address is to delete the leases file. I picked up this tip from someone on the list a few months ago, and it works. I even read that some people have gone so far as to create scripts that delete the leases file automatically somewhere in the boot process. I really don't want to do this. It's a hack and it defeats the purpose of having a leases file. This morning I spent an hour on the phone talking a nontechnical person through the process of deleting the leases file so we could get the server back online after it had been offline overnight, and I'm not going to do that again. I want to stick with the new dhclient program since it's the one that FreeBSD has adopted as its standard, but I can't live with this behavior. Does anyone have a good solution? my /etc/dhclient.conf is prepend domain-name-servers 127.0.0.1; my /etc/rc.conf contains ifconfig_vr0="DHCP" and does not override any standard behavior for dhclient. This machine connects directly to a DSL modem, so there's no firewalls or NAT to interfere with getting an IP address.