Mininet - Run                                                                                   Home :





Mininet - Installation 


I wouldn't put my own tutorial since there are many other tutorials you can easily follow through and it is very simple to install. I followed up the tutorial linked here.




Mininet - Run 


First, make it sure that you find mininet directory that you have installed as shown below and run mininet with 'sudo mn' (NOTE : su command may not work, so use 'sudo' command).




Once you run mininet by default mode (i.e, without specifying your own network structure), it automatically construct a simple network as shown below. The default network is made up of two hosts (h1,h2), one switch(s1) and one controller(c0). After constructing this default network, it shows the 'mininet>' prompt where you can run mininet command.




With dump command, you can check on ethernet interface information on each of the nodes in the network as shown below.




By specify the host name at the beginning of some common linux command, you can execute the linux command on the specified host (host PC) as shown below. For example, 'h1 ifconfig' mean 'run ifconfig in the host h1.




With the same logic, you can run 'ifcommand' on a switch (s1 in this tutorial) as shown below.




With the same logic, you can run 'ifcommand' on a controller(c0 in this example) as shown below.




Now you can check the connectivity using ping command as shown below. h1 ping h2 mean 'run ping2 command on h1.




You can quit mininet by exit command.







[1]  Mininet Walkthrough