问题原文
原帖链接 · SQLRaptor · CC BY-SA 4.0
I've created a windows Hyper-V VM on a Windows 10 (X64) 2004 Pro host. I'm using the Hyper-V manager console, and the VM is working fine and has internet connectivity when using the default switch. I'm trying to configure it so that the VM receives IP address and gateway from the network DHCP, not from the Hyper-V. I've used the Virtual Switch Manager to create an 'external network' using the same NIC, but I can't find where to set the DHCP request from the VM to a "Pass through" mode so that it can access my LAN resources.
My LAN subnet is 192.168.x.x, and the VM receives an IP of 172.20.x.x from the Hyper-V DHCP I assume and therefore can't access my network resources.
Your advice will be highly appreciated.
已采纳解答
原帖链接 · SQLRaptor · CC BY-SA 4.0
Found the problem...
It's not enough to create the virtual switch, I must also shut down the VM, go to settings, and change the network configuration to explicitly use that switch. I assumed each one will be a connection in its own right, but I was wrong.
Thanks @Massimo for your thoughts.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
