大网数据广告活动
服务器运维问答

Configuring Hyper-V on Windows 10 for pass-through DHCP

· 52CE 我爱测

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 t…

问题原文

原帖链接 · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-10-30)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。