Dhcp failed

rumbi

Distinguished
Sep 22, 2011
3
0
18,510
Hello,
I get a dhcp failed error message on rhel6. All i did was installl dhcp which was successful and then copied the dhcp.conf.sample file , then renamed it to dhcp.conf. The dhcp.leases file exists but I get the above error. please assist
 
A few questions to clarify what it is you're attempting to do:

I'm assuming you're using dhcpd or something similar to run a DHCP server (since any reasonable distro comes with a DHCP client, plus the rest of you post doesn't point in that direction). Is that correct?

You say you "get a dhcp failed error", but where are you seeing that error? A log file somewhere? A pop-up? And does it give you any additional information?

Ultimately, I think this one is going to come down to either just finding a good guide to setup your server or some research (network sniffing with Wireshark, checking logs for errors, reading up on the packages you're using for the DHCP server, especially the part pertaining to the config file)
 
Thank you for the response. I had not edited the configuration file properly. I corrected the problem by making sure that the file and the options for address distribution was correct. I have since tested the distribution and the tests were successful.

Bmouring, I got the dhcp failed error when i ran the dhcp daemon (on the screen). Checking my var/log/messages led me in the right direction. As they say, logs don't lie.