From owner-freebsd-questions@FreeBSD.ORG Tue Dec 9 10:33:36 2003 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 DA93516A4CE for ; Tue, 9 Dec 2003 10:33:36 -0800 (PST) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B8EC43D2F for ; Tue, 9 Dec 2003 10:33:34 -0800 (PST) (envelope-from paulbeard@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (8.12.6/MantshX 2.0) with ESMTP id hB9Ibucq016149 for ; Tue, 9 Dec 2003 10:37:56 -0800 (PST) Received: from [192.168.2.8] (12-228-114-247.client.attbi.com [12.228.114.247]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 3.0) with ESMTP id hB9IXXhc023353 for ; Tue, 9 Dec 2003 10:33:34 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v606) Content-Transfer-Encoding: 7bit Message-Id: <2FF582F3-2A76-11D8-8C05-000A95BBCCF8@mac.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: FreeBSD-questions From: paul beard Date: Tue, 9 Dec 2003 10:33:30 -0800 X-Mailer: Apple Mail (2.606) Subject: how to make dhclient give up its lease and get a new one with routes, etc. ? 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: Tue, 09 Dec 2003 18:33:37 -0000 I am on a cable modem and am running an http server, natd, the Usual Suspects, and have been doing this for a couple of years. I use dhcp to get the address for my externally-facing NIC and through reboots, power outages, even changes in network ownership (@ home -> ATT -> comcast) all has been solid. Until today. I decided over the past couple of weeks to actually get a domain instead of using no-ip.org (paulbeard.org: how imaginative) and I started using Zoneedit to manage it since I wanted DNS to be somewhere other than on my network. As luck would have, I got assigned a new IP address last night (for the first time since I used @home more than 3 years ago) and for some reason the dhcp client wouldn't get the new address. I ran dhclient and that just set my address to all 0's. I then killed it and restarted and got an address but no routes. I ended up rebooting and that solved it (I then had to fix both no-ip's config file since the old one was unparseable by version 2 clients and go to zoneedit and update my address). So how to make dhclient do all this without the Windows workaround of rebooting? Advice on automagically notifying zoneedit is welcome, as well but not as pressing: I think they work with dyndns and of course I chose no-ip.org. -- Paul Beard paulbeard [at] mac.com