I have set up my Raspberry Pi Zero with the USB Ethernet gadget as described by Adafruit.

This works wonderfully with static IP addresses. Now I want to put a little DHCP server in the Pi, so that I don't have to configure a static IP every time I connect to it.

Since I have no network connection, I've downloaded and manually installed using dpkg the isc-dhcp-server_4.3.1-6+deb8u2_armhf.deb and lsb-base_4.1+Debian13+nmu1_all.deb packages.

Next, I set up/etc/dhcp/dhcpd.conf:

ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;

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

and /etc/default/isc-dhcp-server:


And /etc/network/interfaces looks like this:

iface usb0 inet static

When I now try:

pi@raspberrypi:~ $ sudo service isc-dhcp-server restart
Job for isc-dhcp-server.service failed. See 'systemctl status isc-dhcp-server.service' and 'journalctl -xn' for details.
pi@raspberrypi:~ $ systemctl status isc-dhcp-server
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server)
   Active: failed (Result: exit-code) since Fri 2016-03-18 08:23:07 UTC; 16s ago
  Process: 454 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
pi@raspberrypi:~ $ journalctl -xn
No journal files were found.

I don't have a clue what's wrong, and the lack of error messages is not helping. It seems like the DHCP server does not even start.

Anyone able to help?

1 Answer 1


I tired to copy your config to see if I could get it working ... I noted


192.169 in the range is invalid for that subnet... should be:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.