DHCP Server Configuration Problem
dophancamthach at yahoo.co.uk
Thu May 29 13:24:59 UTC 2008
Fisrt of all, thank you so much for sharing me, a beginner at Linux, your experiences. Because of my limited knowledge of Linux, i have spent one day reading the basic things of Linux. Now, i have started the server without the problems of packages lacking. I have connected the client and the server and used Wireshark for watching the packets exchanged.
My problem now is that even the client sends DHCP Discover packet, the server doesn't answer. So there is only DHCP Discover packet that are sent. I have configured dhcpd.conf for my network. But i noticed that when i started DHCP server by using: dhcpd start, there was a notice: "not configured to listen on any interface". I think this affect the resultat. But i'm not sure and i dont know how to resolve this problem.
In addition, i dont know if i have to do something with the client or just start the server and start wireshark in each side for watching the packets exchanged.
Once more, thank you so much for helping me
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 8:26:08 PM
Subject: Re: DHCP Server Configuration Problem
DÔ Phan-Cam-Thach wrote:
>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.
So you have noticed any connection between an
error message "/var/db/dhcpd.leases/ no such file
or directory" and the fact that there is no file
at that path ?
If the directory doesn't exist, then create it. Eg :
mkdir -p /var/db
The first command will make the directory, the
second will create an empty file within it.
>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.
It's the man page - ie what is used to display
help if you type "man dhcpd.leases" !
> 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).
Again, do you not spot the connection between
"can not open /etc/dhcpd.conf: no such file or
directory" and the fact that there is no such
It seems you have multiple problems :
1) You have limited knowledge of Linux, and that
means you don't really understand what people are
2) You have installed from source, and so it's
quite possible that required files/directories
have not been created for you - and neither us,
nor I suspect yourself, know what config options
were specified at compile time.
3) It appears from earlier emails that you may
have another problem (permissions ?) that is
stopping you from creating the required config
Given your limited skills, I would suggest that
you should try installing your distributions
package for the DHCP server. That will take care
of creating the right files, in the right places
for your package - then all you need to
concentrate on is the actual config.
If you want to persist with your currently
installed program, then try this and let us know
what happens :
mkdir -p /var/db
dhcpd -t -cf /etc/dhcpd.conf -lf /var/db/dhcpd.leases
These commands will :
Create /var/db/dhcpd.leases if it doesn't already exist.
Create /etc/dhcpd.conf if it doesn't already exist.
Test (the '-t' option) the config using the
config and leases files ('-cf' and '-lf' options)
specified. It will probably fail with an empty
config file, but the results will be useful.
Sent from Yahoo! Mail.
A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the dhcp-users