如何检查Mininet是否已在我的计算机上成功安装?

时间:2016-12-06 03:55:01

标签: virtual-machine virtualbox mininet

我已在计算机上安装了Mininet,但我需要查看Mininet是否已成功安装。是否有一个命令我应该编写以进行检查或重新安装本机?

1 个答案:

答案 0 :(得分:1)

您可以运行sudo mn来运行模拟。

示例:

$ sudo mn --version
2.2.1

$ sudo mn
[sudo] password for user: 
*** No default OpenFlow controller found for default switch!
*** Falling back to OVS Bridge
*** 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> 
*** Stopping 0 controllers

*** Stopping 2 links
..
*** Stopping 1 switches
s1 
*** Stopping 2 hosts
h1 h2 
*** Done
completed in 2.173 seconds

替代方案,请尝试:which mn

$ which mn
/usr/bin/mn