MININET INSTALLATION AND OPERATION FOR Web view . If Xming asks for a username and password, go to...
Transcript of MININET INSTALLATION AND OPERATION FOR Web view . If Xming asks for a username and password, go to...
MININET INSTALLATION AND OPERATION FOR WINDOWS 10
INSTALL VIRTUALBOX www.virtualbox.org
Download Mininet VM, mininet.org.
Download PuTTY putty.org
PuTTY allows you to run a Wireshark terminal outside of Virtual Box.
To get into the Mininet VM you must SSH into it using X11. You do this using Xming. Once Xming is installed, you double click on it and it runs in the background. Xming is a free software port of the X Window Server to Microsoft Windows.
http://www.geo.mtu.edu/geoschem/docs/putty_install.html
If Xming asks for a username and password, go to a download site that does not require it.
Double click on the Mininet installer and it will create the VM in Virtualbox (don’t run Virtualbox and then try to install from a VM).
Wireshark is part of the Mininet package. Fire up Virtualbox. The Mininet VM is now installed:
Eth0 is set up (note IP Address 192.168.56.101). Check with $ ifconfig eth0
Then start the VM so PuTTY can connect to it. Hit Start on the VM:
Login: mininet
PW: mininet
Run ifconfig at $ prompt to get IP Address.
Note that eth1 is not set up, so do this:
Check ifconfig eth1:
Double click on Xming to set up the X11 tunnel.
PuTTY setup:
Type in the Host IP Address, 192.168.56.101 in my case.
Then set up the SSH Connection:
>Connection
>>SSH
>>>X11
Tick, Enable X11. This has to be done each time you start a PuTTY session unless you save this configuration session.
Then log in to Mininet in the terminal window:
Run Wireshark in the PuTTY terminal
Wireshark will fire up:
Filter “of” if you run the default mn setup to see the openflow (of) packets.
This is the OpenFlow filter.
Select Loopback
Then run mininet:
>>$ sudo mn
Wireshark will then populate OF switch:
Xterm h1 h2
To use the Miniedit GUI, at the command line in the PUTTY terminal, type:
sudo ~/mininet/examples/miniedit.py
This will launch the GUI:
Then you can create network, here, drag and drop 2 hosts and an SDN controller and switch and run:
Right Click to see details on the nodes:
Hit Run to run the network:
The network is then running. Go to root terminal to run commands:
Then run wireshark (see above) to see packets:
In the root terminal, sudo wireshark &:
Now you can view the various interfaces and the packets between them. You can better identify what is going on by filtering the PDU types. For example, OpenFlow packets between the controller and switch are TCP packets.
Here are the Miniedit tools: