Hoximor

DHCP server can't start for AP

Sun Dec 01, 2013 8:01 am

Hi
I just bought a Raspberry Pi (Model B) with this WiFi dongle : http://tellu.re/IntmE6
I wanted to create a WiFi access point with them, so I followed this tutorial : http://tellu.re/1afLfe9
This was the first time a tutorial for this was good (I had read other but there was always an error somewhere).
I finished doing everything written in it, and I could see the Pi_AP on my Windows Phone and Galaxy Tab, but couldn't connect.
So I rebooted and then, I saw the DHCP service could not start, and I would like some help over here because I don't know where the problem is, I followed exactly the tutorial :roll:
Here is my error message :

Code: Select all

[ ok ] Starting ISC DHCP server: dhcpd[....] Starting OpenBSD Secure Shell server: sshd
[FAIL] check syslog for diagnostics. ... failed!
 failed!
[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!
And then it asks me to log in.
I searched on Google but nothing helped me.
If you have any idea...
Thanks

Note : when I try to connect from my Galaxy Tab, the status stays at "Getting IP adress" (or something like that, it is in french)

MattF
Posts: 55
Joined: Tue Feb 12, 2013 10:01 am

Re: DHCP server can't start for AP

Tue Dec 03, 2013 12:05 am

Make sure that the leases database directory specified in the configuration file actually exists.

saj27
Posts: 3
Joined: Fri Jan 16, 2015 3:10 pm

Re: DHCP server can't start for AP

Wed Mar 11, 2015 12:27 pm

Hi, same problem on boot [FAIL] startpar : service(s) returned failure: isc-dhcp-server...failure.
is that a driver problem or smth with isc-dhcp?

also if i put command :cat /var/log/syslog

about dhcp i got:
Mar 11 11:52:09 raspberrypi dhcpd: /etc/dhcp/dhcpd.conf line 111: unknown option dhcp.broadcast-adress
Mar 11 11:52:09 raspberrypi dhcpd: option broadcast-adress 192.
Mar 11 11:52:09 raspberrypi dhcpd: ^
Mar 11 11:52:09 raspberrypi dhcpd: Configuration file errors encountered -- exiting
Mar 11 11:52:09 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 11 11:52:09 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 11 11:52:09 raspberrypi dhcpd: All rights reserved.
Mar 11 11:52:09 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 11 11:52:10 raspberrypi dhcpd: /etc/dhcp/dhcpd.conf line 111: unknown option dhcp.broadcast-adress
Mar 11 11:52:10 raspberrypi dhcpd: option broadcast-adress 192.
Mar 11 11:52:10 raspberrypi dhcpd: ^
Mar 11 11:52:10 raspberrypi dhcpd: Configuration file errors encountered -- exiting

i serch file by sudo nano /etc/dhcp/dhcpd.conf
and linne 111 is in
subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.50;
line 111>>option broadcast-adress 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}

Aydan
Posts: 704
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: DHCP server can't start for AP

Wed Mar 11, 2015 2:28 pm

saj27 wrote:Hi, same problem on boot [FAIL] startpar : service(s) returned failure: isc-dhcp-server...failure.
is that a driver problem or smth with isc-dhcp?

also if i put command :cat /var/log/syslog

about dhcp i got:
Mar 11 11:52:09 raspberrypi dhcpd: /etc/dhcp/dhcpd.conf line 111: unknown option dhcp.broadcast-adress
Mar 11 11:52:09 raspberrypi dhcpd: option broadcast-adress 192.
Mar 11 11:52:09 raspberrypi dhcpd: ^
Mar 11 11:52:09 raspberrypi dhcpd: Configuration file errors encountered -- exiting
Mar 11 11:52:09 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 11 11:52:09 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 11 11:52:09 raspberrypi dhcpd: All rights reserved.
Mar 11 11:52:09 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 11 11:52:10 raspberrypi dhcpd: /etc/dhcp/dhcpd.conf line 111: unknown option dhcp.broadcast-adress
Mar 11 11:52:10 raspberrypi dhcpd: option broadcast-adress 192.
Mar 11 11:52:10 raspberrypi dhcpd: ^
Mar 11 11:52:10 raspberrypi dhcpd: Configuration file errors encountered -- exiting

i serch file by sudo nano /etc/dhcp/dhcpd.conf
and linne 111 is in
subnet 192.168.42.0 netmask 255.255.255.0 {
range 192.168.42.10 192.168.42.50;
line 111>>option broadcast-adress 192.168.42.255;
option routers 192.168.42.1;
default-lease-time 600;
max-lease-time 7200;
option domain-name "local";
option domain-name-servers 8.8.8.8, 8.8.4.4;
}
It's spelling it out what is wrong:
unknown option, I suspect you have a typo.

Regards
Aydan

Aydan
Posts: 704
Joined: Fri Apr 13, 2012 11:48 am
Location: Germany, near Lake Constance

Re: DHCP server can't start for AP

Wed Mar 11, 2015 2:30 pm

Hoximor wrote:Hi
I just bought a Raspberry Pi (Model B) with this WiFi dongle : http://tellu.re/IntmE6
I wanted to create a WiFi access point with them, so I followed this tutorial : http://tellu.re/1afLfe9
This was the first time a tutorial for this was good (I had read other but there was always an error somewhere).
I finished doing everything written in it, and I could see the Pi_AP on my Windows Phone and Galaxy Tab, but couldn't connect.
So I rebooted and then, I saw the DHCP service could not start, and I would like some help over here because I don't know where the problem is, I followed exactly the tutorial :roll:
Here is my error message :

Code: Select all

[ ok ] Starting ISC DHCP server: dhcpd[....] Starting OpenBSD Secure Shell server: sshd
[FAIL] check syslog for diagnostics. ... failed!
 failed!
[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!
And then it asks me to log in.
I searched on Google but nothing helped me.
If you have any idea...
Thanks

Note : when I try to connect from my Galaxy Tab, the status stays at "Getting IP adress" (or something like that, it is in french)
Did you look into syslog for dhcpd errors?

Regards
Aydan

saj27
Posts: 3
Joined: Fri Jan 16, 2015 3:10 pm

Re: DHCP server can't start for AP

Thu Mar 12, 2015 11:30 am

What a noobish mistake! Sorry for taking your time, now all is fine and work well, thanks a lot!

Added 13/3/2015
After connecting typo and go through tutorial RPi worked as AP, all was ok. But today i go that on boot:

[FAIL] Starting ISC DHCP server : dhcpd[....] check syslog for diagnostics ... failed!
failed!
My IP is 10.10.1.4
[FAIL] startpar: service(s) returned failure: isc-dhcp-server ... failed!

That's odd, I'm pretty sure i rebooted RPi yesterday and there was no problems.
I hope it's not something silly like last time.
Thanks a lot!

saj27
Posts: 3
Joined: Fri Jan 16, 2015 3:10 pm

Re: DHCP server can't start for AP

Fri Mar 13, 2015 10:11 am

from cat /var/log/syslog i got:
Mar 12 12:06:45 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 12 12:06:45 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 12 12:06:45 raspberrypi dhcpd: All rights reserved.
Mar 12 12:06:45 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 12 12:06:45 raspberrypi dhcpd: Internet Systems Consortium DHCP Server 4.2.2
Mar 12 12:06:45 raspberrypi dhcpd: Copyright 2004-2011 Internet Systems Consortium.
Mar 12 12:06:45 raspberrypi dhcpd: All rights reserved.
Mar 12 12:06:45 raspberrypi dhcpd: For info, please visit https://www.isc.org/software/dhcp/
Mar 12 12:06:45 raspberrypi dhcpd: Wrote 3 leases to leases file.
Mar 12 12:06:45 raspberrypi dhcpd:
Mar 12 12:06:45 raspberrypi dhcpd: No subnet declaration for wlan0 (no IPv4 addresses).
Mar 12 12:06:45 raspberrypi dhcpd: ** Ignoring requests on wlan0. If this is not what
Mar 12 12:06:45 raspberrypi dhcpd: you want, please write a subnet declaration
Mar 12 12:06:45 raspberrypi dhcpd: in your dhcpd.conf file for the network segment
Mar 12 12:06:45 raspberrypi dhcpd: to which interface wlan0 is attached. **
Mar 12 12:06:45 raspberrypi dhcpd:
Mar 12 12:06:45 raspberrypi dhcpd:
Mar 12 12:06:45 raspberrypi dhcpd: Not configured to listen on any interfaces!

Return to “Troubleshooting”