本博客是本人亲自实践,非本人同意,请勿转载!!!!!!!!!!!!!!!
********************************************************************************************************************************************************
我用的是Ubuntu16.04,如何安装jdk在本博客中提过。
Floodlight v1.2 and Below
在16.04中,jdk是openjdk-8-jdk
SDNLAB中的安装步骤不知为何是不对的,所以再这里再写一个详细的安装步骤。
Floodlight Master and Above
sudo apt-get install build-essential ant maven python-dev
Floodlight v1.2 and Below
sudo apt-get install build-essential openjdk-8-jdk ant maven python-dev eclipse
先下载floodlight-1.2安装包,可以用源码下载
$ git clone git://github.com/floodlight/floodlight.git
$ cd floodlight(我下载的在Downloads/floodlight-1.2下面,所以是cd /Downloads/floodlight-1.2)
$ git submodule init
(可能会出错,fatal:等。解决办法:1.sudo init
2.再按照 sudo submodule init)
$ git submodule update
$ ant
$ sudo mkdir /var/lib/floodlight
$ sudo chmod 777 /var/lib/floodlight
Running Floodlight in the Terminal
Assuming java is in your path,you can directly run the floodlight.jar file produced by ant from within the floodlight directory:
$ java -jar target/floodlight.jar |
查看PC上floodlight信息,可以发现有OpenFlow Switch与之相连。进入http://localhost:8080/ui/index.html
可以登录floodligt的web界面。如下图:
mininet
和mininet相连
启动装有mininet的虚拟机
sudo mn --controller=remote,ip=192.168.48.140,port=6633
pingall
如果ping通,则可以建立连接。
原文链接:https://www.f2er.com/ubuntu/355069.html