DHCP Server Configuration Problem

DÔ Phan-Cam-Thach dophancamthach at yahoo.co.uk
Mon May 26 15:09:33 UTC 2008


I have tried it, and the resultat returned is:
"can't  open lease database /var/db/dhcpd.leases/no such file or directory"
And in fact there is no folder whose name is db in /var.
I have search for the file lease and it is in /usr/local/share/man/man5, but the name is dhcpd.leases.5. I found that there is nothing important inside, just the explaination of what the file dhcpd.lease is. However, i tried this command:
sudo /usr/local/sbin/dhcpd -lf /usr/local/share/man/man5/dhcpd.leases.5
It return a resultat "can not open /etc/dhcpd.conf: no such file or directory" (there is not this file in /etc).
I have created a file named dhcpd.leases in other folder et tried the command above. It gave the same resultat.

 
DO Phan Cam Thach
email: dophancamthach at yahoo.co.uk



----- Original Message ----
From: y vasavi <y_vasavi at yahoo.com>
To: dhcp-users at isc.org
Sent: Monday, 26 May, 2008 4:12:45 PM
Subject: Re: DHCP Server Configuration Problem


can you try 
 
sudo /usr/local/sbin/dhcpd -cf /usr/local/etc/dhcpd.conf

--- On Mon, 5/26/08, DÔ Phan-Cam-Thach <dophancamthach at yahoo.co.uk> wrote:

From: DÔ Phan-Cam-Thach <dophancamthach at yahoo.co.uk>
Subject: Re: DHCP Server Configuration Problem
To: dhcp-users at isc.org
Date: Monday, May 26, 2008, 7:32 PM


If there were the files in the rights folders as u mentionned, il should be start, the server. But there are nor file dhcpd.conf in /etc, neither file dhcpd in /etc/init.d (i have talked about this in the precedent lettre). There is a file dhcpd in /usr/local/sbin and dhcpd.conf in /usr/local/etc. i went to that folder to use the command:
 
dhcpd start/stop
 
There was a warning "can't open /etc/dhcpd.conf/ no such file or directory"
 
It also seems that it must have a file dhcpd.conf in /etc for apply the configuration for the interfaces. So i have created a file whose name like that and try to put the infos in it. All seemed to be normal till the time i tried to enregister my modification. The system didnt accpet to enregister it.

Hope now you undestand my problem and thank you so much for your answers.
 
DO Phan Cam Thach
email: dophancamthach at yahoo.co.uk



----- Original Message ----
From: Simon Hobson <dhcp1 at thehobsons.co.uk>
To: dhcp-users at isc.org
Sent: Monday, 26 May, 2008 2:58:51 PM
Subject: Re: DHCP Server Configuration Problem

DÔ Phan-Cam-Thach wrote:

>My distribution est Ubuntu 8.04. I installed 
>dhcpd from source sur le site de isc. And i have 
>tried with sudo, so i was in the root mode.
>
>I haven't found the file dhcpd.conf in /etc/init.d either.

You are confusing the program (and scripts to 
start/stop it) with the config file.

The default location for the config file is 
/etc/dhcpd.conf, and it should be sufficient to 
type "dhcpd" to start the server. You do NOT type 
"./dhcpd" unless you are in the directory where 
the binary is located, nor do you try to execute 
dhcpd.conf.

I think you will find it easier to use the 
packaged binary as that will provide scripts for 
controlling the server and save you the effort of 
writing those, and any dependencies will be taken 
care of for you. Since you are using Ubuntu which 
is Debian based, the packaged version would place 
the config file at /etc/dhcp3/dhcpd.conf, and you 
would control the program by using 
/etc/init.d/dhcpd - eg to start the service you 
would type "/etc/init.d/dhcpd start", to stop it 
you would type "/etc/init.d/dhcpd stop" and so on.


________________________________
Sent from Yahoo! Mail. 
A Smarter Email. 



      __________________________________________________________
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20080526/4701cb8b/attachment.html>


More information about the dhcp-users mailing list