From owner-freebsd-questions@FreeBSD.ORG Sat Sep 24 08:48:54 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 6C09916A41F for ; Sat, 24 Sep 2005 08:48:54 +0000 (GMT) (envelope-from mark.r.cullen@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09EDB43D49 for ; Sat, 24 Sep 2005 08:48:53 +0000 (GMT) (envelope-from mark.r.cullen@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so413631nzd for ; Sat, 24 Sep 2005 01:48:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=sgZrhzCYwItw5DAq83rYGQKNSnxJxV6KWNslL1Ekyfc4r4AtXLJAvAFSD2bFC8Xo5bd07amOUPZT4L1wNaK1oRGt5BQyYBa18FUcxEXnGhqcTxT1Z1/Xn7+uY/2KDG1ag81QRgLFagAGN6/PygbYpXVSrGM1OHsS2n//PRG7shg= Received: by 10.54.79.17 with SMTP id c17mr4279353wrb; Sat, 24 Sep 2005 01:48:53 -0700 (PDT) Received: from ?10.0.0.251? ( [88.96.18.86]) by mx.gmail.com with ESMTP id d6sm761466wra.2005.09.24.01.48.52; Sat, 24 Sep 2005 01:48:53 -0700 (PDT) Message-ID: <433512F3.7060404@gmail.com> Date: Sat, 24 Sep 2005 09:48:51 +0100 From: Mark Cullen User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: dhclient + DHCPNAK = release ip? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 08:48:54 -0000 Good morning :-) I've recently switched ISP and got a static IP. However, my ADSL modem is a bit dense it seems. With a dynamic IP things worked reasonably well. With my new static IP, however, whenever the connection drops - I don't have the worlds highest quality phone line or something - either dhclient or the modem gets a bit confused because the IP is the same. Here's what happens when I catch it disconnecting and do a `ifconfig fxp1 delete` just after the DHCPNAK: Sep 23 10:36:19 bone dhclient: DHCPREQUEST on fxp1 to 255.255.255.255 port 67 Sep 23 10:36:19 bone dhclient: DHCPNAK from 192.168.0.1 Sep 23 10:36:19 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 5 Sep 23 10:36:19 bone dhclient: DHCPOFFER from 192.168.0.1 Sep 23 10:36:19 bone dhclient: DHCPREQUEST on fxp1 to 255.255.255.255 port 67 Sep 23 10:36:19 bone dhclient: DHCPACK from 192.168.0.1 Sep 23 10:36:19 bone dhclient: New Network Number: xxxxxxxxxxxxx Sep 23 10:36:19 bone dhclient: New Broadcast Address: 255.255.255.255 Sep 23 10:36:19 bone dhclient: Reason: BOUND Sep 23 10:36:19 bone dhclient: Old IP Address (fxp1): Sep 23 10:36:19 bone dhclient: New IP Address (fxp1): xxxxxxxxxxxxxx Sep 23 10:36:19 bone dhclient: New Subnet Mask (fxp1): 255.255.255.0 Sep 23 10:36:19 bone dhclient: New Broadcast Address (fxp1): 255.255.255.255 Sep 23 10:36:19 bone dhclient: New Routers: xxxxxxxxxxxxx Sep 23 10:36:19 bone dhclient: bound to xxxxxxxxxxxxx -- renewal in 57 seconds. With this, all is good and my connection works again. Here's what is actually happening if I don't either 1) restart dhclient or 2) ifconfig fxp1 delete after the DHCPNAK Sep 23 12:08:08 bone dhclient: DHCPREQUEST on fxp1 to 192.168.0.1 port 67 Sep 23 12:08:08 bone dhclient: DHCPNAK from 192.168.0.1 Sep 23 12:08:08 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 7 Sep 23 12:08:15 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 10 Sep 23 12:08:25 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 4 Sep 23 12:08:29 bone dhclient: No DHCPOFFERS received. Sep 23 12:08:29 bone dhclient: No working leases in persistent database - sleeping. Sep 23 12:08:29 bone dhclient: DEBUG: FAIL Sep 23 12:08:30 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 5 Sep 23 12:08:35 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 6 Sep 23 12:08:41 bone dhclient: DHCPDISCOVER on fxp1 to 255.255.255.255 port 67 interval 10 Sep 23 12:08:51 bone dhclient: No DHCPOFFERS received. Sep 23 12:08:51 bone dhclient: No working leases in persistent database - sleeping. and it just does this forever and as a result I lost my connection. So, my question, is there a way to make dhclient release the IP address on the interface whenever it gets this DHCPNAK message? Apologies for my probably rather bad attempt at explaining my problem. Thanks in advance, Mark