DHCP Not Working on LAN
-
pfSense 2.0.2 and configuration:
LAN: 192.168.2.0
Netmask: 255.255.255.0
IP Range: 192.168.2.1 - 192.168.2.254dhcpd.conf:
option domain-name "mydomainname"; option ldap-server code 95 = text; option domain-search-list code 119 = text; default-lease-time 7200; max-lease-time 86400; log-facility local7; ddns-update-style none; one-lease-per-client true; deny duplicates; ping-check true; authoritative; subnet 192.168.2.0 netmask 255.255.255.0 { pool { range 192.168.2.1 192.168.2.250; } option routers 192.168.2.1; option domain-name-servers 192.168.2.1; } host s_lan_0 { hardware ethernet 18:28:61:52:00:00; fixed-address 192.168.2.251; } host s_lan_1 { hardware ethernet 18:28:61:52:00:00; fixed-address 192.168.2.252; } host s_lan_2 { hardware ethernet 18:28:61:57:00:00; fixed-address 192.168.2.253; }
/var/log/dhcpd.log:
Mar 4 10:23:39 firewall dhcpd: Internet Systems Consortium DHCP Server 4.2.4-P1 Mar 4 10:23:39 firewall dhcpd: Copyright 2004-2012 Internet Systems Consortium. Mar 4 10:23:39 firewall dhcpd: All rights reserved. Mar 4 10:23:39 firewall dhcpd: For info, please visit https://www.isc.org/software/dhcp/ Mar 4 10:23:39 firewall dhcpd: Wrote 0 deleted host decls to leases file. Mar 4 10:23:39 firewall dhcpd: Wrote 0 new dynamic host decls to leases file. Mar 4 10:23:39 firewall dhcpd: Wrote 0 leases to leases file. Mar 4 10:23:39 firewall dhcpd: Listening on BPF/re0/54:e6:fc:81:dd:18/192.168.2.0/24 Mar 4 10:23:39 firewall dhcpd: Sending on BPF/re0/54:e6:fc:81:dd:18/192.168.2.0/24 Mar 4 10:23:39 firewall dhcpd: Sending on Socket/fallback/fallback-net Mar 4 10:23:40 firewall dhcpd: There's already a DHCP server running. Mar 4 10:23:40 firewall dhcpd: Mar 4 10:23:40 firewall dhcpd: If you did not get this software from ftp.isc.org, please Mar 4 10:23:40 firewall dhcpd: get the latest from ftp.isc.org and install that before Mar 4 10:23:40 firewall dhcpd: requesting help. Mar 4 10:23:40 firewall dhcpd: Mar 4 10:23:40 firewall dhcpd: If you did get this software from ftp.isc.org and have not Mar 4 10:23:40 firewall dhcpd: yet read the README, please read it before requesting help. Mar 4 10:23:40 firewall dhcpd: If you intend to request help from the dhcp-server@isc.org Mar 4 10:23:40 firewall dhcpd: mailing list, please read the section on the README about Mar 4 10:23:40 firewall dhcpd: submitting bug reports and requests for help. Mar 4 10:23:40 firewall dhcpd: Mar 4 10:23:40 firewall dhcpd: Please do not under any circumstances send requests for Mar 4 10:23:40 firewall dhcpd: help directly to the authors of this software - please Mar 4 10:23:40 firewall dhcpd: send them to the appropriate mailing list as described in Mar 4 10:23:40 firewall dhcpd: the README file. Mar 4 10:23:40 firewall dhcpd: Mar 4 10:23:40 firewall dhcpd: exiting.
dhcpd not work.. :-\
-
Sounds like a stale PID got left behind somehow. Diag>Command, run:
rm /var/run/dhcpd.pid
Then browse to Status>Services and click Start. Suspect that'll fix it and it's unlikely to recur.
-
rm dhcpd.pid
not work :'(
-
There is not any error log in syslogs > System or DHCP tab..
-
@AydinY:
rm dhcpd.pid
not work :'(
Please elaborate: You got an error report on attempting to remove the file? (Did you actually type the full path given?)
The rm command didn't report anything and dhcpd didn't restart? -
cd /var/run/; rm dhcpd.pid
dhcpd.pid is empty and deleted successful. Status > Services > DHCPD Start..
[2.0.2-RELEASE][root@mydomainname]/var/run(14): ps aux | grep dhcpd root 26572 0.0 0.1 4956 2552 ?? Is 9:58AM 0:00.10 /usr/sbin/syslogd -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf root 13791 0.0 0.1 3524 1264 0 S+ 3:02PM 0:00.00 grep dhcpd
???
-
im fixed error:
cat /var/dhcpd/var/run/dhcpd.pid
hardwarm /var/dhcpd/var/run/dhcpd.pid
and Services > Dhcpd > Start..
why "hardwa" in the pid file? any have a idea?
-
i think this is a bug..
-
@AydinY:
i think this is a bug..
I agree.
-
There have very rarely been issues with stale dhcpd PIDs going back years, maybe happened a handful of times, and good luck replicating it. We don't touch the dhcpd.pid contents at all, whatever ends up in that file is put there by ISC dhcpd.