LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2005, 05:42 PM   #1
jebaird
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: openSuse10, FC5
Posts: 46

Rep: Reputation: 15
suse 9.2 Dhcp server


I got my dhcp server running on my suse 9.2 box. when ever i try to load dhcp in terminal i get this error:
----------------------------------------------------------
Starting DHCP server Internet Systems Consortium DHCP Server V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit ****isc.org/sw/dhcp/
/var/lib/dhcp///etc/dhcpd.conf line 11: expecting numeric value.
subnet netmask
^
/var/lib/dhcp///etc/dhcpd.conf line 15: expecting numeric value.
subnet netmask
^
Configuration file errors encountered -- exiting

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
-----------------------------------------------------------------------

dhcpd.conf
-------------------------------------------------
option domain-name "vehemence.shacknet.nu";
option domain-name-servers 192.168.0.4, 192.168.0.1;
option routers 192.168.0.1;
ddns-update-style none;
default-lease-time 14400;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.5 192.168.0.15;
default-lease-time 14400;
max-lease-time 172800;
}
subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
_____________________________________________-


i have tried removing the lines that it says that it is having errors on and i could'nt get it to work. also I have try uninstalling the dhcp server. using yast to generate a new config file

any ideas?
thanks
 
Old 07-09-2005, 05:48 PM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
I'd remove these lines, as they are redundant for most non-corporate users (they are there for isolating different departments). The netmask is important but because you don't have more than one, it's choking. (A netmask is just a "screen" isolating your private addresses from those on the internet, allowing many more locations than the current addressing scheme would allow on it's own, if every PC had to have a separate address.)

subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
 
Old 07-09-2005, 06:24 PM   #3
jebaird
Member
 
Registered: Jul 2005
Location: Iowa
Distribution: openSuse10, FC5
Posts: 46

Original Poster
Rep: Reputation: 15
I took out the lines:
subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
subnet netmask {
default-lease-time 14400;
max-lease-time 172800;
}
I still am getting the error message... my dhcp.conf is in /var/lib/dhcp/etc am I missing something ?
 
  


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
Suse DHCP server and XP...again ! Akrycek Linux - Networking 3 02-22-2005 09:25 AM
dhcp server with suse 9.1 pro digitalf Linux - Networking 1 10-04-2004 12:19 PM
setup a dhcp server with suse 8.2 or redhat 6.2/9.0 The_SUSE_NEWBE Linux - Networking 1 06-10-2003 08:53 AM
setting up dhcp server in suse 7.1 parag Linux - Newbie 1 12-13-2001 09:10 AM
How to Configure DHCP Server in SuSE 7.1? rdkoli Linux - Networking 1 06-18-2001 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:09 AM.

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