通过源码安装RYU控制器

安装

  • 安装pip3
sudo apt-get install python3-pip
  • 获取ryu源码
git clone https://github.com/osrg/ryu.git
  • 安装依赖
cd ryu
sudo pip3 install -r tools/pip-requires -i https://pypi.tuna.tsinghua.edu.cn/simple
  • 安装ryu
sudo python3 setup.py install

测试

  • 运行ryu控制器
ryu-manager ryu/app/simple_switch.py
  • 另开一个终端,运行mininet
sudo mn --controller=remote

成功的截图如下:

原文地址:https://www.cnblogs.com/multhree/p/11938765.html