Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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:~$ 
share|improve this question
    
If you need help with the terminology, read through this excellent intro to networking: netfilter.org/documentation/HOWTO/networking-concepts-HOWTO.txt –  djeikyb Jan 3 '12 at 8:29
    
Can you edit your post to include what you've done so far? What have you installed? What tutorial are you following? –  djeikyb Jan 3 '12 at 8:33

4 Answers 4

up vote 1 down vote accepted

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

share|improve this answer

The problem is that with the new dhcp3 server that the config files are done differently than on older installations.

Now the installation is done under isc-dhcp-server the location of the dhcpd.conf file and interfaces has changed along with the mechanism to start stop the service.

The dhcpd.conf file has moved from /etc/dhcp3/dhcpd.conf to /etc/dhcp/dhcpd.conf. The interface definition has also moved--from /etc/default/dhcp3-server to /etc/default/isc-dhcp-server.

The fields are basically the same but if you have been modifying the original files you will get the error you see above. Make the mods to these files and you should be OK to go.

Also no best to start and stop using sudo service isc-dhcp-server start/stop/restart.

I was suffering with all these problems on Ubuntu 12.04 but this resolved all the issues and now it's working. I hope this helps you.

share|improve this answer

I would suggest you to take a look to the man page of /etc/dhcp3/dhcpd.conf, which is the file you'll have to modify to correctly configure your dhcpd server. A basic file would look like this :

DHCPDARGS=eth0; # to specify to which interface your dhcpd server have to listen

subnet 192.168.0.0 netmask 255.255.255.0 {
       option routers                  192.168.0.1; #Default Gateway
       option subnet-mask              255.255.255.0;
       option domain-name              "home.local";
       option domain-name-servers      192.168.0.2;
    range dynamic-bootp 192.168.0.51 192.168.0.100;  #DHCP Range to assign
       default-lease-time 43200;    # every 12 hours, an address can be changed 
       max-lease-time 86400;    # every 24 hours, an address must be renewed 
}
share|improve this answer
    
i dont have a /etc/dhcpd.conf file only a /etc/dhcp/dhcpd.conf and /etc/dhcp3/dhcpd.conf file –  Matthew Wilson Jan 4 '12 at 1:24
    
@MatthewWilson : you should eddit /etc/dhcp3/dhcpd.conf –  Cédric Julien Jan 4 '12 at 8:22

I think it means it's not configured to listen to any interfaces and you should write a subnet declaration in dhcpd.conf... If you don't know what that means then I wonder why you want to set up a DHCP server in the first place because your probably don't need it.

share|improve this answer
2  
While I share your scepticism over the need for OP's dhcp server, you don't even attempt to answer the question. If you need more info (like, "why do you think you need a dhcp server?") or want to refocus the question to the root problem, leave a comment. –  djeikyb Jan 3 '12 at 8:25

Your Answer

 
discard

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.