From owner-freebsd-current@FreeBSD.ORG Fri Oct 21 22:14:29 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52F7516A41F for ; Fri, 21 Oct 2005 22:14:29 +0000 (GMT) (envelope-from lists@servingpeace.com) Received: from smtp.servingpeace.com (servingpeace.com [69.55.225.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1506243D45 for ; Fri, 21 Oct 2005 22:14:28 +0000 (GMT) (envelope-from lists@servingpeace.com) Received: from [10.0.0.30] (adsl-68-125-161-145.dsl.pltn13.pacbell.net [68.125.161.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.servingpeace.com (Postfix) with ESMTP id 5CB5BBA224; Fri, 21 Oct 2005 15:14:28 -0700 (PDT) Message-ID: <43596841.70607@servingpeace.com> Date: Fri, 21 Oct 2005 15:14:25 -0700 From: Sam Nilsson User-Agent: Thunderbird 1.4.1 (Macintosh/20051006) MIME-Version: 1.0 To: Alex Ford References: <1129931538.31901.1.camel@workdesk> In-Reply-To: <1129931538.31901.1.camel@workdesk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: New DHCLIENT Problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 22:14:29 -0000 Alex Ford wrote: > Hello all - > > I am having problems using the DHCP client in the base system to obtain > an IP address from my ISP. > > I have a DSL modem (not a modem/router) that connects directly to the > computer, no router in between. > > I did a fresh install of FreeBSD 6.0-RC1, 'uname -a' shows: > > $ uname -a > FreeBSD box1.myfreebsdbox.org 6.0-RC1 FreeBSD 6.0-RC1 #0: Sun Oct 9 > 20:32:57 UTC 2005 root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC > i386 > $ > > During the post-installation configuration of the network interfaces > (using sysinstall) I tried configuring my network card (vr0) to be > automatically assigned an address via DHCP. It appeared to hang > (although it was probably just timing out) and dropped me to the screen > to manually configure the settings. I did so, giving it a static > 192.168.0.x address so that I could get internet connectivity and > reconfigure it properly later on. > > When I manually edited my /etc/rc.conf to include: > > defaultrouter="192.168.0.1" > hostname="workdesk.homenet" > ifconfig_vr0="DHCP" > > ...and my /etc/hosts to include: > > 127.0.0.1 workdesk workdesk.homenet > > ...and /etc/resolve.conf contained: > > domain homenet > nameserver 209.172.0.5 (a known good DNS server from an ISP) > > > This has always worked for me in the past, so I thought nothing of it. I > then rebooted and when the time came to initialize the interface I get > this message: > > Oct 21 15:10:28 workdesk dhclient[5516]: Bogus domain search list 15: > domain_not_set.invalid (domain_not_set.invalid) > Oct 21 15:10:28 workdesk dhclient[5516]: Invalid lease option - ignoring > offer > > It repeats that a few times then exits and continues on with the rest of > the boot process. Me too! I updated to 6.0-RC1 last night and I had the same problem. The dhclient.conf(5) man page appears to document the old ISC DHCP Client rather than the new OpenBSD implementation. My /etc/dhclient.conf file (which worked with the ISC version) looks like this: interface "xl0" { supersede domain-name-servers 10.0.0.1; supersede domain-name "mydomain.com"; } I am also getting these same messages: Oct 21 15:10:28 workdesk dhclient[5516]: Bogus domain search list 15: domain_not_set.invalid (domain_not_set.invalid) Oct 21 15:10:28 workdesk dhclient[5516]: Invalid lease option - ignoring offer My question is: How can we get dhclient to ignore/override the domain search list field so that it accepts the lease? - Sam Nilsson