From owner-freebsd-questions@freebsd.org Sun Sep 20 16:30:19 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 379CD9CF73D for ; Sun, 20 Sep 2015 16:30:19 +0000 (UTC) (envelope-from fbsd@xtaz.co.uk) Received: from mail.xtaz.uk (tao.xtaz.uk [IPv6:2001:8b0:202::10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 007FD102E for ; Sun, 20 Sep 2015 16:30:18 +0000 (UTC) (envelope-from fbsd@xtaz.co.uk) Received: by mail.xtaz.uk (Postfix, from userid 1001) id 74B3720AE9EE; Sun, 20 Sep 2015 17:30:14 +0100 (BST) Date: Sun, 20 Sep 2015 17:30:14 +0100 From: Matt Smith To: Ernie Luzar Cc: freebsd-questions Subject: Re: dhcpd server config help Message-ID: <20150920163014.GA99502@xtaz.uk> Mail-Followup-To: Matt Smith , Ernie Luzar , freebsd-questions References: <55FEC396.4090701@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55FEC396.4090701@gmail.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Sep 2015 16:30:19 -0000 On Sep 20 10:32, Ernie Luzar wrote: >Hello list; > >Yesterday had some guests over and when they tried to connect to my WiFi >with their cell phones I got a lot of these console messages. > >Sep 19 09:43:01 mydomain dhcpd: Reclaiming abandoned lease 10.0.10.2. >Sep 19 09:43:01 mydomain dhcpd: Abandoning IP address 10.0.10.2: declined. > >The cause of this is the host system dhcp server is trying to allocate a >ip address from its pool that’s already in use. Today I started to >investigate this matter. I must have mis-configured something. >Following are the config files concerned. Please review and point out >errors. Thank You. > > > >Content of dhcpd.conf file >option domain-name "mydomain.com"; >option domain-name-servers 8.8.8.8; # google > ># 600=10min, 7200=2 hours, 86400=1 day, 604800=1 week, 2592000=30 days >default-lease-time 86400; >max-lease-time 604800; >authoritative; >ddns-update-style none; >log-facility local1; > ># No service will be given on this subnet, but declaring it helps the ># DHCP server to understand the network topology. > >subnet 10.152.187.0 netmask 255.255.255.0 { } > ># This is mydomain.com subnet declaration. ># Max of 6 pc on LAN 10.0.10.1 - 10.0.10.6 ># 10.0.10.2 is the IP address of the LAN Nic card in FBSD ># 10.0.10.7 is the broadcast IP address >subnet 10.0.10.0 netmask 255.255.255.248 { >range 10.0.10.1 10.0.10.6; >option routers 10.0.10.2;} > > > >rc.conf file contains this >ifconfig_xl0="DHCP" >ifconfig_rl0="inet 10.0.10.2" > >gateway_enable="YES" > >dhcpd_enable="YES" >dhcpd_conf="/usr/local/etc/dhcpd.conf" >dhcpd_ifaces="rl0" >dhcpd_flags="-q" >dhcpd_withumask="022" > I think the problem is that your FreeBSD server is using 10.0.10.2 as its own IP address but you have told DHCPd to use 10.0.10.1 to 10.0.10.6 as the range to give out to clients that request an IP. The 10.2 address is part of this range. So you should change the range to be outside of anything that you already have in use so that they don't conflict. -- Matt