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 <a30ddc1c0912210639h491a727ep5860eedd88118112@mail.gmail.com>, sathya sai
wrote:
>I had already thought on these possiblities. But the problem here is, weWait, what? You don't control the server AND you don't control the clients
>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.
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. ,= ,-_-. =.
bss@iguanasuicide.net ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/ \_/