Windows7可以配置虚拟网络接口吗?

发布于 2025-01-04 12:45:49 字数 531 浏览 8 评论 0原文

设置虚拟接口

ifconfig eth0:0 ....

在 Linux 上,您可以使用以下命令

如何在 Windows 上创建虚拟网络接口?

Windows 的虚拟网络接口

但他们谈论 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

慈悲佛祖 2025-01-11 12:45:49

根据记录,我们在 $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).

阳光下的泡沫是彩色的 2025-01-11 12:45:49

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文