LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 11-15-2004, 07:35 PM   #1
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Rep: Reputation: 15
Setting up a DHCP server


I am a trying to set up a DHCP server at home using webmin. However I cannot get the DHCP sever to work.

I run the DHCP Module for Webmin and first create a new subnet. I add my subnet description then I add my network address which would be xxx.xxx.xxx.0 Then I add my net mask which is 255.255.255.0 I set my Lease ranges to what I want. Ok so now my subnet is set.

Next I assume you are supposed to set up your host. I go to set up my host now. This is where I get confused. I add my host Description and host name which I take it would be the name of this server and what I want to call it - In this case test. Next it asks for a hardware address and a fixed IP address. I assign the fixed IP address the address of this machine. Next I add the MAc Address to the Hardware address. I leave evrythign else as default.

Then I go to start the server. I get this error message when trying to start it.

Starting dhcpd: Internet Software Consortium DHCP Server V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

** You must add a ddns-update-style statement to /etc/dhcpd.conf.
To get the same behaviour as in 3.0b2pl11 and previous
versions, add a line that says "ddns-update-style ad-hoc;"
Please read the dhcpd.conf manual page for more information. **

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.

What does this mean?



Thanks in advance.

Last edited by blazted; 11-15-2004 at 07:38 PM.
 
Old 11-15-2004, 07:46 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
hi,

there must be some kind of statement like " ddns-update-style none "
( i believe i have that in my dhcpd.conf : i can't check now. )

maybe it's here....( also usefull for any other prob's )
http://www.linuxquestions.org/questi...hreadid=244919
edit: in fact you'll need the link in the first post of this thread....)

egag

Last edited by egag; 11-15-2004 at 08:03 PM.
 
Old 11-15-2004, 08:02 PM   #3
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks it works.


Thanks a million. I love Linux
 
Old 11-15-2004, 08:13 PM   #4
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
A quick question on the DHCP server. Using the webmin tool it looks like it is working. I got no error when I applied my configuration. However when I go to see if it is running in my processes by typing top I do not see DHCP running?

Is there a way to verify the DHCP server is running?

Thanks
 
Old 11-15-2004, 08:25 PM   #5
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
well... i don't use webmin, but you should see "dhcpd" ( d =deamon ) running.
also , when i start it, i get the message :
" listening on 192.168.1.1
sending on 192.168.1.1 "
also there are messages from the server in " /var/log/messages " ( use the "tail " command, it's a large file... )

egag
 
Old 11-16-2004, 08:45 AM   #6
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
Thank egag. Your advice works great. I did a tail command and I can see tha last service started was the DHCP. Also when I shut the PC down I see it.

But I can not see the DHCP daemon in my top command.

How do I normally accces the DHCP Daemon? I cannot access it besides through my webmin console. WHat command would I use to invoke it so I could configure it. I belive it is messing with my Internet connenction at the moment since I lost my Internet connection. But I cant seem to find the process to kill it.

Thanks
 
Old 01-28-2005, 04:10 AM   #7
afterburner
LQ Newbie
 
Registered: Jan 2005
Location: Boksburg South Africa
Distribution: Redhat 9,8 Mandrake 10.0, Fedora Core 3, Ubuntu Linux (Warty Warthog)
Posts: 4

Rep: Reputation: 0
I'm also having problems with dhcp

When I start it up it says
[root@boot2 ~]# service dhcpd restart
audit(1106902318.029:0): avc: denied { read } for pid=4703 exe=/usr/sbin/dhcp
d name=dhcpd.conf dev=sda1 ino=9257146 scontext=root:system_r:dhcpd_t tcontext=u
ser_ubject_r:user_home_t tclass=file

and when I check /var/log/messages it says

Jan 28 10:51:58 boot2 dhcpd: Can't open /etc/dhcpd.conf: Permission denied
Jan 28 10:51:58 boot2 dhcpd:
Jan 28 10:51:58 boot2 dhcpd: If you did not get this software from ftp.isc.org,
please
Jan 28 10:51:58 boot2 kernel: audit(1106902318.029:0): avc: denied { read } fo
r pid=4703 exe=/usr/sbin/dhcpd name=dhcpd.conf dev=sda1 ino=9257146 scontext=ro
ot:system_r:dhcpd_t tcontext=user_ubject_r:user_home_t tclass=file
Jan 28 10:51:58 boot2 dhcpd: get the latest from ftp.isc.org and install that be
fore
Jan 28 10:51:58 boot2 dhcpd: requesting help.

but /etc/dhcp.conf is

[root@boot2 ~]# ls -l /etc/dhcpd.conf
-rwxr-xr-x 1 root root 3129 Jan 27 16:10 /etc/dhcpd.conf


Any Ideas?


Thanks
 
  


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
Setting up a DHCP server MasterCephus Linux - Newbie 9 06-26-2005 08:41 AM
setting up dhcp server? help please!!!! lumbrjackedpcj Linux - Networking 7 10-07-2004 12:01 AM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 11:56 AM
Setting up a dhcp server PlatinumRik Linux - Networking 4 05-22-2003 02:50 AM
Setting up a DHCP Server bselzler Linux - Networking 2 08-07-2001 05:28 AM


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