title: Raspberry Pi isc-dhcp-server: No subnet declaration for eth0
body: <p>I am trying to set up a DHCP server on my Raspberry Pi. I tried installing it with the following command:</p>
  
  <pre><code>sudo apt-get install isc-dhcp-server
  </code></pre>
  
  <p>And the following log is shown:</p>
  
  <pre><code>Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following package was automatically installed and is no longer required:
     icelib
  Use 'apt-get autoremove' to remove it.
  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 302 not upgraded.
  Need to get 0 B/887 kB of archives.
  After this operation, 0 B of additional disk space will be used.
  Preconfiguring packages ...
  (Reading database ... 61701 files and directories currently installed.)
  Preparing to replace isc-dhcp-server 4.2.2.dfsg.1-5+deb70u6 (using .../isc-dhcp-server_4.2.2.dfsg.1-5+deb70u6_armhf.deb) ...
  [FAIL] Stopping ISC DHCP server: dhcpd failed!
  Unpacking replacement isc-dhcp-server ...
  Processing triggers for man-db ...
  Setting up isc-dhcp-server (4.2.2.dfsg.1-5+deb70u6) ...
  [FAIL] Starting ISC DHCP server: dhcpd[....] check syslog for diagnostics. ... failed!
   failed!
  invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
  </code></pre>
  
  <p>When I open the /var/log/syslog file, it shows the following lines:</p>
  
  <pre><code>No subnet declaration for th0 (x.x.x.x)
  ** Ignoring requests on eth0. If this is not what
     you want, please write a subnet declaration 
     In your dhcpd.conf file for the network segment
     to which interface eth0 is attached. **
  </code></pre>
  
  <p>I am new to linux so I don't know what is wrong with my system or where to go from here.</p>
  
  <p>I appreciate any help.</p>