I am following this [1] tutorial, and trying to install

sudo apt-get install hostapd isc-dhcp-server

according to this [2] step. I am getting the following error:

[FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ...     failed!
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.

What should I do?

[1] http://learn.adafruit.com/onion-pi/overview

[2] http://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software


tail /var/log/syslog

Wrote 0 leases to leases file.

No subnet declaration for wlan0 (
** Ignoging requests on wlan0. Please write a subnet declaration in your dhcpd.conf file for network segment to which interface wlan0 is attached. **

Not configured to listen on any interfaces!

In the dhcpd.conf file these are the only lines that are not commented:

ddns-update-style none;
option domain-name 'example.org';
option domain-name-servers ns1.example.org, ns2.example.org;

default-lease-time 600;
max-lease-time 7200;

log-facility local7;

subnet netmask {
option broadcast-address;
option routers;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers,;

closed as unclear what you're asking by goldilocks Oct 2 '15 at 23:10

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Your dhcp configuration is likely buggy. run sudo invoke-rc.d isc-dhcp-server restart and post the output of tail /var/log/syslog. Also post dhcpd.conf. – M Noit Aug 31 '13 at 14:51
  • Post is updated. – Ihmahr Aug 31 '13 at 15:18
  • It looks like your wifi is 192.168.0 but your dhcpd config is 192.168.42 - is that really the case? If so, you might want to fix the two to agree.... – Gagravarr Sep 1 '13 at 0:12
  • 1
    The address that is assigned to my Pi is What ip addresses should I put in the different config files? – Ihmahr Sep 1 '13 at 15:01