Open vSwitch安装

安装好操作系统

# lsb_release -a
LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty

安装依赖包

apt-get install -y build-essential fakeroot debhelper \autoconf automake bzip2 libssl-dev \openssl graphviz python-all procps \python-qt4 python-zopeinterface \python-twisted-conch libtool

下载最新版本openvswitch

wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz

tar –zxvf openvswitch-2.3.1.tar.gz

cd openvswitch-2.3.1/

可以用# dpkg-checkbuilddeps检查下是否依赖包已经安装完毕

构建安装包

DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary

查看已经构建完成的包

# ls
openvswitch-2.3.1                            openvswitch-dbg_2.3.1-1_amd64.deb     openvswitch-vtep_2.3.1-1_amd64.deb
openvswitch-2.3.1.tar.gz                     openvswitch-ipsec_2.3.1-1_amd64.deb   python-openvswitch_2.3.1-1_all.deb
openvswitch-common_2.3.1-1_amd64.deb         openvswitch-pki_2.3.1-1_all.deb
openvswitch-datapath-dkms_2.3.1-1_all.deb    openvswitch-switch_2.3.1-1_amd64.deb
openvswitch-datapath-source_2.3.1-1_all.deb  openvswitch-test_2.3.1-1_all.deb

安装openvswitch 2.3.1

dpkg -i openvswitch-common_2.3.1-1_amd64.deb  openvswitch-switch_2.3.1-1_amd64.deb

查看内核模块是否加载

# lsmod | grep open
openvswitch            65844  0
gre                    13796  1 openvswitch
vxlan                  37629  1 openvswitch
libcrc32c              12644  1 openvswitch

查看openvswitch版本

# ovs-vsctl -V
ovs-vsctl (Open vSwitch) 2.3.1
Compiled Mar 14 2015 15:37:45
DB Schema 7.6.2

查看OVS进程是否启动

# ps -ef | grep ovs | grep -v grep
root       1526      1  0 07:59 ?        00:00:00 ovsdb-server: monitoring pid 1527 (healthy)
root       1527   1526  0 07:59 ?        00:00:00 ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info --remote=punix:/var/run/openvswitch/db.sock --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir --log-file=/var/log/openvswitch/ovsdb-server.log --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach --monitor
root       1536      1  0 07:59 ?        00:00:00 ovs-vswitchd: monitoring pid 1537 (healthy)
root       1537   1536  0 07:59 ?        00:00:02 ovs-vswitchd unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/log/openvswitch/ovs-vswitchd.log --pidfile=/var/run/openvswitch/ovs-vswitchd.pid --detach –monitor

Open vSwitch基本操作

创建一个名为br0的网桥

# ovs-vsctl add-br br0

查看创建的网桥

# ovs-vsctl list-br
br0

将网卡接口 eth0 加入 br0

ovs-vsctl add-port br0 eth0

如果服务器就一个网卡且是远程操作此时肯定会断网,建议写条语句操作。这边是虚拟机断网之后通过管理窗口进去修改配置文件

# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopbackauto br0
iface br0 inet dhcpauto eth0
iface eth0 inet manual
up ifconfig $IFACE 0.0.0.0 up
down ifconfig $IFACE down

重启下网络就可以了。查看信息。以下信息是我添加了br1以及连接controller之后的信息。

# ovs-vsctl show
d0a719d3-310d-4863-ab52-b64378f03400Bridge "br1"Port "br1"Interface "br1"type: internalBridge "br0"Controller "tcp:192.168.136.129:6653"is_connected: truePort "eth0"Interface "eth0"Port "br0"Interface "br0"type: internalovs_version: "2.3.1"

Floodlight安装管理

安装jdk和ant软件环境包

 apt-get install build-essential default-jdk ant python-dev 

一般网上教程都是git clone,我试过ant时编译报错,不知道是系统版本问题不,我就直接在github下载floodlight-master.zip包进行编译启动就没有问题。

下载解压之后

# cd floodlight-master/
# ant
# java -jar target/floodlight.jar

运行成功后查看端口

# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN
tcp6       0      0 :::8080                 :::*                    LISTEN
tcp6       0      0 127.0.0.1:6642          :::*                    LISTEN
tcp6       0      0 :::22                   :::*                    LISTEN
tcp6       0      0 ::1:631                 :::*                    LISTEN
tcp6       0      0 :::6653                 :::*                    LISTEN
tcp6       0      0 :::6655                 :::*                    LISTEN     

转载于:https://www.cnblogs.com/yudar/p/4626628.html

Ubuntu 14.04.02 安装openvswitch-2.3.1相关推荐

  1. linux svn可视化,Ubuntu 14.04如何安装可视化SVN

    Ubuntu 14.04下安装可视化SVN过程笔记.首先打开终端 1. sudo add-apt-repository ppa:rabbitvcs/ppa 上面的地址在http://wiki.rabb ...

  2. ubuntu14.04安装linux公社,Ubuntu 14.04下安装IT++

    Ubuntu 14.04 下安装 IT++(itpp)(官方二进制包安装版) 温馨提示:虽然没有尝试,不过直接运行最后一步应该也可以成功. 另外,既然有简单的方法,不到破不得以还是不要尝试麻烦的方法了 ...

  3. 如何在Ubuntu 14.04上安装MySQL

    如何在Ubuntu 14.04上安装MySQL 介绍 MySQL是一个开源数据库管理系统,通常作为流行的LAMP(Linux,Apache,MySQL,PHP / Python / Perl)堆栈的一 ...

  4. 在Ubuntu 14.04上安装 Webmin

    在Ubuntu 14.04上安装 Webmin Webmin是一个开源的基于网页的Unix/Linux系统管理工具.通过使用Webmin,你可以在浏览器上设置和安装所有的系统服务,包括:DNS.DHC ...

  5. Ubuntu 14.04 英文版安装中文输入法

    Ubuntu 14.04 英文版安装中文输入法 本记录安装的仍是ibus的输入法,记录于此,以备忘记之用: 首先更新语言支持,更新完成之后就有了中文输入法: 然后在settings/text entr ...

  6. Ubuntu 14.04 T430s 安装指纹识别

    Ubuntu 14.04 T430s 安装指纹识别软件 1.添加PPA & 更新系统 sudo add-apt-repository ppa:fingerprint/fprint sudo a ...

  7. Ubuntu 14.04 LTS 安装配置搜狗拼音输入法

    Ubuntu 14.04 LTS 安装配置搜狗拼音输入法 最近重装了N次系统,每次重装都要重新搜狗拼音输入法还有一系列文件.懒得再查别的文档,所以此处自己记录安装流程,下次直接搜自己博客按照流程安装就 ...

  8. Ubuntu 14.04 下安装Skype

    操作1: Ubuntu 14.04 下安装Skype,使用 Ctr+Alt+T组合键打开终端Terminal,输入如下即可: wget -O skype.deb http://download.sky ...

  9. 怎样在ubuntu 14.04上安装轻量级的Budgie桌面

    怎样在ubuntu 14.04上安装轻量级的Budgie桌面 如果你在推特上关注了我们,你可能看见了我们最近分享的一张截图,和这张截图一起的还有对它所展示的桌面进行命名的邀请. 你猜对了吗? 答案就是 ...

最新文章

  1. win7多国语的安装说明
  2. 【小白学习C++ 教程】十四、C++ 中预处理器
  3. npm包的上传npm包的步骤,与更新和下载步骤
  4. unity让对象作为参数_unity-container – 一个unity容器可以将自身的引用作为构造函数参数传递吗?...
  5. Ext Gantt Web甘特图--自定义任务树
  6. python获取国内IP地址合集下发至网络设备
  7. 微软雅黑的字体设置css,css如何设置字体为微软雅黑
  8. RPM包安装MYSQL
  9. android隐藏关闭软键盘
  10. 中国再生聚酯纤维市场运营现状及投资战略分析报告2022-2028年
  11. 构建城市三维信息模型(CIM)与数字孪生城市可视化技术 优锘ThingJS
  12. 微信小程序开发教程(破解版IDE 无内测资格也可使用)
  13. TCGA 临床数据 表型 phenotype 各列的含义
  14. 3Com公司不打算与华为共享敏感技术
  15. python输出价目表-黑马python培训要多少钱?
  16. 百度地图安卓版详细接入流程解读(获取密钥详解)
  17. 解决Chrome不支持NPAPI插件的方法(贴吧旺旺等)
  18. ARM、MCU、DSP、FPGA、SOC各是什么?区别是什么?(转)
  19. 数据库设计(建模)PowerDesigner
  20. CNN卷积神经网络学习过程(权值更新)

热门文章

  1. 微信抢红包的方案_免费公开实收20000的烤鸭店营销方案,餐饮行业可复用
  2. 2019年 ICPC亚洲区预赛(上海赛区)总结
  3. 曼哈顿距离最小生成树
  4. 如何使用busybox编译和生成最简linux根文件系统(rootfs)
  5. 服务器端 python pdb 调试
  6. TensorFlow(八)激活函数
  7. apache beam_Apache Beam ML模型部署
  8. 一种数据结构 跳表skiplist
  9. Windows® CE 系统中的同步机制
  10. java 获取注释_Java面试题Java语言有哪些注释的方式?