简体   繁体   English

是否可以在Windows7上配置虚拟网络接口?

[英]Is it possible to configure a virtual network interface on Windows7?

On linux you can set up a virtual interface using 在Linux上,您可以使用以下命令设置虚拟接口

ifconfig eth0:0 ....

There's these questions: 有以下问题:

How do you create a virtual network interface on Windows? 如何在Windows上创建虚拟网络接口?

virtual network interface for windows Windows的虚拟网络接口

But they talk about vpn or loopback. 但是他们谈论的是vpn或回送。 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. 在我的情况下,VPN无法正常工作,因为我正试图与一台我无法控制的计算机进行通信,该计算机位于一个硬连接的子网中,而这不是我通过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. WinXP上有一个黑客,可让您通过黑客入侵注册表来覆盖dhcp,但出于安全原因,它已在Win7中被禁用。

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. 记录下来,我们在$ WORK上发现的唯一解决了Win7(嵌入式)问题的解决方案是自Microsoft衍生的自定义MUX(多路复用器)驱动程序。 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不允许您在Win7中使用DHCP向适配器添加静态地址(在XP中适用,但在Vista中禁用了该功能)。

AddIPAddress can be used to add a new IP address (and subnet mask) to an existing network adaptor. AddIPAddress可用于将新的IP地址(和子网掩码)添加到现有的网络适配器。 This should let you talk to a computer on a different subnet to the default. 这应该使您可以与默认子网不同的子计算机上的计算机通信。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM