我配置了一个HyperV虚拟机,虚拟交换机中配置了一个【外部】虚拟交换机。但配置上之后,本机就连接不上网络了。
后来查找到 https://www.ubackup.com/enterprise-backup/hyper-v-vm-no-internet-jkzbj.html ,说是In Windows, a smaller InterfaceMetric value means a higher priority, so to solve no Internet on the local machine after running Hyper-V virtual machine, please 【lower the priority of the virtual network adapter】.
尝试了一下,在网络连接中找到了【网桥】,将网桥属性中的ipv4勾选上;
vEthernet(网桥)的属性-ipv4属性-高级中,设置跃点数是一个很小的数字(这里设置的是2)