一.opendaylight 源码下载编译
1.下载地址
git clone https://git.opendaylight.org/gerrit/p/controller.git
2. 编译源码
maven
java 1.7 (1.6 编译不过)
cd opendaylight/distribution/opendaylight/ mvn clean install
3.运行
cd controller/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight/ ./run.sh
run.bat 用于在window下运行
这是就应该能从浏览器上访问到了:
二. mininet 下载
mininet 是一个网络模拟环境,支持openflow,可以源码编译安装,也可以利用其提供的虚拟机环境,下面是虚拟机环境的下载地址:
https://github.com/mininet/openflow-tutorial/wiki#Overview
需要的软件
1.virtualbox 加载上述的虚拟机镜像。
2.ssh 终端 如putty
3. x server 支持图形界面
virtualbox 装载镜像需要两个网卡,一个NAT interface 用于上网,另一个 host-only interface 用于本地通讯
$ ifconfig -a ------可以显示所有的网卡,当网卡没有配置ip的时候,ifconfig是不会显示出来的
$ sudo dhclient ethX -------自动为相应的网卡分配ip
putty ssh访问时 需要设置x11 ,才能显示图像界面,如mininet自带的wireshark
Gtk-WARNING **: cannot open display: :0.0 -------发生这种错误时,可能是X server 没有安装好。