If you have moved a HyperV VHDx file to a new server, built a new VM using that drive and then tried to set the previous static IP Address on it, you will receive the following error:
The IP address XXX.XXX.XXX.XXX you have entered for this network adapter is already assigned to another adapter.
Usually I just click YES to:
Do you want to remove the static IP configuration from the absent adapter?
but today, I decided to dig in and simply remove the dead adaptor. Fortunately this is quite easy to do:
- Start a CMD prompt as an admin
- Type: set devmgr_show_nonpresent_devices=1 and press ENTER
- Type DEVMGMT.MSC and press ENTER
- In Device Manager, click VIEW then SHOW HIDDEN DEVICES
- Expand NETWORK ADAPTORS
- Right click on each greyed out NIC and select UNINSTALL
- Close all of the Windows (including your IP, Network and Sharing Center…)
- Now try to change the IP and all will be happy.
If you want more details, see: https://support.microsoft.com/en-us/kb/269155
0 Comments