zoukankan      html  css  js  c++  java
  • 鲲鹏920上安装ovs

    配置yum源

    curl -O  http://mirrors.aliyun.com/repo/Centos-7.repo 

    1、 安装依赖包

    yum install -y python-six selinux-policy-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool

    2、 wget https://www.openvswitch.org/releases/openvswitch-2.12.0.tar.gz

    3、 mkdir -p ~/rpmbuild/SOURCES 

     cp openvswitch-2.12.0.tar.gz ~/rpmbuild/SOURCES/

    tar -xvf openvswitch-2.12.0.tar.gz 

     4、 rpmbuild -bb --without check openvswitch-2.12.0/rhel/openvswitch.spec

     5、 yum install -y python-sphinx unbound-devel

    6、 rpmbuild -bb --without check openvswitch-2.12.0/rhel/openvswitch.spec

     7、 yum localinstall -y ~/rpmbuild/RPMS/aarch64/openvswitch-2.12.0-1.aarch64.rpm

    8、  systemctl start  openvswitch.service

     编译bug

    [root@kunpeng82 ~]#  rpmbuild -bb --without check ovs/rhel/openvswitch.spec
    error: Failed build dependencies:
            python3-sphinx is needed by openvswitch-2.13.90-1.aarch64
            unwind-devel is needed by openvswitch-2.13.90-1.aarch64
    [root@kunpeng82 ~]# yum -y install python3-sphinx  

     Bad exit stat

    OVS 的版本信息、 OpenFlow 协议的版本 

    OVS的卸载和升级
    https://github.com/mininet/mininet/wiki/Installing-new-version-of-Open-vSwitch
    
    当出现如下问题时
    ovs-vsctl: unix:/usr/var/run/openvswitch/db.sock: database connection failed (Connection refused)
    解决办法为:sudo /usr/share/openvswitch/scripts/ovs-ctl start
    
     
    ovs-appctl (Open vSwitch) 2.12.0
    [root@kunpeng82 devuser]# ovs-ofctl --version
    ovs-ofctl (Open vSwitch) 2.12.0
    OpenFlow versions 0x1:0x6

    查看 OVS 支持的 OpenFlow 协议的版本,其中0x1代表OpenFlow1.0,0x4代表OpenFlow1.3

    [root@kunpeng82 devuser]# ovs-ofctl -O OpenFlow12 dump-groups vswitch0
    OFPST_GROUP_DESC reply (OF1.2) (xid=0x2):
    [root@kunpeng82 devuser]# ovs-ofctl -O OpenFlow13 dump-groups vswitch0
    OFPST_GROUP_DESC reply (OF1.3) (xid=0x2):
    [root@kunpeng82 devuser]# ovs-ofctl -O OpenFlow14 dump-groups vswitch0
    OFPST_GROUP_DESC reply (OF1.4) (xid=0x2):

    [root@kunpeng82 devuser]# ovs-ofctl -O OpenFlow16 dump-groups vswitch0
    ovs-ofctl: Unknown OpenFlow version: "OpenFlow16"
    [root@kunpeng82 devuser]# ovs-ofctl -O OpenFlow15 dump-groups vswitch0
    OFPST_GROUP_DESC reply (OF1.5) (xid=0x2):

     

    ovs 总体框架

     

  • 相关阅读:
    URAL 2046 A
    URAL 2056 Scholarship 水题
    Codeforces Gym 100286I iSharp 水题
    Codeforces Gym H. Hell on the Markets 贪心
    Codeforces Gym 100286G Giant Screen 水题
    Codeforces Gym 100286B Blind Walk DFS
    Codeforces Gym 100286F Problem F. Fibonacci System 数位DP
    Codeforces Gym 100286A. Aerodynamics 计算几何 求二维凸包面积
    Codeforces Gym 100418K Cards 暴力打表
    Codeforces Gym 100418J Lucky tickets 数位DP
  • 原文地址:https://www.cnblogs.com/dream397/p/12299447.html
Copyright © 2011-2022 走看看