Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm in the process of exploring IPv6 deployment in my network. I've changed the advertised subnet and now my windows PCs have IPs from the new and the old network.

I was able to reset the adapter by unplugging the cable, but this is of course no long-term solution.

How can I force windows to forget the "wrong" IPs?

I'm using Windows 7 and Windows Server 2008 as clients, and radvd on squeeze as router.

I've tested ipconfig's /release and /release6, but both do not affect the autoconfigured addresses.

share|improve this question

4 Answers 4

up vote 2 down vote accepted

IPv6 has a more explicit support for migrating IP addresses. Changing your advertised subnet is supposed to be transparent to your users. When a new address is available new connections will use that new IP address. Old connections will still use the old address. Eventually the address should be removed but not before all old connections have stopped using the address.

You might need to make sure that no connections are listening on the old IP address (netstat is your friend here).

In any case as long as the old address is not causing any harm it should not be a problem. What is the metric for this address? Is it being used for new connections?

share|improve this answer
1  
It turned out that the problems I was seeing stemmed from the fact that the server in question found itself in a new network environment and thus went to "Public" security settings. Regarding the question I wrote, your answer seems sensible: support both nets until the old addresses time out. –  David Schmitt May 27 '11 at 9:36

Once you change the prefix your router is advertising, addresses in the old subnet will be deprecated and eventually removed without any intervention on your part. The address will be deprecated for the difference between the preferred and valid lifetimes advertised by your router. (On my network this works out to 90 minutes, but it depends on how you configured radvd.)

To see deprecated addresses on your Windows network interfaces you can use netsh interface ipv6 show address, or PowerShell Get-NetIPAddress -AddressFamily IPv6.

share|improve this answer

At the command prompt,

ipconfig /release

The Syntax and Options for Using the Ipconfig Diagnostic Utility for Network Connections

share|improve this answer
1  
On Windows7/2008, /release only drops DHCPv4 addresses. There is a /release6 switch, but this doesn't seem to affect the autoconfigured addresses. –  David Schmitt May 25 '11 at 18:27

You'll need to remove all cached/autoconfigured IPv6 settings then let them repropagate. The command on Windows is

netsh int ipv6 reset

You'll need to restart for the changes to take effect.

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.