Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up a pxe boot server on a Debian 6.0.3 Squeeze machine that gives images of PLoP Linux. I was following a tutorial from http://www.plop.at/en/ploplinux/networkboot-linux.html#pxel12 .
When I try to start dhcpd (from package dhcp3-server), I get the following:

No subnet declaration for eth0 (
**Ignoring requests on eth0. If this is not what
  you want, please write a subnet delclaration
  in your dhcpd.conf file for the network segment 
  to which interface eth0 is attached. **

Not configured to listen on any interfaces!

My /etc/dhcpd.conf is identical to that in the tutorial save for a few changes:

host testpc {
        hardware ethernet 00:0C:6E:A6:1A:E6;

is instead

host tablet {
        hardware ethernet 00:02:3F:FB:E2:6F;

My /etc/network/interfaces is:

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static

And this is my /etc/default/isc-dhcp-server:

# Defaults for dhcp initscript
# sourced by /etc/init.d/dhcp
# installed at /etc/default/isc-dhcp-server by the maintainer scripts

# This is a POSIX shell fragment

# On what interfaces should the DHCP server (dhcpd) serve DHCP requests?
#       Separate multiple interfaces with spaces, e.g. "eth0 eth1".

which I copied to /etc/default/dhcp3-server as well, unsure which it would check.

I also tried setting the ip in /etc/network/interfaces as and, but it produced the same result.

share|improve this question
up vote 3 down vote accepted

Since dhcpd has to hand out IP addresses to clients, it needs to know the range of addresses that it is responsible for. The subnet declaration gives dhcpd that information and more. Assuming you're using 10.0.0/24, the following should get you started and past the error message, but you really need to get into the documentation to go further. Add this to your dhcpd.conf:

subnet netmask { 
   default-lease-time 3600; 
   max-lease-time 3600; 
   option subnet-mask; 
   option broadcast-address; 
   option routers; 
   option domain-name-servers; 
   option domain-name "example.com"; 

The IP addresses I plugged in above are guesses. You've got to set these properly for your setup.

share|improve this answer
After adding this subnet declaration, I still get the same error. Is there any other place I have to define dhcpd to use eth0? – Suchipi Mar 4 '12 at 17:59
Nevermind- I just used dnsmasq instead and it worked. Thanks for your help anyway, though! – Suchipi Mar 4 '12 at 18:53
hi guys sorry for interrupt, I need a help on dhcp server. Could you check this one unix.stackexchange.com/questions/140387/… – rajcoumar Jul 3 '14 at 7:53

I ended up just purging dhcp3-server and using dnsmasq instead. I went through the configuration file for it and was able to use the examples it had commented to configure my server how I needed. dnsmasq also has a built in tftp server that I used for the PXE boot.

share|improve this answer
I am having the same problem as you did here I was wondering if you can share some light on this or share your dnsmasq.conf please…Thanks! – user1680784 Jun 26 '14 at 21:21
@user1680784 I no longer have the system that was set up to do this so I cannot share my config file. While I do not know what you are trying to accomplish specifically, if you are having trouble configuring dhcpd or dnsmasq by hand you may want to try using DRBL to give out Linux boot images. – Suchipi Jun 26 '14 at 22:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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