重启vmnet8虚拟网卡即可(先禁用再启用)
或者使用以下bat脚本直接重启,注意右键管理员运行
@echo off
cls
color 0A
Echo ***************************************************************
Echo ----------正在重启VMnet8,请稍后
Echo ***************************************************************
cmd /c netsh interface ip set address name="VMware Network Adapter VMnet8" source=dhcp
cmd /c netsh interface ip set dns name="VMware Network Adapter VMnet8" source=dhcp
@netsh interface set interface "VMware Network Adapter VMnet8" disabled
@netsh interface set interface "VMware Network Adapter VMnet8" enable
Echo ***************************************************************
Echo ----------已重启成功!按任意键继续
Echo ***************************************************************
Pause