To install the Mininet SDN network simulator on a remote server running on Amazon’s EC2 cloud, follow the procedure shown below. After installing it, I did some basic tests and it seems that Mininet works well on the Amazon EC2 server.
From my laptop PC, I connect to the Amazon EC2 instance via SSH1. In the example below, the server’s private key file AWS-PrivateKey.pem is stored in the folder ~/AWS and the server’s public IP address is 22.214.171.124. I had previously created a new user brian on the server.
brian@Laptop:~$ ssh -X -i ~/AWS/AWS-PrivateKey.pem firstname.lastname@example.org
To install the latest stable version of Mininet, plus all supporting software, execute the following commands on the Amazon EC2 server running Ubuntu Server 14.04.
brian@AWS:~$ sudo apt-get install git brian@AWS:~$ git clone git://github.com/mininet/mininet brian@AWS:~$ mininet/util/install.sh -a
To test the installation, run the following command:
brian@AWS:~$ sudo mn --test pingall
The benefit of installing Mininet on a remote server such as an Amazon EC2 instance is that I can now experiment with Mininet from any computer, including a tablet or smartphone, at any time as long as I have a connection to the Internet.