Installing Mininet
Installing Mininet
Installing Mininet
Award 1829698
“CyberTraining CIP: Cyberinfrastructure Expertise on High-throughput
Networks for Big Science Data Transfers”
Installing Mininet
Contents
Page 2
Installing Mininet
This short guide describes the steps required to install Mininet on a Linux. The guide
assumes that you are running a recent version of Ubuntu. The version of Linux used in
this guide is Ubuntu 20.04.2 LTS.
Step 1. Launch a Linux terminal by holding the Ctrl+Alt+T keys or by clicking on the
Linux terminal icon.
Step 2. Make sure that the list of packages from all repositories is up to date by running
the following command. When prompted to enter a password, please enter the password
of the account you are currently logged into.
Page 3
Installing Mininet
Step 4. At this point, if there was no error during the installation process, you should have
mininet installed on your machine. Issue the following command to start mininet’s
Command Line Interface (CLI). This command creates a simple topology consisting of one
switch (s1) and two hosts (h1, h2).
sudo mn
Step 5. By default, the Open vSwitch (OVS) package is installed when installing mininet.
OVS is the virtual switch that will be used to connect devices in mininet. To test if mininet
is working properly, issue the following command in mininet’s CLI.
mininet> pingall
Page 4
Installing Mininet
The figures above shows that h1 was able to reach h2 and h2 was able to reach h1. It also
shows that 0% packets were dropped. This confirms that mininet and the virtual switch
are properly installed.
2 Using Miniedit
Mininet has a Graphical User Interface (GUI) known as Miniedit. Miniedit is a simple
python program that provides a GUI which allows creating and managing topologies.
Step 1. Install git in case it is not installed on your machine by using the following
command.
Step 2. Clone the mininet repository from GitHub by using the following command on a
Linux terminal.
Page 5
Installing Mininet
Page 6
Installing Mininet
Step 7. Check if Miniedit is ready to be started. Start Miniedit by entering the following
command.
Page 7
Installing Mininet
References
Page 8