我们使用下载Ryu源代码进行那个安装

 Ryu官方文档:http://ryu.readthedocs.io/en/latest/

 Ryu电子书:http://osrg.github.io/ryu/resources.html

git clone git://github.com/osrg/ryu.git
cd ryu
sudo pip install -r tools/pip-requires
sudo python setup.py install

 使用mininet自定义网络拓扑mytopo.py:

from mininet.topo import Topo

class MyTopo(Topo):
def __init__(self):
Topo.__init__(self)
leftHost=self.addHost('h1')
rightHost=self.addHost('h2')
leftSwitch=self.addSwitch('s3')
rightSwitch=self.addSwitch('s4') self.addLink(leftHost,leftSwitch)
self.addLink(leftSwitch,rightSwitch)
self.addLink(rightSwitch,rightHost) topos={'mytopo':(lambda : MyTopo())}

 启动一个Terminal:

sudo ryu-manager example_switch_13.py 

 在另一个Terminal中输入:

sudo mn --custom mytopo.py --topo mytopo --mac --controller remote

最新文章

  1. Myeclipese建立servelet时出现带有javax.servlet.http.HttpServlet;变成了红色的解决方法
  2. mysql实用操作
  3. [OpenCV] 3、直线提取 houghlines
  4. TypeError: Cannot read property 'root' of null
  5. 武汉科技大学ACM :1007: 华科版C语言程序设计教程(第二版)习题7.10
  6. oracle 物化视图 job
  7. MYSQL 数据库导入导出命令
  8. Protobuf-java maven配置
  9. 前向分步算法 && AdaBoost算法 && 提升树(GBDT)算法 && XGBoost算法
  10. 使用css设置三角形
  11. Spark GraphX快速入门
  12. Java第一次实训
  13. os.rename 和os.replace
  14. android rc文件分析
  15. [转]Python中yield的解释
  16. <Linux> SSH配置之后 SHH slave1 测试 error:SSH: command not found
  17. 阿里巴巴Java开发规范---个人总结
  18. Zookeeper使用实例——分布式共享锁
  19. C++回调:利用函数指针
  20. atom / vscode (配置c++环境流程)

热门文章

  1. 使用 CliWrap 让C#中的命令行交互举重若轻
  2. LeetCode替换空格
  3. A Child's History of England.6
  4. A Child's History of England.26
  5. json模块中函数的用法
  6. JAXB—Java类与XML文件之间转换
  7. 隐藏状态栏后tableview自动上移20个像素的问题
  8. C++ default constructor | Built-in types
  9. mysqldump备份容灾脚本
  10. shell脚本 监控网卡信息