Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ Technical Support _ dhcp server wont start

Posted by: tho Apr 11 2009, 04:07 PM

Hello everyone. I am trying to setup a firewall gateway for my home network. I am running CentOs 5, and have setup iptables. The problem however, lies in setting up dhcpd. I seem to do everything correct, but whenever
I type "service dhcpd restart" I get "Failed". Here is my config file.

ddns-update-style none; # keep it simple for now
ignore client-updates;  # here too
DHCPARGS=eth1;          # tells it what interface to listen on
subnet netmask {
# --- default gateway
       option routers        ;   # gateway on your eth1 internal interface
       option subnet-mask    ; # subnet mask
       option domain-name              "" # domain name given to client
       option domain-name-servers; # the IP of your ISP's nameservers you're using
       option time-offset              -18000;        # Eastern Standard Time - set to what you have
       range;             # the range of IP's your clients will get
       default-lease-time 21600;                      # how long the client's will keep the same IP
       max-lease-time 43200;


Thank you

Posted by: michaelk Apr 11 2009, 05:45 PM

First check the log files.
As far as I know DHCPARGS=eth1 is not a valid statement for dhcpd.conf. You add it to the /etc/sysconfig/dhcpd file.
And DHCPDARGS=eth1 is the correct syntax.

Powered by Invision Power Board (
© Invision Power Services (