From owner-freebsd-questions@FreeBSD.ORG Fri Apr 8 18:14:27 2005 Return-Path: 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 8DC2216A4CE for ; Fri, 8 Apr 2005 18:14:27 +0000 (GMT) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 485D343D2F for ; Fri, 8 Apr 2005 18:14:27 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 20767 invoked from network); 8 Apr 2005 18:14:26 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 8 Apr 2005 18:14:26 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 2715A52; Fri, 8 Apr 2005 14:14:26 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Mark Cullen References: <4252FFF1.507@dsl.pipex.com> <443bu2oh4c.fsf@be-well.ilk.org> <4256C50B.5040803@dsl.pipex.com> From: Lowell Gilbert Date: 08 Apr 2005 14:14:25 -0400 In-Reply-To: <4256C50B.5040803@dsl.pipex.com> Message-ID: <44ekdl3zlq.fsf@be-well.ilk.org> Lines: 50 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: dhclient oddness? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 18:14:27 -0000 Mark Cullen writes: > Lowell Gilbert wrote: > > Mark Cullen writes: > > > >>Right, I have this weird annoying issue with my modem which I have > >>finally got around to looking in to. Basically, it's all good and > >>works fine (obviously, otherwise I wouldn't be here!), except when I > >>reboot the internet computer the IP will change, the connection > >>DOESN'T drop, but the IP does change. I have just now narrowed this > >>down to some sort of problem with dhcp I think. > >> > >>The modem has a dhcpd server built in, which sends out the internet IP > >>address to the computers network card. It seems, whenever the dhcp > >>client, dhclient in this case, gets restarted it'll get the old ip > >>address (the first chunk of the quote below, before the ), > >>natd will update itself, but then the connection will just stall until > >>dhclient does the next DHCPREQUEST thing (47 seconds in this case?) > >>.. then the modem sends back a DHCPNAK and I get a different IP > >>address. Any ideas why this might be happening? > > Your "modem" is clearly the source of the problem, and it seems > > unlikely that anything on the FreeBSD side could help, aside from > > maybe forcing a lease free before starting dhclient on startup. > > I'd try looking at the configuration for that "modem" device, or > > possibly for a firmware upgrade for it. > > > > Could you explain what's going on to me? I mean, in simplified terms, > what exactly is causing the modem to get a new IP address when > dhclient restarts? I have contacted them about the issue and they > seem to think it's an O/S problem (well, it's *obviously* not an issue > with their modem now, is it? :-P). Okay, now I'm confused. I thought your FreeBSD machine was the one being issued a new address, not the modem. [And that since the address was being issued *by* the modem, it was making the decision about which address to choose. I guess that means I was assuming your "modem" was doing NAT. Does the modem have an address at all? > How would I go about forcing a 'lease free'? Delete dhclient.leases, > or some option somewhere that I missed? I'm pretty sure that dhclient(8) has an command-line option to do it. > As for configuration, there's no config for the DHCP server and > there's never been a firmware upgrade for it (this is the only issue I > have EVER had with it and I expect most users don't notice it). Since you've rebooted your computer anyway, why do you care? You've just lost all of your connections already.