且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

WINDOWS HYPER-V加新网卡,设置网络出错

更新时间:2022-01-29 15:11:11

新网卡加入,设置好IP之后,HYPER-V需要更改相应外部网络连接,然后重新生成新的虚拟连接网卡。

不然,虚拟机无法正常使用网络。

但我昨天在绑定新的网站时,出现如下错误:

Adding a new External Virtual Network fails with error “…already bound to another virtual network”

WINDOWS HYPER-V加新网卡,设置网络出错

 

网上解决办法如下:

 

Adding a new External Virtual Network fails with error “…already bound to another virtual network”

04 Apr

In Hyper-V, in the Virtual Network Manager, you are adding a new EXTERNAL virtual Network.

After selecting the physical network card to bind it to your virtual network, you click “Apply” or “OK”.

You receive the following error message:

Error Applying New Virtual Network Changes

Binding to External Ethernet failed

Cannot bind to my_nic because it is already bound to another virtual network

To fix this issue, close your Virtual Network Manager and run the command line with administrative privilege. Type:

netcfg -u vms_pp

netcfg -l c:\windows\winsxs\amd64_wvms_pp.inf_31bf3856ad364e35_6.1.7600.16385_none_beda85050b13680c\wvms_pp.inf -c p -i vms_pp

Open the Virtual Network Manager again, and add your external virtual network.

The operation shall be successful now.

In my case, the issue happened after a physical failure of the server: I had to disable two faulty NICs in the BIOS and when restarting the server, Hyper-V got lost in the mapping of the virtual networks and the remaining NICs. So I removed all external virtual networks and tried to recreate each. And I had the error at the recreation.