安装控制件floodlight
在虚拟机里安装ubuntu
搜索software 修改源为阿里云
更新系统sudo apt-get updatesuda apt-get upgrade
在win10中下载java jdk的安装文件,在用xftp传到ubuntu中
www.oracle.com
xftp传文件
先打开ubuntu的22端口
sudo apt-get install openssh-serverip a
查看ubuntu的IP地址
打开xshell连接ubuntu
打开xftp连接ubuntu利用xftp把win里下好的jdk传到ubuntu
修改java的环境变量值
sudo gedit /etc/profile //修改文件 //此命令在超级终端执行不了,要在虚拟机里打开后在文件的最下方写入:
保存,退出
sourec /etc/profile /重启profile文件如重启不成功:
sudo dpkg-reconfigure dash 选on
在执行一遍source /etc/profile
jave -version #查看java环境是否配置完成
安装其他组件sudo apt-get install build-essential ant python-dev
安装floodlight
可以在pc上下载,在用Xftp传到ubuntu里github.comubuntu下载会很慢
安装git软件sudo apt-get install git
利用git下载floodlight控制器git clone git://github.com/Floodlight/Floodlight.gitcd Floodlightant #对Floodlight进行编译 #最好不要在xshell里编译出现“BUILD SUCCESSFUL”编译成功编译不成功:sudo apt install openjfx
启动floodlight前准备git pull origin mastergit submodule initgit submodule updateant
启动floodlight要cd到该文件夹下java -jar target/floodlight.jarhttp://192.168.80.132:8080/ui/pages/index.html启动成功后,到pc的谷歌浏览器打开localhost:8080/ui/pages/switches.html
pingall #创建拓扑