Usage: mn [options]
(type mn -h for details)
The mn utility creates Mininet network from the command line. It can create parametrized topologies, invoke the Mininet CLI, and run tests.
在命令行中输入mn可以创建Mininet网络。它可以构建参数化的网络拓扑,包含Mininet的CLI和运行测试
Options(选项):
-h, --help show this help message and exit --展示help帮助信息和退出
--switch=SWITCH default|ivs|lxbr|ovs|ovsbr|ovsk|user[,param=value...]
ovs=OVSSwitch default=OVSSwitch ovsk=OVSSwitch
lxbr=LinuxBridge user=UserSwitch ivs=IVSSwitch
ovsbr=OVSBridge ---设置交换机类型,和个数
rt=CPULimitedHost{'sched': 'rt'} proc=Host
cfs=CPULimitedHost{'sched': 'cfs'} --设置主机参数和个数
default|none|nox|ovsc|ref|remote|ryu[,param=value...]
ovsc=OVSController none=NullController
remote=RemoteController default=DefaultController
nox=NOX ryu=Ryu ref=Controller --设置控制器,指定控制器类型
ovs=OVSLink tcu=TCULink tc=TCLink ---链路设置
...] linear=LinearTopo
reversed=SingleSwitchReversedTopo tree=TreeTopo
single=SingleSwitchTopo torus=TorusTopo
minimal=MinimalTopo --设置拓扑形状
-c, --clean clean and exit --清楚和退出
--custom=CUSTOM read custom classes or params from .py file(s) --运行拓扑脚本
--test=TEST none|build|all|iperf|pingpair|iperfudp|pingall --测试命令
-x, --xterms spawn xterms for each node --打开终端节点
-i IPBASE, --ipbase=IPBASE
base IP address for hosts --设置主机ip地址
--mac automatically set host MACs --主机mac地址
--arp set all-pairs ARP entries --设置所有对ARP入口
-v VERBOSITY, --verbosity=VERBOSITY
info|warning|critical|error|debug|output
--innamespace sw and ctrl in namespace? 交换机和控制器使用命名空间?
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 --命令脚本在测试后运行
connects Mininet hosts to the physical network.
Warning: This may route any traffic on the machine --警告:这种方式路由通信在机器上使用Mininet的Ip子网进入Mininet
that uses Mininet's IP subnet into the Mininet 如果你需要改变Mininet的IP子网看--ipbase选项
network. If you need to change Mininet's IP subnet,
see the --ipbase option.
--version prints the version and exits --打印Mininet版本并退出
run on multiple servers (experimental!) --运行多个服务
node placement for --cluster (experimental!) --节点运行cluster