Mininet的mn -h命令详解

root@SDN:~# mn -h
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       ---设置交换机类型,和个数


  --host=HOST           cfs|proc|rt[,param=value...]
                        rt=CPULimitedHost{'sched': 'rt'} proc=Host

                        cfs=CPULimitedHost{'sched': 'cfs'}     --设置主机参数和个数


  --controller=CONTROLLER
                        default|none|nox|ovsc|ref|remote|ryu[,param=value...]
                        ovsc=OVSController none=NullController
                        remote=RemoteController default=DefaultController

                        nox=NOX ryu=Ryu ref=Controller  --设置控制器,指定控制器类型


  --link=LINK           default|ovs|tc|tcu[,param=value...] default=Link

                        ovs=OVSLink tcu=TCULink tc=TCLink    ---链路设置


  --topo=TOPO           linear|minimal|reversed|single|torus|tree[,param=value
                        ...] 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?   交换机和控制器使用命名空间?


  --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                 [option=val...] adds a NAT to the topology that   --为拓扑添加一个nat使Mininet的主机连接到物理网络上
                        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版本并退出


  --cluster=server1,server2...

                        run on multiple servers (experimental!)    --运行多个服务


  --placement=block|random
                        node placement for --cluster (experimental!)   --节点运行cluster

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Test9912

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值