LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2005, 11:26 AM   #1
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Rep: Reputation: 31
DHCP config problems


I'm trying Slackware 10.0 to act as my DHCP on my home network. I'm having some issues getting it configured. When I try to start it, it gives the following errors about the dhcpd.conf file.

Quote:
/etc/dhcpd.conf line 8: semicolon expected.
subnet
^
/etc/dhcpd.conf line 68: expecting a parameter or declaration

^
Configuration file errors encountered -- exiting
Line 8 is:

subnet 192.168.47.0 netmask 255.255.255.0 {

Line 68 is:

}

Since line 68 is the closing bracket for the subnet, I'm thinking that these are actually 2 errors pointing to the same error. Any suggestions?

This will be performing DHCP for Linux and Windoze machines.

F_M
 
Old 06-15-2005, 11:46 AM   #2
Xyem
Member
 
Registered: Apr 2005
Distribution: Fedora Core 4
Posts: 100

Rep: Reputation: 15
I haven't experienced your problem as such but it seems similiar to some errors I get while doing PERL.

Sometimes the actual error is a little bit above (such as an unclosed code block or missing semicolon) but the errors "appear" to be elsewhere. Try making sure there isn't a syntax error further up in the code.
 
Old 06-15-2005, 12:59 PM   #3
franzfranz
Member
 
Registered: Mar 2004
Location: Indiana, US
Distribution: gentoo
Posts: 87

Rep: Reputation: 15
could you include the entire config file? it sounds like a missing bracket or semi-colon error i think
 
Old 06-15-2005, 01:11 PM   #4
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Original Poster
Rep: Reputation: 31
I'll take a look at it. There are several lines of comment, and only 1 line of code above. It's

ddns-update-style interim

It very well could require a ; after it. Thanks.

F_M

edit: I did some googling on the above line and it looks like it requires a ; at the end. I'll give it a try when I get home. I also was able to track down a sample dhcp.conf file.

Last edited by Fritz_Monroe; 06-15-2005 at 01:17 PM.
 
Old 06-15-2005, 09:32 PM   #5
Fritz_Monroe
Member
 
Registered: Nov 2004
Location: Maryland, USA
Distribution: Mint 13
Posts: 276

Original Poster
Rep: Reputation: 31
Solved (sort of)

After taking a look at my dhcpd.conf file, it ended up being that first line needing a semicolon. I put that in and it works like a charm. Thanks for all the help.

As a follow up on this. I don't quite get how to get it to run at boot up. The instructions I found have you add it to the rc.local file. I added the command and it doesn't run at boot up. Does it just get added in as a command? Any sort of special format I need?

I'll be looking for this answer tomorrow, but time is short tonight. So have to leave it like this.

F_M
 
Old 06-16-2005, 08:35 AM   #6
franzfranz
Member
 
Registered: Mar 2004
Location: Indiana, US
Distribution: gentoo
Posts: 87

Rep: Reputation: 15
/etc/init.d or rc.local or rc.d should have a bunch of scripts that can be started at boot. I would check /etc/runlevels and /etc/inittab and see how things start at boot for your distro. With gentoo, I use the rc-update tool like this: 'rc-update add dhcpd default' to add dhcpd to the list of scripts to run during the default runlevel.
 
Old 06-16-2005, 01:16 PM   #7
ronraj
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
Question index.html

I put an index.html file in /var/www/html. I am using Redhat Fedora Linux. My httpd and networks file are working. If I ping, I get the response from zonededit and Yahoo (my web URL host (www dot ronrajbang dot com)) . I must be doing something wrong, because I never could see my index.html file.
Thanks in advance for your help.

ronraj
 
Old 06-16-2005, 01:23 PM   #8
ronraj
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
pls disregard the previous reply. I was going to post a new question.

Ronraj
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
config dhcp server meysam39 Linux - Networking 1 08-07-2005 10:16 AM
how can config dhcp server? jsnch Solaris / OpenSolaris 8 06-19-2005 08:35 PM
XP Pro Build 2600/sp1 v.1105 DHCP Client to Redhat 8.0 DHCP Server - Problems atomant Linux - Networking 5 06-28-2003 11:24 AM
DHCP config. problems on RH 7.0 batchild Linux - Networking 5 05-19-2003 10:14 PM
DHCP client problems - network config RedHat123 Linux - Networking 1 12-16-2001 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration