I re-framed my question for better clarity
Is there a way to configure dhcp server to give same ip address to NIC cards. i am not asking for static IP. i am fine with any ip being allocated to any NIC but once it is assigned it should assign same ip all the time.
i am looking for a solution where i would not have to add an entry every time i attach a new machine to the subnet. is there a configuration which would make dhcp server remember what ip address was allocated to the NIC for the first time and automatically reserve that IP address for all the times.
Why i need this?
I need to get IP address associated with the MAC address, which i already know. Now one way of doing it is send a broacast ping to the LAN, and then from the ARP table fetch the ip address. however between the time i send a broadcast ping, and read the ARP entry there is a possibility of some machine restarting and getting assigned new IP address.
My objective is to keep everything dynamic with no user intervention, and also robust to prevent swapping of ip addresses.