<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:10pt"><DIV></DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>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.</DIV>
<DIV> </DIV>
<DIV>Once more, thank you so much for helping me</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><STRONG>DO Phan Cam Thach</STRONG></DIV>
<DIV>email: <A href="mailto:dophancamthach@yahoo.co.uk" target=_blank rel=nofollow>dophancamthach@yahoo.co.uk</A></DIV>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: times new roman, new york, times, serif"><BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Simon Hobson <dhcp1@thehobsons.co.uk><BR>To: dhcp-users@isc.org<BR>Sent: Monday, 26 May, 2008 8:26:08 PM<BR>Subject: Re: DHCP Server Configuration Problem<BR><BR>DÔ Phan-Cam-Thach wrote:<BR><BR>>I have tried it, and the resultat returned is:<BR>><BR>>"can't  open lease database /var/db/dhcpd.leases/no such file or directory"<BR>><BR>>And in fact there is no folder whose name is db in /var.<BR><BR>So you have noticed any connection between an <BR>error message "/var/db/dhcpd.leases/ no such file <BR>or directory" and the fact that there is no file <BR>at that path ?<BR><BR>If the directory doesn't exist, then create it. Eg :<BR>  mkdir -p /var/db<BR>  touch /var/db/dhcpd.leases<BR><BR>The first command will make the directory, the <BR>second will create an empty file within it.<BR><BR>>I have
 search for the file lease and it is in <BR>>/usr/local/share/man/man5, but the name is <BR>>dhcpd.leases.5. I found that there is nothing <BR>>important inside, just the explaination of what <BR>>the file dhcpd.lease is.<BR><BR>It's the man page - ie what is used to display <BR>help if you type "man dhcpd.leases" !<BR><BR>>  However, i tried this command:<BR>><BR>>sudo /usr/local/sbin/dhcpd -lf /usr/local/share/man/man5/dhcpd.leases.5<BR>><BR>>It return a resultat "can not open <BR>>/etc/dhcpd.conf: no such file or directory" <BR>>(there is not this file in /etc).<BR><BR>Again, do you not spot the connection between <BR>"can not open /etc/dhcpd.conf: no such file or <BR>directory" and the fact that there is no such <BR>file ?<BR><BR><BR>It seems you have multiple problems :<BR><BR>1) You have limited knowledge of Linux, and that <BR>means you don't really understand what people are <BR>telling you.<BR><BR>2) You
 have installed from source, and so it's <BR>quite possible that required files/directories <BR>have not been created for you - and neither us, <BR>nor I suspect yourself, know what config options <BR>were specified at compile time.<BR><BR>3) It appears from earlier emails that you may <BR>have another problem (permissions ?) that is <BR>stopping you from creating the required config <BR>file.<BR><BR><BR>Given your limited skills, I would suggest that <BR>you should try installing your distributions <BR>package for the DHCP server. That will take care <BR>of creating the right files, in the right places <BR>for your package - then all you need to <BR>concentrate on is the actual config.<BR><BR><BR>If you want to persist with your currently <BR>installed program, then try this and let us know <BR>what happens :<BR><BR>  mkdir -p /var/db<BR>  touch /var/db/dhcpd.leases<BR>  touch /etc/dhcpd.conf<BR>  dhcpd -t -cf /etc/dhcpd.conf -lf
 /var/db/dhcpd.leases<BR><BR>These commands will :<BR><BR>Create /var/db/dhcpd.leases if it doesn't already exist.<BR>Create /etc/dhcpd.conf if it doesn't already exist.<BR>Test (the '-t' option) the config using the <BR>config and leases files ('-cf' and '-lf' options) <BR>specified. It will probably fail with an empty <BR>config file, but the results will be useful.<BR><BR></DIV></DIV></div><br>



      <hr size=1>
Sent from <a  
href="http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52418/*http://uk.docs.yahoo.com/nowyoucan.html" target=_blank>Yahoo! Mail</a>.
<br>
A Smarter Email.</body></html>