Mininet is a powerful simulator which can simulate the entire SDN (Software-Defined Network) into a computer system with the minimum requirements from the host system. Mininet is regarded as Network within a Computer

You can install Mininet within a freshly installed Linux operating system or within a Virtual Machine hosting any Linux OS. In my case, I have used Ubuntu 18.04 LTS inside a Virtual Machine.

Minimum requirements:

  • Computer with 2 GB RAM
  • Hard disk space: 10GB
  • NIC (network interface controller) Adapter
  • Compatible Linux OS(Like Ubuntu 10.04)

Let’s get started…!!!

After you have successfully installed your Linux OS (e.g. Ubuntu 18.04) make sure you update and install the necessary packages.

sudo apt-get update
sudo apt-get install git

Install Mininet 2.2 from source code with git

git clone git://github.com/mininet/mininet

This will create a folder “mininet” in the home directory. It contains the project file structure.

Before installing find the latest version of Mininet, list all tagged releases in the Mininet project.

cd mininet
git tag
git checkout -b version // remove version by the displayed version for e.g. 2.2.0b3

After you have selected the version, use the install script provided in the mininet folder to install mininet. Do not change anything in the script. Run the script file to install mininet. This will install Mininet 2.2 as per the selected version.

~/mininet/util/install.sh -a

After a successful compilation of the script, test the installation. The command below will run a small mininet scenario successfully.

sudo mn --test pingall

That’s all 🙂

Recent Posts

Django: The Powerful Python Framework for Building High-Quality, Secure Web Applications

Django is an open-source web framework that helps developers to create and maintain high-quality, secure…

1 year ago

Convert Zigzag Patterned String in ‘PAYPALISHIRING’ Using Given Number of Rows – Code Solution

The problem of converting a string in a zigzag pattern is a classic problem in…

1 year ago

What is the Science Behind a Javelin Throw

When Neeraj Chopra bagged India's only gold medal in Tokyo 2020 Olympics, the whole nation…

3 years ago

How to integrate htmx in Django with example

Htmx is short for high power tools for HTML. It simplifies tedious work for developers.…

3 years ago

What is Biomechanics? Its history and application

What is Biomechanics? We know, mechanics is the branch of physics dealing with the motion…

3 years ago

How to Build a Simple Django CI/CD pipeline for Heroku using Github Actions

As your Django project starts growing; the process of testing and deployment gets cumbersome with…

3 years ago