zoukankan      html  css  js  c++  java
  • ONOS and mininet

    1、onos下载编译

    https://github.com/opennetworkinglab/onos

    1)下载源代码

    git clone https://gerrit.onosproject.org/onos

    2)下载编译工具

    sudo apt-get install software-properties-common -y &&
    sudo add-apt-repository ppa:webupd8team/java -y &&
    sudo apt-get update &&
    echo "oracle-java8-installer shared/accepted-oracle-license-v1-1 select true" | sudo debconf-set-selections &&
    sudo apt-get install oracle-java8-installer oracle-java8-set-default -y

    3)编译

    export ONOS_ROOT=$(pwd)
    tools/build/onos-buck build onos --show-output

    2、mininet下载编译

    http://mininet.org/download/

    1)下载源代码

    git clone git://github.com/mininet/mininet
    cd mininet
    git tag # list available versions
    git checkout -b 2.2.1 2.2.1 # or whatever version you wish to install
    cd ..

    2)编译

    mininet/util/install.sh -nfv -s mydir

    3)验证编译

    sudo mn --test pingall

    3、onos+mininet测试

    1)启动onos

    export ONOS_ROOT=$(pwd)

    tools/build/onos-buck run onos-local -- clean debug

    Options following the double-dash (–) are passed through to the ONOS Apache Karaf and can be omitted. Here, the clean option forces a clean installation of ONOS and the debug option means that the default debug port 5005 will be available for attaching a remote debugger.

    2)查看onos管理界面

    CLI:tools/test/bin/onos-gui localhost
    GUI: http://<host ip>:8181/onos/ui/index.html#/topo

    3) 启动onos的openflow和fwd模块,否则mininet无法连接

    在gui界面操作

    命令行界面:

    onos> feature:install onos-app-fwd

    4)启动mininet

     sudo mn --topo tree,depth=2,fanout=3 --controller remote,ip=127.0.0.1

    tree,depth=2,fanout=4
    torus,3,3
    tree,2,2

  • 相关阅读:
    Leetcode 15
    setjmp和longjmp重复使用的问题
    linux的下两种定时器实现
    linux中的信号处理
    【推荐软件】ack
    《代码大全》阅读心得二
    更换svn diff为vimdiff
    unpack的一点使用问题
    【lua】table是否为空的判断
    vi复制部分字符
  • 原文地址:https://www.cnblogs.com/soul-stone/p/8993882.html
Copyright © 2011-2022 走看看