2016-12-06 59 views

回答

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 
相關問題