LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unable to start DHCP server (http://www.linuxquestions.org/questions/linux-server-73/unable-to-start-dhcp-server-734310/)

divyashree 06-19-2009 11:33 PM

Unable to start DHCP server
 
I tried everything in dhcpd.conf,but everytime it's failed to start.

This is what I did,if any error plz suggest..

Code:

#ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
        option routers                  192.168.1.1;
        option subnet-mask              255.255.255.0;

        option nis-domain              "domain.org";
        option domain-name              "pdk.rh5.server";
        option domain-name-servers      192.168.1.1;

        option time-offset              -18000; # Eastern Standard Time
#      option ntp-servers              192.168.1.1;
#      option netbios-name-servers    192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
#      option netbios-node-type 2;

        range dynamic-bootp 192.168.1.1        192.168.0.254;
        default-lease-time 21600;
        max-lease-time 43200;

        # we want the nameserver to appear at a fixed address
        #host ns {
        #      next-server marvin.redhat.com;
        #      hardware ethernet 12:34:56:78:AB:CD;
        #      fixed-address 207.175.42.254;
        #}
}


megerdin 06-20-2009 02:22 AM

its very easy to recognize and solve ur problem, At the same time tried to start DHCPD and open a new tab and enter code follow.
Quote:

tail -f /var/log/messages | grep dhcpd
there must appear what's the error in ur configuration.

divyashree 06-20-2009 03:12 AM

Quote:

Originally Posted by megerdin (Post 3580311)
its very easy to recognize and solve ur problem, At the same time tried to start DHCPD and open a new tab and enter code follow.


there must appear what's the error in ur configuration.

Bro ,My problem is here ,for which I cannot rectify my server setup issues ,

http://www.linuxquestions.org/questi...ssages-733054/

priteshverma 05-17-2013 08:01 AM

#ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {

# --- default gateway
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

option nis-domain "your_Domain_Name";
option domain-name "your_Domain_Name";
option domain-name-servers 192.168.1.1;

option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# --- Selects point-to-point node (default is hybrid). Don't change this unless
# -- you understand Netbios very well
# option netbios-node-type 2;

range dynamic-bootp 192.168.1.2 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;

# we want the nameserver to appear at a fixed address
#host ns {
# next-server marvin.redhat.com;
# hardware ethernet 12:34:56:78:AB:CD;
# fixed-address 207.175.42.254;



Please try with this config file .....here your domain name should be like "example.com" and not be a machines FQDN,and DHCP server IP "192.168.1.1"

bloodstreetboy 05-25-2013 03:04 AM

Please mention your Linux distribution.

Are you getting any of these errors?
Quote:

Error 1004
The DHCP service failed to initialize the database. The following error occurred:
%%65535


Error 1014
The following problem occurred with the Jet database -1811: Jet database read or write operations failed. If the computer or database has just been upgraded, then this message can be safely ignored. If this message appears frequently, either there is not enough disk space to complete the operation or the database or backup database may be corrupt. To correct this problem, either free additional space on your hard disk or restore the database. After you restore the database, ensure that conflict detection is enabled in DHCP server properties. For information about restoring the database, see Help and Support Center. Additional Debug Information: JetRestore.


Error 1018
The DHCP service failed to restore the database. The following error occurred:
An error occurred while accessing the DHCP database. Look at the
DHCP server event log for more information on this error.


Error 1008
The DHCP service is shutting down due to the following error:
The service has returned a service-specific error code.


Error 7024
The DHCP Server service terminated with service-specific error 20013 (0x4E2D).

Error 1075

Error 1068

hua 05-25-2013 09:07 AM

Don't you have a typo in the range part?
Quote:

range dynamic-bootp 192.168.1.2 192.168.0.254;
Shouldn't that be?:
range dynamic-bootp 192.168.1.2 192.168.1.254;

Hope it helps


All times are GMT -5. The time now is 07:19 PM.