MININET INSTALLATION AND OPERATION FOR Web view . If Xming asks for a username and password, go to...

29
MININET INSTALLATION AND OPERATION FOR WINDOWS 10 INSTALL VIRTUALBOX www.virtualbox.org Download Mininet VM, mininet.org.

Transcript of MININET INSTALLATION AND OPERATION FOR Web view . If Xming asks for a username and password, go to...

Page 1: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

MININET INSTALLATION AND OPERATION FOR WINDOWS 10

INSTALL VIRTUALBOX www.virtualbox.org

Download Mininet VM, mininet.org.

Page 2: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Download PuTTY putty.org

Page 3: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

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

Page 4: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Then start the VM so PuTTY can connect to it. Hit Start on the VM:

Page 5: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it
Page 6: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Login: mininet

PW: mininet

Page 7: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Run ifconfig at $ prompt to get IP Address.

Page 8: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Note that eth1 is not set up, so do this:

Page 9: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Check ifconfig eth1:

Page 10: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Double click on Xming to set up the X11 tunnel.

PuTTY setup:

Page 11: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

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.

Page 12: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it
Page 13: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Then log in to Mininet in the terminal window:

Page 14: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

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.

Page 15: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

This is the OpenFlow filter.

Select Loopback

Then run mininet:

>>$ sudo mn

Page 16: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Wireshark will then populate OF switch:

Page 17: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Xterm h1 h2

Page 18: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

To use the Miniedit GUI, at the command line in the PUTTY terminal, type:

sudo ~/mininet/examples/miniedit.py

Page 19: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

This will launch the GUI:

Then you can create network, here, drag and drop 2 hosts and an SDN controller and switch and run:

Page 20: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Right Click to see details on the nodes:

Page 21: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Hit Run to run the network:

Page 22: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

The network is then running. Go to root terminal to run commands:

Page 23: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Then run wireshark (see above) to see packets:

In the root terminal, sudo wireshark &:

Page 24: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

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.

Page 25: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it
Page 26: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it

Here are the Miniedit tools:

Page 27: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it
Page 28: MININET INSTALLATION AND OPERATION FOR   Web view . If Xming asks for a username and password, go to a download site that does not require it