解决一个坑爹的mininet的pingall失败的问题(自己编译安装openvswitch后)
发布日期:2022-03-18 18:19:24
浏览次数:5
分类:技术文章
本文共 1601 字,大约阅读时间需要 5 分钟。
我在Ubuntu16.04上装好mininet和opendaylight后是可以正常运行的:
root@mininet-vm [07:45:54 PM] [/etc/apt] -> # mn --controller=remote,ip=192.168.179.129,port=6633 --topo=tree,2*** Creating network*** Adding controller*** Adding hosts:h1 h2 h3 h4 *** Adding switches:s1 s2 s3 *** Adding links:(s1, s2) (s1, s3) (s2, h1) (s2, h2) (s3, h3) (s3, h4) *** Configuring hostsh1 h2 h3 h4 *** Starting controllerc0 *** Starting 3 switchess1 s2 s3 ...*** Starting CLI:mininet> pingall*** Ping: testing ping reachabilityh1 -> X h3 h4 h2 -> h1 h3 h4 h3 -> h1 h2 h4 h4 -> h1 h2 h3 *** Results: 8% dropped (11/12 received)mininet> pingall*** Ping: testing ping reachabilityh1 -> h2 h3 h4 h2 -> h1 h3 h4 h3 -> h1 h2 h4 h4 -> h1 h2 h3 *** Results: 0% dropped (12/12 received)
但当我自己编译安装openvswitch后,遇到了问题:
mininet> pingall*** Ping: testing ping reachabilityh1 -> X X Xh2 -> X X Xh3 -> X X Xh4 -> X X X*** Results: 100% dropped (0/12 received)
我始终找不到问题出在哪里,在网上查阅了 很多资料后,在下面看到了一个让我眼前一亮的回答:
里面提到的指定mininet参数–switch ovs,protocols=OpenFlow10让我有了想法root@mininet-vm [07:45:54 PM] [/etc/apt] -> # mn --controller=remote,ip=192.168.179.129,port=6633 --topo=tree,2 --switch ovs,protocols=OpenFlow10*** Creating network*** Adding controller*** Adding hosts:h1 h2 h3 h4 *** Adding switches:s1 s2 s3 *** Adding links:(s1, s2) (s1, s3) (s2, h1) (s2, h2) (s3, h3) (s3, h4) *** Configuring hostsh1 h2 h3 h4 *** Starting controllerc0 *** Starting 3 switchess1 s2 s3 ...*** Starting CLI:mininet> pingall*** Ping: testing ping reachabilityh1 -> X h3 h4 h2 -> h1 h3 h4 h3 -> h1 h2 h4 h4 -> h1 h2 h3 *** Results: 8% dropped (11/12 received)
果真,指定了参数后就能用了,吐血啊
转载地址:https://zhang0peter.blog.csdn.net/article/details/88052251 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
做的很好,不错不错
[***.243.131.199]2024年04月20日 23时04分43秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
第3章-5 字符转换 (15分)【python】
2021-06-29
L1-068 调和平均 (10 分)
2021-06-29
L1-069 胎压监测 (15 分)
2021-06-29
L1-071 前世档案 (20 分)
2021-06-29
L1-072 刮刮彩票 (20 分)
2021-06-29
L2-012 关于堆的判断 (25 分)
2021-06-29
L1-064 估值一亿的AI核心代码 (20 分)
2021-06-29
L2-033 简单计算器 (25 分)
2021-06-29
L2-034 口罩发放 (25 分)
2021-06-29
树莓派的硬件信息了解与思考
2021-06-30
树莓派上创建个人用户
2021-06-30
wiringpi安装编译问题解决
2021-06-30
Windows上创建Emacs配置文件
2021-06-30
编写并运行第一个Lisp程序
2021-06-30
VS code中godoc命令不可用问题解决
2021-06-30
Emacs-103-使用spacemacs自带配置显示行号
2021-06-30
021_Excel的条件格式
2021-06-30
022_Excel空白值批量填充默认值
2021-06-30
023_emacs git-gutter+报错解决
2021-06-30
024_spacemacs支持org-pomodoro的声音提示
2021-06-30