In Windows (specifically, server 2008 R2), if a network interface dies and I replace it, how can I then retrieve the IP that was assigned to the old interface?
I know Windows retains it somewhere, because if I knew what it was and assigned it to the new interface, Windows would throw a warning and inform me that IP was assigned on this system before.
Along the same lines, if I were talking about a virtual guest that was moved to a new host that did not have the virtual network configured the same, I arrive at the same issue. I need to find the old IP and assign it to the new interface.
Thanks,
[EW]
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces
via regedit
You can use the netsh command to accomplish this:
That should give you manually assigned ipv4 interface information (active, inactive, or even removed interfaces). Replace with ipv6 if you need ipv6 interface information.
Result: