The mininet environment is divided into two steps, as follows:
1. Get mininet source from GitHub to the local opt directory
Open Linux terminal, switch directory to root directory CD/
Switch to the Linux opt directory under CD opt
Get source from GitHub: Git clone git://github.com/mininet/mininet (if Git is not installed, install git first)
2. Installing Mininet
Create a new empty folder under the current directory mkdir mymininet
Fully install mininet to mymininet directory mininet/util/install.sh-s mymininet-a (depending on the network speed, it takes a while to wait patiently), if the first execution fails, re-execute the command again
3. Test Mininet
sudo mn--help
MN--text Pingall
Finally, explain the mininet/util/install.sh-s mymininet-a command.
Mininet/util/install.sh [options]
There are three parameters:
-A: Full installation
-NFV: Install only minient openflow Reference multiple SWITCH and OPEN VSWITCH
-s mydir: Specify directory
Build mininet Environment under Ubuntu