Help - Search - Members - Calendar
Full Version: dhcp server wont start
Linuxhelp > Support > Technical Support
tho
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.

CODE
ddns-update-style none; # keep it simple for now
ignore client-updates;  # here too
DHCPARGS=eth1;          # tells it what interface to listen on
subnet 192.168.0.0 netmask 255.255.255.0 {
# --- default gateway
       option routers                  192.168.0.1;   # gateway on your eth1 internal interface
       option subnet-mask              255.255.255.0; # subnet mask
       option domain-name              "example.com" # domain name given to client
       option domain-name-servers      209.242.10.10; # the IP of your ISP's nameservers you're using
       option time-offset              -18000;        # Eastern Standard Time - set to what you have
       range 192.168.0.128 192.168.0.254;             # 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
michaelk
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.