• docker + onos(二)


    [root@host-10-10-18-131 onos]# docker search onos
    NAME                                        DESCRIPTION                                     STARS               OFFICIAL            AUTOMATED
    onosproject/onos                            ONOS is a SDN Network Operating System built…   53                                      [OK]
    sdnhub/onos                                 ONOS Docker distribution for version Blackbi…   5                                       [OK]
    maojianwei2020/onos_docker_cluster          Mao ONOS Cluster Instance in Docker, by Jian…   1                                       [OK]
    opensona/onos-sona-repo-build               An ONOS docker file that builds SONA applica…   0                                       [OK]
    breezestars/onos-p4                         The environment for ONOS user to develop P4 …   0                                       [OK]
    onosproject/golang-build                    Golang build environment for ONOS               0                                       
    onosproject/onos-ric                        RAN subsystem for ONOS (µONOS Architecture)     0                                       
    onosproject/onos-topo                                                                       0                                       
    onosproject/device-simulator                ONOS device simulator                           0                                       
    onosproject/onos-cli                                                                        0                                       
    onosproject/ran-simulator                   The Ran Simulator is part of µONOS and is me…   0                                       
    onosproject/onos-docs-manager                                                               0                                       
    opensona/onos-sona-nightly-docker           A nightly released docker image of stable ON…   0                                       [OK]
    onosproject/config-model-testdevice-2.0.0   Configuration model plugin for the testdevic…   0                                       
    onosproject/config-model-stratum-1.0.0      Configuration model plugin for the stratum v…   0                                       
    onosproject/onos-config                     ONOS configuration manager                      0                                       
    onosproject/config-model-testdevice-1.0.0   Configuration model plugin for the testdevic…   0                                       
    onosproject/onos-gui                        GUI implementation for µONOS Architecture       0                                       
    xosproject/onos-synchronizer                XOS ONOS Synchronizer                           0                                       
    onosproject/fabric-p4test                   Docker image to run PTF-based data plane tes…   0                                       
    onosproject/config-model-devicesim-1.0.0    Configuration model plugin for the devicesim…   0                                       
    matteoscandolo/onos                                                                         0                                       
    onosproject/onos-ric-ho                                                                     0                                       
    onosproject/onos-ric-mlb                                                                    0                                       
    onosproject/onos-ztp                        Zero Touch Provisioning application for ONOS    0                                       
    [root@host-10-10-18-131 onos]# docker pull onosproject/onos
    Using default tag: latest
    latest: Pulling from onosproject/onos
    5bed26d33875: Pull complete 
    f11b29a9c730: Pull complete 
    930bda195c84: Pull complete 
    78bf9a5ad49e: Pull complete 
    31ed92d6b49a: Downloading [============>                                      ]  59.02MB/230.6MB
    5673c3601cc3: Download complete 
    80ff15ecbcc0: Downloading [===>                                               ]  24.65MB/394.3MB
    docker run -i -t -p 0.0.0.0:6633:6633  -p 0.0.0.0:8181:8181  --name onos2  onosproject/onos

    1.运行ONOS之前,ONOS需要监听的端口号6653和6633有可能被其他进程占用,因此可以先检查一下端口使用情况:
    sudo netstat -atnp | grep 6653
    sudo netstat -atnp | grep 6633
    若除java进程外,有其他进程占用端口号6653或6633,例如:ovs-testcontrol,则杀死进程:
    sudo kill -9 <进程号>
    2.ONOS启动后,最好等待窗口中不再弹出INFO信息后,再运行Mininet

     

     

    karaf@root > devices                                                                                              
    karaf@root > log:exception-display                                                                                
    karaf@root > log:exception-display                                                                                
    karaf@root > hosts                                                                                                
    karaf@root > apps -s -a                                                                                           
    *  44 org.onosproject.drivers              2.5.0.SNAPSHOT Default Drivers
    * 118 org.onosproject.gui2                 2.5.0.SNAPSHOT ONOS GUI2
    karaf@root > app activate org.onosproject.openflow                                                                
    Activated org.onosproject.openflow
    karaf@root > pp activate org.onosproject.fwd                                                                      
    Error executing command onos:pp: too many arguments specified
    karaf@root > app activate org.onosproject.fwd                                                                     
    Activated org.onosproject.fwd
    karaf@root > apps -s -a
    *   7 org.onosproject.hostprovider         2.5.0.SNAPSHOT Host Location Provider
    *   8 org.onosproject.lldpprovider         2.5.0.SNAPSHOT LLDP Link Provider
    *   9 org.onosproject.optical-model        2.5.0.SNAPSHOT Optical Network Model
    *  10 org.onosproject.openflow-base        2.5.0.SNAPSHOT OpenFlow Base Provider
    *  11 org.onosproject.openflow             2.5.0.SNAPSHOT OpenFlow Provider Suite
    *  44 org.onosproject.drivers              2.5.0.SNAPSHOT Default Drivers
    * 114 org.onosproject.fwd                  2.5.0.SNAPSHOT Reactive Forwarding
    * 118 org.onosproject.gui2                 2.5.0.SNAPSHOT ONOS GUI2
    karaf@root > hosts                                                                                                
    karaf@root > devices                                                                                              
    id=of:0000000000000001, available=true, local-status=connected 43s ago, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.12.0, serial=None, chassis=1, driver=ovs, channelId=10.10.16.82:42374, managementAddress=10.10.16.82, protocol=OF_13
    id=of:0000000000000002, available=true, local-status=connected 43s ago, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.12.0, serial=None, chassis=2, driver=ovs, channelId=10.10.16.82:42378, managementAddress=10.10.16.82, protocol=OF_13
    id=of:0000000000000003, available=true, local-status=connected 43s ago, role=MASTER, type=SWITCH, mfr=Nicira, Inc., hw=Open vSwitch, sw=2.12.0, serial=None, chassis=3, driver=ovs, channelId=10.10.16.82:42376, managementAddress=10.10.16.82, protocol=OF_13
    karaf@root > links                                                                                                
    src=of:0000000000000001/1, dst=of:0000000000000002/3, type=DIRECT, state=ACTIVE, expected=false
    src=of:0000000000000001/2, dst=of:0000000000000003/3, type=DIRECT, state=ACTIVE, expected=false
    src=of:0000000000000002/3, dst=of:0000000000000001/1, type=DIRECT, state=ACTIVE, expected=false
    src=of:0000000000000003/3, dst=of:0000000000000001/2, type=DIRECT, state=ACTIVE, expected=false
    karaf@root >

  • 相关阅读:
    js快速排序
    蛇形数组
    大臣的旅费
    1724ROADS
    2738:实数加法
    完整版高精度计算(整理后的)
    2737:大整数除法
    2980:大整数乘法
    2736大整数减法,3180 整数减法
    2981:大整数加法
  • 原文地址:https://www.cnblogs.com/dream397/p/13182247.html
Copyright © 2020-2023  润新知