Ubuntu16.04下opendaylight的安装

时间:2024-04-02 13:58:12

本文主要参考点击打开链接,并做出相应的适应更改。

系统:ubuntu16.04-desktop

opendaylight:Carbon

1. 安装odl依赖包

  sudo apt-get update

  a)基础包

   sudo apt-get install unzip lrzsz

  b)jdk

sudo apt-get install openjdk-8-jdk

  c)设置java环境变量

     gedit /etc/environment

      文件最末尾增加一行:

      JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"

      当前终端需要退出ubuntu然后重新登入,才能加载该环境变量

2. 下载ODL包

从OpenDaylight官网下载:https://www.opendaylight.org/downloads

Ubuntu16.04下opendaylight的安装

3.解压ODL包(右键选择提取到此处即可)

4. 修改配置

进入distribution-karaf-0.6.1-Carbon目录, 修改etc/org.apache.karaf.management.cfg文件的以下两行内容:

rmiRegistryHost = 127.0.0.1

rmiServerHost = 127.0.0.1

5. 运行ODL

进入distribution-karaf-0.6.1-Carbon目录

./bin/karaf

Ubuntu16.04下opendaylight的安装

6. 安装功能组件

安装支持REST API的组件:

Ubuntu16.04下opendaylight的安装

安装L2 switch和OpenFlow插件:

Ubuntu16.04下opendaylight的安装

安装基于karaf控制台的md-sal控制器功能,包括nodes、yang UI、Topology:

Ubuntu16.04下opendaylight的安装

安装DLUX功能


Ubuntu16.04下opendaylight的安装

Ubuntu16.04下opendaylight的安装

7. 登陆管理WEB UI

http://localhost:8181/index.html

用户名和密码都是admin



本文参考至:

http://blog.csdn.net/rocson001/article/details/52460717

https://www.sdnlab.com/1931.html

http://docs.opendaylight.org/en/stable-carbon/getting-started-guide/installing_opendaylight.html