2016-12-06 37 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 
相关问题