Date: Sun, 20 Sep 2015 17:30:14 +0100 From: Matt Smith <fbsd@xtaz.co.uk> To: Ernie Luzar <luzar722@gmail.com> Cc: freebsd-questions <freebsd-questions@freebsd.org> Subject: Re: dhcpd server config help Message-ID: <20150920163014.GA99502@xtaz.uk> In-Reply-To: <55FEC396.4090701@gmail.com> References: <55FEC396.4090701@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150920163014.GA99502>