Opendaylight Carbon(碳)版本安装
1.更新源
sudo apt-get update
sudo apt-get upgrade
2.安装JDK1.8
sudo apt-get install openjdk-8-jdk
可选JDK版本
sudo update-alternatives --config java
sudo update-alternatives --config javac
3.配置JDK环境变量
在/etc/profile文件末尾添加
export JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-i386
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
source /etc/profile
检查是否配置成功
echo ${JAVA_HOME}
java -version
4.下载ODL
wget https://nexus.opendaylight.org/content/repositories/public/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz
5.解压
tar -zxvf distribution-karaf-0.6.0-Carbon.tar.gz
6.运行
sudo ./bin/karaf
7.按顺序安装以下特性
feature:install odl-restconf
feature:install odl-l2switch-switch-ui
feature:install odl-openflowplugin-flow-services-ui
feature:install odl-mdsal-apidocs
feature:install odl-dluxapps-applications
8.输入网页访问,默认用户名密码为:admin/admin
`http://211.80.196.77:8181/index.html`
Mininet源码安装
git clone git://github.com/mininet/mininet
cd mininet
./util/install.sh -a
#测试
sudo mn --test pingall
#连接ODL测试
sudo mn --topo tree,3 --switch ovsk --controller=remote,ip=211.80.196.77,port=6633