Mininet – Quick installation on Ubuntu Server 18.04 LTS.

Mininet is a network emulator that emulates hosts, switches (with OpenFlow support), connections and so on …
I decided to try it on Ubuntu Server 18.04 LTS.

root@test0:~# git clone git://github.com/mininet/mininet
Cloning into 'mininet'...
remote: Enumerating objects: 9677, done.
remote: Total 9677 (delta 0), reused 0 (delta 0), pack-reused 9677
Receiving objects: 100% (9677/9677), 3.00 MiB | 3.39 MiB/s, done.
Resolving deltas: 100% (6425/6425), done.
root@test0:~# cd mininet
root@test0:~/mininet# git tag
1.0.0
2.0.0
2.1.0
2.1.0p1
2.1.0p2
2.2.0
2.2.1
2.2.2
2.3.0d3
2.3.0d4
2.3.0d5
2.3.0d6
cs244-spring-2012-final
root@test0:~/mininet# git checkout -b 2.2.2
Switched to a new branch '2.2.2'

I choosed to install Mininet, the OpenFlow reference switch, and Open vSwitch.

root@test0:~/mininet# ./util/install.sh -nfv

Installation process installs other software (Open vSwitch, OpenFlow components, etc.) from additional sources and binaries in /usr/local/bin:

root@test0:~/mininet# ls -l /usr/local/bin/
total 4556
-rwxr-xr-x 1 root root  702416 Oct 22 22:10 controller
-rwxr-xr-x 1 root root  761504 Oct 22 22:10 dpctl
-rwxr-xr-x 1 root root     403 Oct 22 22:04 easy_install
-rwxr-xr-x 1 root root     167 Oct 22 22:04 mn
-rwxr-xr-x 1 root root 1056464 Oct 22 22:10 ofdatapath
-rwxr-xr-x 1 root root  527824 Oct 22 22:10 ofp-discover
-rwxr-xr-x 1 root root  154992 Oct 22 22:10 ofp-kill
-rwxr-xr-x 1 root root   16153 Oct 22 22:10 ofp-pki
-rwxr-xr-x 1 root root 1211864 Oct 22 22:10 ofprotocol
-rwxr-xr-x 1 root root  220336 Oct 22 22:10 vlogconf

To test the installation just run mn --test pingall.

root@test0:~/mininet# mn --test pingall
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 
*** Adding switches:
s1 
*** Adding links:
(h1, s1) (h2, s1) 
*** Configuring hosts
h1 h2 
*** Starting controller
c0 
*** Starting 1 switches
s1 ...
*** Waiting for switches to connect
s1 
*** Ping: testing ping reachability
h1 -> h2 
h2 -> h1 
*** Results: 0% dropped (2/2 received)
*** Stopping 1 controllers
c0 
*** Stopping 2 links
..
*** Stopping 1 switches
s1 
*** Stopping 2 hosts
h1 h2 
*** Done
completed in 5.717 seconds

Leave a Reply