The DHCP client can not detect the address provided by the server

DÔ Phan-Cam-Thach dophancamthach at yahoo.co.uk
Tue Jun 10 14:05:59 UTC 2008


there is other problem. I find that, normally when i stop the client using the command KILL and then restart it, it demand the address that it is used the most recent times to the server (for exemple A), not the address indicated in the file dhclient.conf (for exemple B). I have changed the range of address in dhcpd.conf that the server use to provide to its clients so that it doesnt include A. Then, i start dhclient by:
sudo dhclient -cf dhclient.conf eth1
 The address provided by server now is B (by watching Wireshark), not A like before. But when using ifconfig, the client can not detect this address. The address of the interface eth1 is still A, not B.
It is unnormal?






----- Original Message ----
From: DÔ Phan-Cam-Thach <dophancamthach at yahoo.co.uk>
To: dhcp-users at isc.org
Sent: Tuesday, 10 June, 2008 3:23:31 PM
Subject: The DHCP client can not detect the address provided by the server




 Hello everybody,
i now have a problem with my DHCP client. Hope that someone can give me an idea. 
I start my DHCP client et  server by the commands:
sudo dhclient -cf dhclient.conf eth1
sudo dhcpd -cf dhcpd.conf -lf dhcpd.leases eth1

There is no problem if we watch the messages transmitted between the two hosts by using Wireshark (there are 4messages sent: dhcpdiscover, dhcpoffer, dhcprequest, dhcpack). The addresse provided by the server that we see in Wireshark is A. It is regular and in the range indicated in the file dhcpd.conf. But the client can not detect this addresse. When i execute the command: ifconfig, there is no address for the interface eth1, as it hasnt been configured. But i recognize that, if i start dhclient without the file dhclient.conf, the addresse is detected.

The first question: what can be the problem?
The second question: what is the file dhclient.conf used for exactly?
The third question: what is the difference when i start dhcpd by:
sudo dhcpd -cf dhcpd.conf -lf dhcpd.leaseseth1start
and:
sudo dhcpd -cf dhcpd.conf -lf dhcpd.leases eth1
 (sans start)
How can i stop dhclient and dhcpd? Normally i kill them manually by:
sudo kill PID
But perhaps it is not the good way to stop them. There are probably others things that continue to run after this command?

Thanks in advance and thanks so luch for your attention.
Cam Thach.


________________________________
 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/20080610/8f5ed606/attachment.html>


More information about the dhcp-users mailing list