如何创建L2网桥 [英] How to create L2 bridges

查看:188
本文介绍了如何创建L2网桥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在努力寻找一些命令行工具,用于在网络接口(物理和虚拟)之间创建L2网桥,但我找不到任何东西。我发现,如何创建桥梁的唯一方法是使用鼠标并单击。

I've been trying to find some command line tool for creating L2 bridges between network interfaces (both physical and virtual), but I couldn't find anything. What I found out is that the only way how to create the bridges is using a mouse and clicking.

我需要一个命令行工具来自动执行此过程。显然在创建桥时会从GUI调用一些API,但它似乎没有文档,因此我甚至无法创建自己的工具。

I need a command line tool to automate this process. Obviously there is some API that is called from the GUI when creating the bridges, but it seems to be undocumented so I can't even create my own tool.

Windows中也有vmswitch 2008年和2012年使用WFP和NDIS来创建桥梁。但是,我不确定vmswitch是否也可以在其他版本的Windows中使用(主要在Windows 7中)。

There is also vmswitch in Windows 2008 and 2012 that uses WFP and NDIS that is used for creation of the bridges. However, I'm not sure if the vmswitch can be used in other versions of Windows as well (mainly in Windows 7).

如何开发用于创建L2网桥的工具的任何想法在Win 7,8和2012中?

Any ideas how to develop a tool for creation of L2 bridges in Win 7, 8 and 2012?

推荐答案

"NetSh.exe Bridge"是否存在?上下文满足您的需求?您提到的WFP图层是专为过滤而设计的。虽然可以使用您提到的层桥接连接,但使用现有的内置桥接组件会更容易。
此外,这些图层仅适用于Win8 +。希望这会有所帮助,
Does the "NetSh.exe Bridge" context meet your needs? The WFP Layers you mentioned are designed for filtering. While it may be possible to bridge connections using the layers you mention, it would be easier to use the existing built-in bridging component. Additionally these layers are only available in Win8+. hope this helps,


这篇关于如何创建L2网桥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆