> *I could also see that, our debian dhclient presently DOES NOT HAVE AN
> OPTION TO IMPLICITLY SUPPORT THIS.*
>
> But as per RFC 2131, the client should perform a final check to detect
> the IP conflict and send DHCPDECLINE message. Please find the RFC
> snippet as in below,
Why aren't you able to create a reservation on the dhcp server? That is the
very very simple and _correct_ solution to this problem. This is exactly why
dhcp servers have code to allow reservations.
--
Stan
--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
That's what I figured.
> So, to overcome I will that it would be better if our dhcp client does
> an ARP broadcast to detect an IP conflict (as per RFC 2131) and send
> DHCPDECLINE if it has found IP conflict.
>
> Could you please let me know your thoughts on this.
Sure. First, talk to the people in charge of your network, and ask them to
create a dhcp reservation for the host with the static IP. The problem you have
is not technical in nature, but administrative.
Second, have you confirmed that your Debian client is in fact not sending the
decline packet? Or are you just assuming this?
How do you know it's not sending the decline packet but the dhcp server isn't
responding and offering a new address? If the server doesn't respond to the
decline, I believe the default dhclient behavior is to use the first address
given by the dhcp server.
Unless you grab some packets you won't really know what's happening. Have you
applied tcpdump to this problem, or another packet sniffer? Also, you haven't
posted any relevant log information. It's difficult to diagnose a problem
without seeing the error messages in the log file(s).
I could distinguish the IP conflict in the network by using following command in dhclient-script. We need to install “arping” debian package for this.
arping -d -I eth0 -c 3 {IP address got from DHCP server} >/dev/null; echo $?
The above command will return “1” if IP conflict doesn’t exist and returns “0” if IP conflict exists.
And when IP conflict is detected, exit from dhclient-script with positive exit status. dhclient already has a code to send DHCPDECLINE packet (with which dhcpserver will assign a new IP to the dhclient client) when dhclient-script returns positive value.
Hope this helps !!
In <a30ddc1c0912210639h491...@mail.gmail.com>, sathya sai
wrote:
>I had already thought on these possiblities. But the problem here is, we
>dont have control over neither our DHCP server (it can be either Windows or
>Linux based servers) nor the client PC which configures static IP (anybody
>in the subnet can configure the IPs on their wish). I hope, this is true
>with the real time deployment scenario.
Wait, what? You don't control the server AND you don't control the clients
AND you want to change how the server and client interact? I'm sorry, I think
you are asking for the logically impossible.
--
Boyd Stephen Smith Jr. ,= ,-_-. =.
b...@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/