如何在 Windows 上创建虚拟网络接口?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/47854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you create a virtual network interface on Windows?
提问by Readonly
On linux, it's possible to create a tun interface using a tun driver which provides a "network interface psuedo-device" that can be treated as a regular network interface. Is there a way to do this programmatically on windows? Is there a way to do this without writing my own driver?
在 linux 上,可以使用 tun 驱动程序创建 tun 接口,该驱动程序提供“网络接口伪设备”,可将其视为常规网络接口。有没有办法在 Windows 上以编程方式执行此操作?有没有办法在不编写自己的驱动程序的情况下做到这一点?
采纳答案by Dave Webb
You can do this on XP with the Microsoft Loopback Adapterwhich is a driver for a virtual network card.
您可以使用Microsoft Loopback Adapter在 XP 上执行此操作,该适配器是虚拟网卡的驱动程序。
On newer Windows version: Installing the Microsoft Loopback Adapter in Windows 8 and Windows Server 2012
在较新的 Windows 版本上:在 Windows 8 和 Windows Server 2012 中安装 Microsoft Loopback Adapter
回答by Andrew Burns
回答by Christopher Elliott
In the Singularity project, Microsoft research communicates with the singularity VM through a "loopback" adapter. Maybe that'd help?
在 Singularity 项目中,微软研究通过“环回”适配器与奇点 VM 进行通信。也许那会有帮助?
Running it is easy so it may be something fun to do anyway. :)
运行它很容易,所以无论如何它可能会很有趣。:)