From owner-freebsd-questions Mon Mar 18 11:12:45 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smnolde.com (c-24-98-60-141.atl.client2.attbi.com [24.98.60.141]) by hub.freebsd.org (Postfix) with ESMTP id 7B5B137B419 for ; Mon, 18 Mar 2002 11:11:57 -0800 (PST) Received: from bsd ([192.168.10.7] helo=bsd.smnolde.com) by smnolde.com with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 3.30 #1) id 16n2Y1-0004Bu-00; Mon, 18 Mar 2002 14:11:57 -0500 Received: from scott by bsd.smnolde.com with local (Exim 3.33 #1) id 16n2Y0-0003dK-00; Mon, 18 Mar 2002 14:11:56 -0500 Date: Mon, 18 Mar 2002 14:11:56 -0500 From: "Scott M. Nolde" To: Jesse Sheidlower Cc: freebsd-questions@freebsd.org Subject: Re: Problem with dhclient Message-ID: <20020318141156.A13260@smnolde.com> References: <20020318190736.GA12518@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020318190736.GA12518@panix.com>; from jester@panix.com on Mon, Mar 18, 2002 at 02:07:36PM -0500 X-Disclaimer: If you can read this you're looking for too much Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jesse Sheidlower(jester@panix.com)@2002.03.18 14:07:36 +0000: > > I'm running FreeBSD on a laptop computer, and in general I'm pretty > ignorant about networking issues. I'm having some difficulty using > the dhclient program and was hoping someone could give me a hand. > > After booting, if I'm plugged into a network with a DHCP server on it, > I can run dhclient and get assigned everything I need and be > connected. However, if I move the computer from one DHCP network to > another without shutting it down, I cannot seem to get new networking > information. If I don't touch anything, the previous settings stay in > place (whether I had previously been using dhclient, or had manually > configured for a static network); when I try to run dhclient I get the > message "ifconfig: icotl (SIOCAIFADDR): File exists" (and no other > ouput), and running "ifconfig" shows no inet configuration, though I > do get a "status: active" line under fxp0 (my Ethernet card). Bringing > fxp0 down and up has no effect. > > I've run through a number of experiments, and all I can say is that > rebooting the machine _always_ allows me to successfully configure > using dhclient. I've looked through the various man pages for > dhclient and its related scripts and conf files, and looked online > for advice, and haven't seen anything useful. > > Any ideas? It's something of a pain to have to reboot the computer > every time I move it. > > Thanks, > > Jesse Sheidlower > Did you try killing the dhclient process and then rerunning it again at the new location? You could also remove the inet address from the nic using ifconfig and then running dhclient. -- Scott Nolde GPG Key 0xD869AB48 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message