Ubuntu – How to set up a DHCP server

11.10dhcp

I am currently at this stage of setting up DHCP, and id just like to know what this output in terminal means? I know I have to edit a file but I do not know which one, and I do not know what to put in it. Ultimately I would like to set up a DHCP server.

matt@matt-R580-R590:~$ sudo tail /var/log/syslog
Jan  3 17:35:23 matt-R580-R590 dhcpd: Wrote 0 leases to leases file.
Jan  3 17:35:23 matt-R580-R590 dhcpd: 
Jan  3 17:35:23 matt-R580-R590 dhcpd: No subnet declaration for eth0 (no IPv4 addresses).
Jan  3 17:35:23 matt-R580-R590 dhcpd: ** Ignoring requests on eth0.  If this is not what
Jan  3 17:35:23 matt-R580-R590 dhcpd:    you want, please write a subnet declaration
Jan  3 17:35:23 matt-R580-R590 dhcpd:    in your dhcpd.conf file for the network segment
Jan  3 17:35:23 matt-R580-R590 dhcpd:    to which interface eth0 is attached. **
Jan  3 17:35:23 matt-R580-R590 dhcpd: 
Jan  3 17:35:23 matt-R580-R590 dhcpd: 
Jan  3 17:35:23 matt-R580-R590 dhcpd: Not configured to listen on any interfaces!
matt@matt-R580-R590:~$ 

Best Answer

I think you should look at the official Ubuntu documentation about DHCP server, that explains how to install and configure it:

https://help.ubuntu.com/community/dhcp3-server