OpenVSwitch简单容易入门
2015-06-08 13:36
190 查看
OVS… its simple really!
It’s taken me almost a week to figure out how they expect the OVS networking to work, and no one explains its simple. So heres a 30 second explanation that will actually make sense.You have 3 openvswitch bridges, br-int, br-ex and br-tun.
The VM all get ports on br-int, br-ex is used for actual network traffic and br-tun is used for the tunnel interfaces between instances.
OpenVSwitch creates flow rules with virtual patch cables between br-ex and br-int to provide connectivity.
Add your physical interfaces to br-ex, create a management port with type internal so linux can add ips to it. In the below example we use load balancing to combine 2 nics for redundancy.
Commands to build this configuration:
ovs-vsctl add-br br-exovs-vsctl add-br br-int
ovs-vsctl add-br br-tun
ovs-vsctl add-bond br-ex bond0 em1 em2 — set port bond0 bond_mode=balance-slb
ovs-vsctl add-port br-ex mgmt tag=15 — set interface mgmt type=internal
What it should look like:
[root@s2138 ~]# ovs-vsctl show0646ec2b-3bd3-4bdb-b805-2339a03ad286
Bridge br-ex
Port “team0″
Interface “team0″
Port br-ex
Interface br-ex
type: internal
Port mgmt
tag: 15
Interface mgmt
type: internal
Port “bond0″
Interface “em1″
Interface “em2″
Port mgmt-temp
tag: 2003
Interface mgmt-temp
type: internal
Bridge br-int
fail_mode: secure
Port br-int
Interface br-int
type: internal
Bridge br-tun
Port br-tun
Interface br-tun
type: internal
相关文章推荐
- Mega Dropdown - 带子分类的响应式下拉菜单
- 不错的Openstack架构介绍
- Linux服务器上安装resin
- Centos 6.5 x64 yum 源
- 安装LNMP环境,centos7
- nginx反向代理,负载均衡
- Tomcat相关(一)***Eclipse下配置tomcat
- 一个IP支持多个网站实例(Apache2、Ubuntu相关)
- Linux内存管理之mmap详解
- 【Linux】linux经常使用基本命令
- Nginx的Rewrite设置及示例
- CGContextAddArc与CGContextAddArcToPoint参数解析
- apache出现open_basedir错误
- Android自动化测试之MonkeyRunner-之getProperty、getSystemProperty(十三)
- Linux 中 vi / vim 编辑器的简单介绍后续增加强大的功能
- s5pv210 linux3.8.3内核移植之二:Uncompressing Linux... done, booting the kernel.问题解决
- linux 系统监控、诊断工具之 lsof 用法简介
- Linux编程实现守护进程
- linux常见命令 优秀
- OpenResty(Nginx)+Lua+GraphicsMagick实现缩略图功能