LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-17-2010, 11:42 AM   #1
hejo
LQ Newbie
 
Registered: Jan 2009
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
Slackware 13.0 DHCP server - Configuration file errors encountered


Hi!

Have come to a dead end here...

I'm trying to set up a PXE boot server on a PC running Slackware 13.0 using the default apps and info shipped with that Slackware version but to no avail...

Carefully reading the Slackware 13.0 README_PXE I've put together this
dhcpd.conf file:

# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
ddns-update-style none

group {
allow bootp;
next-server 192.168.0.1;
use-host-decl-names on;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/slackware-13.0/pxelinux.0";
}

host dhcp_server_pc {
hardware ethernet 00:12:34:56:78:9a;
fixed-address 192.168.0.3;
}
}

# Default lease is 1 week (604800 sec.)
default-lease-time 604800;
# Max lease is 4 weeks (2419200 sec.)
max-lease-time 2419200;

subnet 192.168.0.0 netmask 255.255.255.0 {
option domain-name "my.lan";
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
option routers 192.168.0.10;
range dynamic-bootp 192.168.0.50 192.168.0.100;
use-host-decl-names on;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/slackware-13.0/pxelinux.0";
}
}

Problem is, when running /etc/rc.d/rc.dhcpd, I get this error message:

/etc/dhcpd.conf line 11: semicolon expected.
group
^
/etc/dhcpd.conf line 37: expecting a parameter or declaration
}
^
Configuration file errors encountered -- exiting

I really have no idea what's causing this? The above dhcpd.conf is pretty much copied right out of the Slackware 13.0 README_PXE, I just changed the host name to the name of the pc where the DHCP server is
(supposed to be) running. So it should work but it doesn't.

Anyone got some idea?
 
Old 11-19-2010, 07:18 AM   #2
dubnik
Member
 
Registered: Dec 2006
Location: Slovakia
Distribution: Red Hat
Posts: 48

Rep: Reputation: 1
Hi

it's wote in the error message.Config should looks like this.

# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;
ddns-update-style none;

group {
allow bootp;
next-server 192.168.0.1;
use-host-decl-names on;
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/slackware-13.0/pxelinux.0";
}

host dhcp_server_pc {
hardware ethernet 00:12:34:56:78:9a;
fixed-address 192.168.0.3;
}
}

# Default lease is 1 week (604800 sec.)
default-lease-time 604800;
# Max lease is 4 weeks (2419200 sec.)
max-lease-time 2419200;

subnet 192.168.0.0 netmask 255.255.255.0 {
option domain-name "my.lan";
option broadcast-address 192.168.0.255;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.0.1;
option routers 192.168.0.10;
range dynamic-bootp 192.168.0.50 192.168.0.100;
use-host-decl-names on;
}
if substring (option vendor-class-identifier, 0, 9) = "PXEClient" {
filename "/slackware-13.0/pxelinux.0";
}


At the end of line 9 add ;
And ant end of the line 37 add } and delete } at the bottom.
 
Old 11-20-2010, 03:38 AM   #3
hejo
LQ Newbie
 
Registered: Jan 2009
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
Smile sloppy reading on my part

Thanks for the input dubnik, that did the trick. I hadn't checked the bracket structure as well as I thought...

At least the dhcpd server starts properly now, I just have to set the ip-addresses etc to get the server to behave like I want it to. Will post more info as I go along.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors were encountered while processing: th1bill Ubuntu 2 11-07-2010 10:37 PM
[SOLVED] encountered several errors downloading Ubuntu 9.04 Sharpdrop Linux - Newbie 5 08-22-2009 12:18 AM
Instead of Router DHCP Server, Pass DHCP Server control to Slackware orbit Slackware 6 05-11-2009 02:00 AM
what do these errors encountered upon starting linux mean amanjsingh Linux - Laptop and Netbook 1 12-06-2006 06:19 AM
errors encountered during kernel compile superbondbond Linux - Software 5 08-15-2003 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration