<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">First, thank you so much for your answer Simon.<br><br>First question: i put some parameters who are not importants. And i put a lease with fixed-address is B. If i understand well, dhclient.conf is used when starting the client to tell the server what address the client prefer for its configuration. <br><br>Second question: it is easy to find out that i had a mistake while typing this command. It wasnt the one i have tried ^_^. Of course it is:<br><div> sudo dhcpd -cf dhcpd.conf -lf dhcpd.leases eth1 start<br><br>Third question: is there any conflict between our dhclient and the dhclient integrated in Ubuntu by defaut (my OS is Ubuntu and i know when we install Ubuntu, there is also dhcp integrated in it by defaut)?<br><br><br><br></div><div><strong>DO Phan Cam
Thach</strong></div><div>email: <a rel="nofollow" target="_blank" href="mailto:dophancamthach@yahoo.co.uk">dophancamthach@yahoo.co.uk</a></div><div style="font-family: times new roman,new york,times,serif; font-size: 10pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Original Message ----<br>From: Simon Hobson <dhcp1@thehobsons.co.uk><br>To: dhcp-users@isc.org<br>Sent: Tuesday, 10 June, 2008 4:00:37 PM<br>Subject: Re: The DHCP client can not detect the address provided by the server<br><br>DÔ Phan-Cam-Thach wrote:<br><br>>i now have a problem with my DHCP client. Hope <br>>that someone can give me an idea.<br>>I start my DHCP client et server by the commands:<br>>sudo dhclient -cf dhclient.conf eth1<br>>sudo dhcpd -cf dhcpd.conf -lf dhcpd.leases eth1<br>><br>>There is no problem if we watch the messages <br>>transmitted between the two hosts by using
<br>>Wireshark (there are 4messages sent: <br>>dhcpdiscover, dhcpoffer, dhcprequest, dhcpack). sudo dhcpd -cf dhcpd.conf -lf dhcpd.leaseseth1 start<br>>The addresse provided by the server that we see <br>>in Wireshark is A. It is regular and in the <br>>range indicated in the file dhcpd.conf. But the <br>>client can not detect this addresse. When i <br>>execute the command: ifconfig, there is no <br>>address for the interface eth1, as it hasnt been <br>>configured. But i recognize that, if i start <br>>dhclient without the file dhclient.conf, the <br>>addresse is detected.<br>><br>>The first question: what can be the problem?<br><br>What is in the dhclient.conf file ?<br><br>>The second question: what is the file dhclient.conf used for exactly?<br><br>It is used to configure the behaviour of the client.<br><br>>The third question: what is the difference when i start dhcpd by:<br>>sudo dhcpd -cf dhcpd.conf
-lf dhcpd.leaseseth1 start<br>>and:<br>>sudo dhcpd -cf dhcpd.conf -lf dhcpd.leases eth1<br>> (sans start)<br><br>The first form, assuming the missing space is <br>just a typo, isn't a valid command line. It <br>should fail with an error message that rather <br>obliquely tells you that it can't find a subnet <br>declaration for interface 'start'.<br><br>>How can i stop dhclient and dhcpd? Normally i kill them manually by:<br>>sudo kill PID<br>>But perhaps it is not the good way to stop them. <br>>There are probably others things that continue <br>>to run after this command?<br><br>Don't know about the client, but that's the only way to stop the server.<br><br>The client would normally be handled by the <br>interface management scripts - ie the script to <br>bring up an interface would start the client, the <br>script to take an interface down would stop it. <br>This is platform/distribution
specific.<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>