You are not logged in.

#1 2007-08-24 03:53:50

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Problems with dhcpd

I'm having issues getting DHCPD to start. It always immedietly fails when I try to start it. Anyone have any diagnosing tips? Here is my config:

ddns-update-style interim
ignore client-updates

subnet 10.10.0.0 netmask 255.255.255.0 {

   # The range of IP addresses the server
   # will issue to DHCP enabled PC clients
   # booting up on the network

   range 10.10.0.201 10.10.0.220;

   # Set the amount of time in seconds that
   # a client may keep the IP address

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

   # Set the default gateway to be used by
   # the PC clients

   option routers 10.10.0.1;
   # Don't forward DHCP requests from this
   # NIC interface to any other NIC
   # interfaces

   option ip-forwarding off;

   # Set the broadcast address and subnet mask
   # to be used by the DHCP clients

  option broadcast-address 10.10.0.255;
  option subnet-mask 255.255.255.0;

   # Set the DNS server to be used by the
   # DHCP clients

  option domain-name-servers 10.10.0.1;

   # Set the NTP server to be used by the
   # DHCP clients

   option nntp-server 10.10.0.100;

   # If you specify a WINS server for your Windows clients,
   # you need to include the following option in the dhcpd.conf file:

  option netbios-name-servers 10.10.0.1;

   # You can also assign specific IP addresses based on the clients'
   # ethernet MAC address as follows (Host's name is "laser-printer":

  host laser-printer {
      hardware ethernet 08:00:2b:4c:59:23;
     fixed-address 10.10.0.222;
   }
}
#
# List an unused interface here
#
#subnet 192.168.2.0 netmask 255.255.255.0 {
}

Offline

#2 2007-08-24 07:00:03

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Problems with dhcpd

Hi nadman10,
you should find the error messages in /var/log/messages.log
and in /var/log/errors.log

Offline

#3 2007-08-24 07:54:37

nadman10
Member
From: Erie, PA
Registered: 2005-10-15
Posts: 200

Re: Problems with dhcpd

Aug 24 04:17:43 andrew dhcpd: /etc/dhcpd.conf line 2: semicolon expected.
Aug 24 04:17:43 andrew dhcpd: ignore
Aug 24 04:17:43 andrew dhcpd: ^
Aug 24 04:17:43 andrew dhcpd: /etc/dhcpd.conf line 61: expecting a parameter or declaration
Aug 24 04:17:43 andrew dhcpd: }
Aug 24 04:17:43 andrew dhcpd: ^
Aug 24 04:17:43 andrew dhcpd: Configuration file errors encountered -- exiting
Aug 24 04:17:43 andrew dhcpd:
Aug 24 04:17:43 andrew dhcpd: If you did not get this software from ftp.isc.org, please
Aug 24 04:17:43 andrew dhcpd: get the latest from ftp.isc.org and install that before
Aug 24 04:17:43 andrew dhcpd: requesting help.
Aug 24 04:17:43 andrew dhcpd:
Aug 24 04:17:43 andrew dhcpd: If you did get this software from ftp.isc.org and have not
Aug 24 04:17:43 andrew dhcpd: yet read the README, please read it before requesting help.
Aug 24 04:17:43 andrew dhcpd: If you intend to request help from the dhcp-server@isc.org
Aug 24 04:17:43 andrew dhcpd: mailing list, please read the section on the README about
Aug 24 04:17:43 andrew dhcpd: submitting bug reports and requests for help.
Aug 24 04:17:43 andrew dhcpd:
Aug 24 04:17:43 andrew dhcpd: Please do not under any circumstances send requests for
Aug 24 04:17:43 andrew dhcpd: help directly to the authors of this software - please
Aug 24 04:17:43 andrew dhcpd: send them to the appropriate mailing list as described in
Aug 24 04:17:43 andrew dhcpd: the README file.
Aug 24 04:17:43 andrew dhcpd:
Aug 24 04:17:43 andrew dhcpd: exiting.

Any clues?

Offline

#4 2007-08-24 08:09:16

luca
Member
From: Rome
Registered: 2005-10-30
Posts: 280

Re: Problems with dhcpd

Two problems:

/etc/dhcpd.conf line 2: semicolon expected.
/etc/dhcpd.conf line 61: expecting a parameter or declaration

Check the syntax of the file /etc/dhcpd.conf

Offline

Board footer

Powered by FluxBB