Pnetlab construction and basic use

1.1 Overview

1.1.1 Meaning

The full English name of PNETLab is Packet Network Emulator Tool Lab, which literally translates into Chinese as packet network emulation tool laboratory . In fact, it is an emulator similar to Huawei's ENSP and Cisco EVE. It includes PNETLab Box and PNETLab store.

illustrate:

  • PNETLab Box (offline and online modes) is a virtual machine. It installs on the local machine where Lab will run, so you don't have to worry about Lab speed.
  • PNETLab Store is a web platform with hundreds of free laboratories in the fields of network, database, system, etc. All you need to do is get Lab and learn (IOS, Docker are included in Lab when downloading from PNETLab)

1.1.2Dynamips Mirror

DynamipsIt is an open source network simulator used to simulate the behavior and functionality of Cisco network equipment. Dynamips can run on an ordinary computer and provides an environment for experimenting and testing network configurations by simulating the operating system and hardware of a Cisco router.

1.2 Basic use case-build

illustrate:

​ This installation is based on the ESXI system to realize the installation of PnetLab4.xx version

Step 1: Installationpnetlab

1. Select the image to install

image-20230711090039092

Replenish:

​ OVF (Open Virtualization Format) is an open virtualization format used to package and distribute related files and metadata of virtualized applications and virtual machines. It is a cross-platform standard designed to achieve portability and interoperability of virtual machines.

2. Turn on hardware virtualization

image-20230711084804183

illustrate:

​ Before installation, you need to enable the "Virtualization Inter VT-x/EPT or AMD-V/RVI" function to allow virtualization software, such as virtual machine monitor (Virtual Machine Monitor) or virtual machine manager to run on the host operating system. (Virtual Machine Manager) to create and manage virtual machines.

3. Check the network segment

image-20230711084956524

illustrate:

​ When installing PnetLab, you need to select a network segment to ensure that the virtual machine can be assigned an IP. Otherwise, No IP address on interface pnet0pnetLab will not be able to run the service because it does not know which IP segment it is running on.

4.Access Services

image-20230711090419562

illustrate:

  • The service has been started at http://10.13.169.65, just visit

image-20230711090240452

  • After the installation is complete, you can access it in the browser

Step 2: Log inpnetlab

1. When logging in for the first time, you need to enable online login.

illustrate:

image-20230710170937407

  • Enable online login to get all implementation templates

Replenish:

​ PNETlab login methods include local login and online login. The difference between the two is that local login can only use the experimental templates marked by Open , while online login can use all experimental templates.

2. Realize online login and obtain simple experiments

image-20230711090900756

Supplement: Tips

​Select "Login by Online Account" to log in

Supplement: Error reporting and resolution

image-20230711091344704

  • Check if the network is smooth, you Pingcan

image-20230711091506626

  • It means that the network is not smooth and authentication is required to access the Internet. Check the log in detail to resolve the error.

Step Three: Get Online Lab

image-20230711092225702

illustrate:

Download an experiment from the Internet to your local computer

image-20230711092309181

illustrate:

  • Get experiments

image-20230711092320908

  • Start experimenting

image-20230711092408023

illustrate:

​ Double-click to enter an existing experiment

image-20230711092424130

illustrate:

​You can start related experiments

Step 4: Create a new custom laboratory (optional)

1. Create a custom lab

image-20230710171831790

illustrate:

​Select "Main" and configure parameters.

2.Image Dynamipsimport

illustrate:

  • Upload to pnetserver /opt/unetlab/addons/dynamips/directory

image-20230710195206394

3. Enter the laboratory and add new nodes

image-20230711092910731

illustrate:

​ The newly imported image on pnetthe server can be viewed here

4.Demonstration

image-20230710195915693

Log

Error: can not connect to server

解决:[PNETLab : Lab is Simple](https://pnetlab.com/pages/documentation?slug=install-bare-metal#:~:text=Make sure your server can connect to internet,then install pnetlab again apt-get install pnetlab -y)

References

PNETLab simulator deployment and usage configuration - Li Longwei - Blog Park (cnblogs.com)

PNETLAB Simulator User Guide - Zhihu (zhihu.com)

About the image image pnetlab simulator-pnet simulator-simulator-pnet-pnetlabPNETLAB simulator

Guess you like

Origin blog.csdn.net/D_boj/article/details/131789249