From owner-freebsd-stable@FreeBSD.ORG Sun Nov 27 12:43:47 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E50616A41F for ; Sun, 27 Nov 2005 12:43:47 +0000 (GMT) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 818B343D46 for ; Sun, 27 Nov 2005 12:43:45 +0000 (GMT) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EgLrK-0005jn-G3 for freebsd-stable@freebsd.org; Sun, 27 Nov 2005 13:42:22 +0100 Received: from p54a4030e.dip0.t-ipconnect.de ([84.164.3.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Nov 2005 13:42:22 +0100 Received: from jwolz1 by p54a4030e.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Nov 2005 13:42:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Jonas Wolz Date: Sun, 27 Nov 2005 13:41:11 +0100 Lines: 59 Message-ID: References: <20051127114252.GG1383@sun.unixguru.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p54a4030e.dip0.t-ipconnect.de User-Agent: KNode/0.9.2 Sender: news Subject: Re: dhclient problem with static leases X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 12:43:47 -0000 Richard Arends wrote: > Removing /var/db/dhclient.leases* fixed the > problem not getting a lease for me and several other people over here. I'm currently not at the location with the network without a DHCP server, but IIRC I tried that already and it didn't help. It also seems to me that my problem is a bit different: In my case dhclient gets its "lease", but doesn't configure the interface according to it if it is a static lease (and not a lease received from a DHCP server): If there is a DHCP server everything works: nobby:/etc# /etc/rc.d/netif start DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 4 DHCPOFFER from 192.168.2.1 DHCPREQUEST on sis0 to 255.255.255.255 port 67 DHCPACK from 192.168.2.1 bound to 192.168.2.3 -- renewal in 7200 seconds. lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 sis0: flags=8843 mtu 1500 options=8 inet6 fe80::2c0:9fff:fe28:2460%sis0 prefixlen 64 scopeid 0x1 inet 192.168.2.3 netmask 0xffffff00 broadcast 192.168.2.255 ether 00:c0:9f:28:24:60 media: Ethernet autoselect (100baseTX ) status: active nobby:/etc# If there isn't a DHCP server (simulated in my home network by shutting the DHCP server down): nobby:/etc# rm /var/db/dhclient.leases.sis0 nobby:/etc# /etc/rc.d/netif start DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 4 DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 6 DHCPDISCOVER on sis0 to 255.255.255.255 port 67 interval 1 No DHCPOFFERS received. Trying recorded lease 134.60.220.229 bound: renewal in 855056052 seconds. lo0: flags=8049 mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 sis0: flags=8843 mtu 1500 options=8 inet6 fe80::2c0:9fff:fe28:2460%sis0 prefixlen 64 scopeid 0x1 ether 00:c0:9f:28:24:60 media: Ethernet autoselect (100baseTX ) status: active nobby:/etc# As you can see, dhclient seems to "get" the static lease but doesn't correctly bind to it in the latter case. Jonas