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

How do I check if Mininet is successfully installed on my computer?

我已经在我的电脑上安装了Mininet,但是我需要查看Mininet是否安装成功。有没有我应该写的命令来进行检查或重新安装它?

您可以 运行 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