LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   DHCP config problems (https://www.linuxquestions.org/questions/linux-newbie-8/dhcp-config-problems-333893/)

Fritz_Monroe 06-15-2005 11:26 AM

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

Xyem 06-15-2005 11:46 AM

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.

franzfranz 06-15-2005 12:59 PM

could you include the entire config file? it sounds like a missing bracket or semi-colon error i think

Fritz_Monroe 06-15-2005 01:11 PM

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.

Fritz_Monroe 06-15-2005 09:32 PM

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

franzfranz 06-16-2005 08:35 AM

/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.

ronraj 06-16-2005 01:16 PM

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

ronraj 06-16-2005 01:23 PM

pls disregard the previous reply. I was going to post a new question.

Ronraj


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