Server Fault is a question and answer site for system and network administrators. 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 having a lot of trouble getting my dhcpd service to start on CentOS 5.6.

No matter what configuration I use it fails to start.

So I started looking around in the server, I noticed I have no file in /sbin named dhcpd, I do however have a file called dhcp6c.

That does not sound right though, is that a problem?

If that is not the problem, I don't what it is. I almost sure my config it good.

My /etc/dhcpd.conf:

subnet netmask {

    option routers        ;
    option subnet-mask    ;

    option domain-name              "solignis.local";
    option domain-name-servers;

    default-lease-time      86400;
    max-lease-time          172800;


** Update **

I found dhcpd it was in /usr/sbin/, so unless there is something wrong I am lost...

Here is my ifconfig output

[root@ns01 ns01]# /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0C:29:A4:35:31  
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::20c:29ff:fea4:3531/64 Scope:Link
          RX packets:20639 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11293 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25363968 (24.1 MiB)  TX bytes:874194 (853.7 KiB)

lo        Link encap:Local Loopback  
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3718 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3718 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:4146173 (3.9 MiB)  TX bytes:4146173 (3.9 MiB)
share|improve this question
How are you trying to start it, and what errors turn up in your logs? – Gagravarr May 28 '11 at 11:00
Do you have a network interface in the subnet? – wolfgangsz May 28 '11 at 11:55
Please, post your network configuration, ifconfig for example – ghm1014 May 28 '11 at 13:25
I am starting the service with the Services GUI, and I also tried /sbin/service dhcpd start Both failed. – ianc1215 May 28 '11 at 21:07
what error messages do you get (/var/log/messages) ? – Iain May 28 '11 at 21:17
up vote 0 down vote accepted

As root do a which dhcpd That should state where the binary is located, otherwise a yum search dhcpd will show you what you seem to be missing, just install it.

Mostly... it's selinux. (Prevents the system from writing a .pid file for example.)

setenforce 0 to disable it completely. It's defined in /etc/selinux/config Try again

Be sure you keep an tail -f /var/log/syslog open at a terminal at all times ;)

share|improve this answer
What a surprise..... it was SELinux. Oh how I hate SELinux. – ianc1215 May 28 '11 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.