From owner-freebsd-questions@freebsd.org Sun Sep 20 14:32:44 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 E7879A054A9 for ; Sun, 20 Sep 2015 14:32:44 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A94F11454 for ; Sun, 20 Sep 2015 14:32:44 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by igbkq10 with SMTP id kq10so63774413igb.0 for ; Sun, 20 Sep 2015 07:32:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=GWHaA/2yf9PD+wBualc4xGmTPDQaZ+Ij+o9hMXyWFeA=; b=th3BviFTJ3jrp7BbG+uc8x2lG5NAMIbq9SBQa8a7+HHD+uNULX4ex40S9zoW4+ld5Q 1zMvbBfYXzpOOpycw6xQ0hLV81moqO5jYx/ZIvC6P+A7FNTHL99hnp9WHx1sy+M5eGo4 j5uAw69pFpfEHmQEFc/nmOhrBY+Fky0QcgdNmIe3ycO2MgKF855OrdBFbFTYMfPlVrXr XV7I4+AIQNgHHB9QDzZNooEHDi1lzjp/n5NXJoM+SpNKYL3049P+yXtCsa7ZOzIv/Vd/ /IQa2bk1igY0TgH5fRn2RslOMrYYEVxf94wbbh/b5rCRurrAsGJmwPtoo3aPB+sKggj3 RlSw== X-Received: by 10.50.30.226 with SMTP id v2mr7069978igh.11.1442759563852; Sun, 20 Sep 2015 07:32:43 -0700 (PDT) Received: from [10.0.10.5] (cpe-76-190-244-6.neo.res.rr.com. [76.190.244.6]) by smtp.googlemail.com with ESMTPSA id kb10sm3589511igb.4.2015.09.20.07.32.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 20 Sep 2015 07:32:42 -0700 (PDT) Message-ID: <55FEC396.4090701@gmail.com> Date: Sun, 20 Sep 2015 10:32:54 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: freebsd-questions Subject: dhcpd server config help Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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 14:32:45 -0000 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"