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