Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm troubleshooting a certain issue with my DHCP configuration, and need my Windows machine to ask for a "fresh" IP address, so I can see which address DHCP server gives by default.

When I do ipconfig /release followed by ipconfig /renew, Windows "proposes" its old IP address to the DHCP server (just checked with Wireshark, initial "DHCP Discover" message has Option-50 (requested IP address) with Windows machine's old IP).

Tried disabling/enabling network adapter. Same behavior.

Question: How can I force Windows to just ask for a new IP address, without proposing its old IP address.

share|improve this question
Is this on your own home network? If so, assigning a static IP may work fine. – Simon Sheehan Sep 5 '12 at 23:54
Yes, static IP will work... However, I've specifically stated that I'm debugging a problem with DHCP, so I need an answer to my question, not a workaround. – haimg Sep 6 '12 at 0:04
You could wait for the lease to expire, or try shortening the lease time to expedite the expiration. – Iszi Sep 6 '12 at 0:09
@Iszi: it doesn't help. Windows will propose the same IP when renewing the lease. – haimg Sep 6 '12 at 0:15
Fire up a VM or another box and set that to statically take over that IP? It might be more helpful if you could describe the issue you're really troubleshooting. – Iszi Sep 6 '12 at 0:16

2 Answers

up vote 2 down vote accepted

There is no procedure worth the effort. It's stored in a registry key, but that portion of the registry is cached while the network subsystem is running. So you'd have to shut the system down, boot another OS installation, mount the registry, delete the key, and then reboot into the original OS installation. The key is DhcpIPAddress but it is only used across reboots, so you can't modify it.

Uninstalling and re-installing the network adapter might work.

share|improve this answer

You could try configuring the DHCP server to give out addresses in a range that excludes the old address. Eg, if the old address is x.x.x.101, set the range to be x.x.x.120 to 130. I know you're interested in determining some default behavior of the server, so this may not be helpful if it alters the very thing you want to determine.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.