Installation environment:
Ubuntu virtual machine version: 14.04
Mininet version: 2.3.1b1
1. Change the software image source
Do the following in Settings:
Choose a domestic mirror site, such as Aliyun.
After clicking Close, in the pop-up window click on thereload, wait for the cache update to complete.
2. Download git
Execute the following command in the terminal:
sudo apt-get install git
If no error is reported, the installation was successful.
3. Download Mininet source code
After installing git, execute the following command in the terminal:
git clone /codefoxs/
The source code in gitee is selected here.
4. Changing the installation file
Go to the Mininet source directory and use the vi editor to open the mininet/util directory in theDocumentation.
# Go to the mininet/util directory
cd mininet/util
# Open the file with the vi editor
vi
Later on, we will need to execute thefile to install Mininet, during the installation process you need to download some files (e.g. python packages, etc.) in the original
In the file, it is downloaded through github, due to the domestic access to github is not very stable, and the download speed is very slow, so, you can change the download address to a domestic site to speed up the installation. Of course, if it is too much trouble, you can also not change, direct installation.
In the bottom line mode of the vi editor, replace the download address by typing the following command, which is the domestic mirror site of github.
Enter a colon first:
After you enter bottom line mode, a colon appears in the lower left corner, and the cursor jumps to the lower left corner, enter the following command:
%s///g
After the carriage return has finished executing, enter the colon again to enter bottom-line mode, and then enter thewq
Save and exit.
5. Installation of Mininet
Enter the following command to install:
./ -a
Note: Make sure you are in themininet/util
directory where this command was executed. (Option a indicates a full installation)
6, check whether the installation is successful
Enter the following command:
sudo mn --test pingall
If the following figure appears, the installation was successful.
7. Problems that may be encountered
This is what happens when I use the test command after the installation is complete:
The solution: reinstall and add the -v option to the install command.
./ -v
Although the reinstallation reported an error, the test command was re-executed and was able to execute correctly, indicating that the installation was successful.
The article referenced in solving the problem:Ubunut----MininetInstallation Tutorial(Cannot find required executable ovs-vsctlenhancement)_cannot find required executable ovs-vsctl.-CSDNblog (loanword)