Location>code7788 >text

Mininet installation log

Popularity:881 ℃/2024-09-19 11:34:41

Installation environment:

Ubuntu virtual machine version: 14.04

Mininet version: 2.3.1b1

1. Change the software image source

Do the following in Settings:

image-20240914175928598

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.

image-20240914175724497

image-20240914180156831

2. Download git

Execute the following command in the terminal:

sudo apt-get install git

image-20240914180421078

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.

image-20240914180901381

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

image-20240914181143443

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 originalIn 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

image-20240914183432629

After the carriage return has finished executing, enter the colon again to enter bottom-line mode, and then enter thewqSave and exit.

image-20240914183811658

5. Installation of Mininet

Enter the following command to install:

./ -a

Note: Make sure you are in themininet/utildirectory where this command was executed. (Option a indicates a full installation)

image-20240914184212937

6, check whether the installation is successful

Enter the following command:

sudo mn --test pingall

If the following figure appears, the installation was successful.

image-20240914185319362

7. Problems that may be encountered

This is what happens when I use the test command after the installation is complete:

image-20240914184838611

The solution: reinstall and add the -v option to the install command.

./ -v

image-20240914185549007

Although the reinstallation reported an error, the test command was re-executed and was able to execute correctly, indicating that the installation was successful.

image-20240914185806042

The article referenced in solving the problem:Ubunut----MininetInstallation Tutorial(Cannot find required executable ovs-vsctlenhancement)_cannot find required executable ovs-vsctl.-CSDNblog (loanword)