0
我已經在我的電腦上安裝了Mininet,但我需要了解Mininet是否已成功安裝。有沒有我應該寫的命令來檢查或重新安裝它的本地?如何檢查Mininet是否已成功安裝在我的電腦上?
我已經在我的電腦上安裝了Mininet,但我需要了解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