What is Open vSwitch?

Open vSwitch is a production quality, multilayer virtual switch licensed under the open source Apache 2.0 license.  It is designed to enable massive network automation through programmatic extension, while still supporting standard management interfaces and protocols (e.g. NetFlow, sFlow, IPFIX, RSPAN, CLI, LACP, 802.1ag).  In addition, it is designed to support distribution across multiple physical servers similar to VMware's vNetwork distributed vswitch or Cisco's Nexus 1000V. See full feature list here

1.安装依赖软件包,及创建普通用户ovs。
yum -y install wget gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool
adduser ovs
su - ovs

2.下载源码包,并创建rpm包。
mkdir -p ~/rpmbuild/SOURCES
wget http://openvswitch.org/releases/openvswitch-2.3.2.tar.gz
cp openvswitch-2.3.2.tar.gz ~/rpmbuild/SOURCES/
tar xfz openvswitch-2.3.2.tar.gz
sed 's/openvswitch-kmod, //g' openvswitch-2.3.2/rhel/openvswitch.spec > openvswitch-2.3.2/rhel/openvswitch_no_kmod.spec
rpmbuild -bb --nocheck openvswitch-2.3.2/rhel/openvswitch_no_kmod.spec
exit

3.创建ovs配置目录,并安装制作好的rpm包。
mkdir /etc/openvswitch
yum localinstall /home/ovs/rpmbuild/RPMS/x86_64/openvswitch-2.3.2-1.x86_64.rpm

4.如果selinux开启,请执行如下操作,如未开启,请略过此步骤。
yum install policycoreutils-python
semanage fcontext -a -t openvswitch_rw_t "/etc/openvswitch(/.*)?"
restorecon -Rv /etc/openvswitch

5.启动服务,并查看ovs版本信息。

chkconfig openvswitch on
systemctl restart openvswitch.service
ovs-vsctl -V

参考文档:

博客:https://n40lab.wordpress.com/2015/06/28/centos-7-installing-openvswitch-2-3-2-lts/

官方文档:http://openvswitch.org/

最新文章

  1. vue-cli
  2. Python读写文件
  3. 7 -- Spring的基本用法 -- 1...2
  4. Linq学习总结2--Linq to XML
  5. centos 安装 mysql5.6
  6. POI给Excel添加数字筛选
  7. TODO Auto-generated method stub
  8. 浅析LruCache原理
  9. M2M
  10. delphi 基础之二 面向对象概念初步
  11. SQL2005 安装时 “性能监视器计数器要求(错误)” 解决方案
  12. bulk insert data into database with table type .net
  13. Codeforces Round #253 (Div. 1) (A, B, C)
  14. 第3章 Java语言基础----成员变量与局部变量
  15. (纪念第一道完全自己想的树DP)CodeForces 219D Choosing Capital for Treeland
  16. 桥接模式-Bridge(Java实现)
  17. QQ现状深度剖析:你还认为QQ已经被微信打败了吗?
  18. 每个JavaScript工程师都应懂的33个概念
  19. Java 8 – MinguoDate examples
  20. 论文阅读: End-to-end Learning of Action Detection from Frame Glimpses in Videos

热门文章

  1. 3种用组策略将域帐号加入本地管理员组的方法_jinifly_新浪博客
  2. How to: Fix a network printer suddenly showing as offline in Windows Vista, 7 or 8 « Robin's Blog
  3. 【新产品发布】【GK101 10MHz任意波发生器】
  4. linux网卡设置详解
  5. 如何用Apache POI操作Excel文件-----如何对一个单元格加注解?
  6. redmine问题
  7. 运维工程师必会的109个Linux命令
  8. java-访问权限
  9. C#创建Excel
  10. 【转载】loadrunner使用system()函数调用Tesseract-OCR识别验证码遇到的问题