LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-20-2006, 05:34 PM   #1
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Rep: Reputation: 15
dhcpd not starting, has errors


I am getting this set of errors when I try to start dhcpd:

May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 2: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 10: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: include
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 18: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: zone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 29: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: allow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 30: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 31: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 32: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ddns-update-style
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 41: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: ^Iallow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 43: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 44: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 45: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Iddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 48: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Izone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 52: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^Izone
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 60: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-rev-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 61: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-domainname
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 65: expecting allow/deny key
May 20 15:25:24 localhost dhcpd: ^I^Iallow client-updates;
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: /etc/dhcpd.conf line 67: expecting a parameter or declaration.
May 20 15:25:24 localhost dhcpd: ^I^Iddns-updates
May 20 15:25:24 localhost dhcpd: ^
May 20 15:25:24 localhost dhcpd: Configuration file errors encountered -- exiting
May 20 15:25:24 localhost dhcpd: exiting.


Any ideas what it could be? This is my dhcpd.conf file:

allow unknown-clients;
ddns-rev-domainname "armon.server";
server-name "mc1.armon.server";
use-host-decl-names on;
option broadcast-address 192.168.1.255;
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
# File with key we shall use to securely update zone files
###########################################################
include "/etc/named.keys";

# Our server is authority
#########################################################
server-identifier armon.server;
authoritative;

# Fedora 's DDNS Zone
zone armon.server. {
primary 192.168.1.1;
key DHCP_UPDATER;
}

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

option domain-name "armon.server";
option domain-name-servers 192.168.1.1;

allow client-updates;
ddns-domainname "armon.server";
ddns-updates on;
ddns-update-style interim;

# Declaration of network properties ( range ... )
# Fedora 's DDNS Zone
subnet 192.168.1.0 netmask 255.255.255.0 {
max-lease-time 172800;
default-lease-time 86400;
next-server mc1.armon.server;
authoritative;
allow client-updates;
allow unknown-clients;
ddns-updates on;
ddns-rev-domainname "armon.server";
ddns-domainname "armon.server";
server-name "mc1.armon.server";
range dynamic-bootp 192.168.1.100 192.168.1.254;
zone armon.server {
primary 127.0.0.1;
key DHCP_UPDATER;
}
zone 1.168.192.in-addr.arpa. {
primary 127.0.0.1;
key DHCP_UPDATER;
}
option subnet-mask 255.255.255.0;
option routers 192.168.1.1;
one-lease-per-client on;
group {
ddns-rev-domainname "armon.server";
ddns-domainname "armon.server";
server-name "mc1.armon.server";
max-lease-time 172800;
default-lease-time 86400;
allow client-updates;
allow unknown-clients;
ddns-updates on;
use-host-decl-names on;
}
}

Even though it says fedora everywhere, I am running ubuntu breezy. Anyone know what the problem is?
 
Old 05-21-2006, 02:11 AM   #2
Armon
Member
 
Registered: Feb 2005
Distribution: Ubuntu- Dapper Drake and Mac OS X 10.4
Posts: 46

Original Poster
Rep: Reputation: 15
Figured it out. It was the wrong version of dhcp. But then the server wouldn't serve ip addresses even though it was running... Oh well.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCPD starting problem glaz Linux - Networking 1 05-24-2005 03:11 PM
dhcpd errors on non-dhcp NIC Gsee Linux - General 8 01-07-2005 05:05 PM
errors when starting ut2004 Moebius Linux - Games 0 06-17-2004 01:46 AM
DHCPd errors in syslog APEX Linux - Networking 0 05-16-2004 02:51 PM
Starting DHCPD Sylhouette Linux - Networking 1 11-06-2001 04:22 PM


All times are GMT -5. The time now is 01:02 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration