mininet操作
更新时间:2023-08-17 15:28:01 阅读量: 资格考试认证 文档下载
2.mininet操作
2014/9
1.启动mininet
运行 sudo mn
以下是结果
administrator@ubuntu:~$ sudo mn
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2
*** Adding switches:
s1
*** Adding links:
(h1, s1) (h2, s1)
*** Configuring hosts
h1 h2
*** Starting controller
*** Starting 1 switches
s1
*** Starting CLI:
mininet>
可见,mininet默认会建立一个两个主机连接着一个交换机的网络
2.常用命令
mininet>
help 查看帮助
nodes 查看节点
net 查看链路、
dump 各个节点的信息
exit 退出
gterm hostname 虚拟终端 gnome-terminal
xterm hostname 虚拟终端 xterm
h1 ping h2 h1节点对h2节点进行ping操作
Link Up/Down
禁用s1与h1通路
link s1 h1 down
启用s1和h1通路
link s1 h1 up
3.mininet 运行参数
sudo mininet -c 清理配置信息
Options:
-h, --help show this help message and exit
--switch=SWITCH ivs|lxbr|ovs|ovsk|ovsl|user[,param=value...]
--host=HOST cfs|proc|rt[,param=value...]
--controller=CONTROLLER default|none|nox|ovsc|ref|remote[,param=value...]
--link=LINK default|tc[,param=value...]
--topo=TOPO linear|minimal|reversed|single|torus|tree[,param=value...]
-c, --clean clean and exit
--custom=CUSTOM read custom topo and node params from .pyfile
--test=TEST cli|build|pingall|pingpair|iperf|all|iperfudp|none
-x, --xterms spawn xterms for each node
-i IPBASE, --ipbase=IPBASE base IP address for hosts
--mac automatically set host MACs
--arp set all-pairs ARP entries
-v VERBOSITY, --verbosity=VERBOSITY info|warning|critical|error|debug|output
--innamespace sw and ctrl in namespace?
--listenport=LISTENPORT base port for passive switch listening
--nolistenport don't use passive listening port
--pre=PRE CLI script to run before tests
--post=POST CLI script to run after tests
--pin pin hosts to CPU cores (requires --host cfs or --host rt)
--nat adds a NAT to the topology that connects Mininet to the physical network
--version
举例
使用pox控制器
$ ./pox.py forwarding.l2_learning
$ sudo mn --controller=remote,ip=127.0.0.1,port=6633
让OF交换机工作为“二层自学习交换”
CTRL+D 退出MININET
正在阅读:
mininet操作08-17
5.身边趣事01-28
社区矫正集中教育讲稿07-04
文娱与体育03-17
小儿穴位帖敷处方04-03
2014--2015学年下学期 青岛版五年级下册数学期末试题及答案05-23
国际危险品分类(9大类)09-02
巴黎艾丽艮西亚克拉央酒店(H05-01
- 梳理《史记》素材,为作文添彩
- 2012呼和浩特驾照模拟考试B2车型试题
- 关于全面推进施工现场标准化管理实施的通知(红头文件)
- 江西省房屋建筑和市政基础设施工程施工招标文件范本
- 律师与公证制度第2阶段练习题
- 2019-2020年最新人教版PEP初三英语九年级上册精编单元练习unit6训练测试卷内含听力文件及听力原文
- 小升初数学模拟试卷(十四) 北京版 Word版,含答案
- 认识创新思维特点 探讨创新教育方法-精选教育文档
- 00266 自考 社会心理学一(复习题大全)
- 多媒体在语文教学中的运用效果
- 派出所派出所教导员述职报告
- 低压电工作业考试B
- 18秋福建师范大学《管理心理学》在线作业一4
- 中国铝业公司职工违规违纪处分暂行规定
- 13建筑力学复习题(答案)
- 2008年新密市师德征文获奖名单 - 图文
- 保安员培训考试题库(附答案)
- 银川市贺兰一中一模试卷
- 2011—2017年新课标全国卷2文科数学试题分类汇编 - 1.集合
- 湖北省襄阳市第五中学届高三生物五月模拟考试试题一
- mininet
- 操作
- 2014江西公务员面试热点:社会“仇心态”
- 【2012物理竞赛力学 第二讲】固体压强答案
- 波形发生电路
- 个人在“四风”方面存在的问题
- 江苏省邗江中学(集团)2014-2015学年高一下学期期中考试数学试题(实验班)
- 外币评估
- 复原力_父母教养方式与大学生压力的研究
- 最新大众健美操五级教案
- 弟子规1-10课时教案
- 工业管道预制施工工艺
- 2015年高三最后三个月步步高知识专题强化专题9人和动物的生命活动的调节
- 2013年中国老年消费者权益保护调查报告
- 第十一章 第2节 对坐标的曲线积分
- 鼎汉技术:2015年半年度报告
- 计算机问题解决
- 二次衬砌专项施工方案
- 加油站事故应急救援预案
- 诵读经典诗文
- oracledbconsole服务无法启动
- 统计学概论课后答案第1章绪论习题.