Windows7可以配置虚拟网络接口吗?
设置虚拟接口
ifconfig eth0:0 ....
在 Linux 上,您可以使用以下命令
但他们谈论 VPN 或环回。 VPN 在我的情况下不起作用,因为我试图与一台我无法控制的位于硬连线子网上的机器通信,这不是我通过 dhcp 获得的子网。环回不起作用,因为它实际上并不与物理设备通信。
WinXP 上有一个 hack,可以让你通过破解注册表来覆盖 dhcp,但出于安全原因,它在 Win7 中被禁用。
On linux you can set up a virtual interface using
ifconfig eth0:0 ....
There's these questions:
How do you create a virtual network interface on Windows?
virtual network interface for windows
But they talk about vpn or loopback. VPN wont work in my situation as I'm trying to talk to a machine I don't have control over that sits on a hardwired subnet, which is not the one I get via dhcp. Loopback doesn't work as it doesn't actually talk to the physical device.
There's a hack on WinXP that lets you override dhcp by hacking the registry, but it was disabled in Win7 for security reasons.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
根据记录,我们在 $WORK 找到的唯一真正解决 Win7(嵌入式)问题的解决方案是源自 Microsoft 源代码的自定义 MUX(多路复用器)驱动程序。这让我们可以设置两个具有不同配置的不同虚拟适配器。
AddIPAddress 不允许您在 Win7 中使用 DHCP 将静态地址添加到适配器(它在 XP 中工作,但在 Vista 中禁用它)。
For the record, the only solution we found at $WORK that actually solved the problem on Win7 (embedded) is a custom MUX (multiplexer) driver derived from source from Microsoft. That let us set up two different virtual adapters with the different configurations.
AddIPAddress doesn't let you add a static address to an adapter using DHCP in Win7 (it works in XP, but they disabled it in Vista).
AddIPAddress 可以是用于向现有网络适配器添加新的 IP 地址(和子网掩码)。这应该可以让您与默认子网上不同子网上的计算机进行通信。
AddIPAddress can be used to add a new IP address (and subnet mask) to an existing network adaptor. This should let you talk to a computer on a different subnet to the default.