Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> dhcp server wont start
tho
post Apr 11 2009, 04:07 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 11-April 09
Member No.: 14,394



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
Go to the top of the page
 
+Quote Post
michaelk
post Apr 11 2009, 05:45 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,797
Joined: 23-January 03
Member No.: 360



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.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st October 2017 - 11:04 AM