Enabling DHCP through registry

I want to change the IP address and DNS on the network card (Windows XP) from static to DHCP through registry. I changed ...Tcpip\Parameters\Interfaces\(ID for Adapter) EnableDhcp to 1 and I deleted the entry in NameServer string. When I restart the computer, everything seems to be OK - the computer collects dynamic IP address and other data from DHCP server. However, when the computer is restarted again, it can not obtain the same IP address from DHCP server, but it gets new one. At the DHCP server beside the old address there is a note "bad_address" and "This address is already in use". That is happening after each restart and old address can not be used (unless I delete them manualy). What should I do to cure this?
milancheAsked:
Who is Participating?
 
abu_deepConnect With a Mentor Commented:

u may have a look at this sites :
19. Registry Parameters for DHCP Servers  (premium content)

http://premium.microsoft.com/msdn/library/winresource/dnwinnt/f1d/d1f/s7677.htm 



20. Registry Parameters for DHCP Clients  (premium content)

http://premium.microsoft.com/msdn/library/winresource/dnwinnt/f1d/d1f/s7680.htm 
0
 
adamdrayerConnect With a Mentor Commented:
Is the server leasing IP addresses in the same scope as the IP address of the NIC it's listening on?
0
 
abu_deepConnect With a Mentor Commented:
also
Network Settings in the Registry  (premium content)

http://premium.microsoft.com/msdn/library/winresource/dnwinnt/f1d/d1e/s8458.htm 

Network Component Types in the Registry  (premium content)

http://premium.microsoft.com/msdn/library/winresource/dnwinnt/f1d/d1e/s8459.htm 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.