How can I connect two bridges (eg br0 and br1)?
来源:互联网 发布:金铅笔网络运营 编辑:程序博客网 时间:2024/05/16 10:52
http://openvswitch.org/pipermail/discuss/2013-April/009734.html
On Tue, Apr 23, 2013 at 11:06:54AM -0400, Jose Alberto Posada wrote:> How can I connect two bridges (eg br0 and br1)?> In order that the VMs on a switch (br0) to communicate with the VMs on> the other switch (br1).Q: How do I connect two bridges?A: First, why do you want to do this? Two connected bridges are not much different from a single bridge, so you might as well just have a single bridge with all your ports on it. If you still want to connect two bridges, you can use a pair of patch ports. The follow example creates bridges br0 and br1, adds eth0 and tap0 to br0, adds tap1 to br1, and then connects br0 and br1 with a pair of patch ports. ovs-vsctl add-br br0 ovs-vsctl add-port br0 eth0 ovs-vsctl add-port br0 tap0 ovs-vsctl add-br br1 ovs-vsctl add-port br1 tap1 ovs-vsctl \ -- add-port br0 patch0 \ -- set interface patch0 type=patch options:peer=patch1 \ -- add-port br1 patch1 \ -- set interface patch1 type=patch options:peer=patch0 Bridges connected with patch ports are much like a single bridge. For instance, if the example above also added eth1 to br1, and both eth0 and eth1 happened to be connected to the same next-hop switch, then you could loop your network just as you would if you added eth0 and eth1 to the same bridge (see the "Configuration Problems" section below for more information). If you are using Open vSwitch 1.9 or an earlier version, then you need to be using the kernel module bundled with Open vSwitch rather than the one that is integrated into Linux 3.3 and later, because Open vSwitch 1.9 and earlier versions need kernel support for patch ports. This also means that in Open vSwitch 1.9 and earlier, patch ports will not work with the userspace datapath, only with the kernel module.
0 0
- How can I connect two bridges (eg br0 and br1)?
- Docker: how to connect two bridges
- How can I connect to Android with ADB over TCP?
- How can I pass data between two levels?
- how can i read chm and pdf files
- What is overfitting and how can I avoid it?
- 变化太快,how can I do and change it?
- How can I convert NSDictionary to NSData and vice versa?
- How can I convert NSDictionary to NSData and vice versa?
- How Do I Compare Two Files and Show The Differences?
- How Can I Stop
- How can I connect Unity to an SQL database in order to implement an MMO?
- How can I run two Django versions in the same server?
- How can I overload the prefix and postfix forms of operators ++ and --
- How can i get FWHM?
- How to configure FreeNAS 8 for iSCSI and connect to ESX(i)
- How can I convert a QString to char* and vice versa ?
- How can I display the chevron for toolbar and open dropdowned popup menu with invisible buttons?
- webView使用内部浏览器加载网页
- 解析XML文件并且进行增删改查操作
- Dockerfile: ADD vs COPY
- 有关jsp-title乱码的可能之一之解决
- xcode 'xxx.app' couldn't be opened because you don't have permission to view it
- How can I connect two bridges (eg br0 and br1)?
- 短信验证码接收工具的运行原理及app安装流程
- P1003越野跑
- 2016/10/26
- 基于HttpUrlConnection的简单封装SimpleHttp
- MySQL 处理重复数据
- 【Eclipse】Eclipse中如何修改中文字体
- UIDatePicker
- c非标准库参考4-信号和管道