Materi Lab 1.1 How to Install MikroTik in PNETLab
PNETLAB
PNETLab is a web-based network simulation application that allows users to create and test various computer network configurations, including devices from different vendors such as Cisco, MikroTik, and Fortinet. Its main benefits include self-learning, network simulation and testing, as well as collaboration on networking projects.
How to Install MikroTik in PNETLab
1. Prepare the Required Files
Make sure you have downloaded:
-
PNET_4.2.10
-
WinSCP-6.3.6-Setup
-
chr-6.49.17
-
VMware Workstation Pro
2. Import PNET file into VMware Workstation Pro
- Open Folder
- Find The PNET file
- Right-click the PNET file
- Select Open the PNET file in VMware Workstation Pro
- Give the VM any name you like
- Click Import
If not, open VMware Workstation Pro, select the VM you have created , and click Power
Note down the IP address shown on the screen
3. Login to PNETLab
Login:
Username: root
Password: pnet
- Press Enter
- Enter a new root password:
123
- Press Enter
- Repeat the password:
123
- Press Enter
- Create a DNS domain (any name, but must end with
.net
), for example : - Press Enter
- Press Enter when Use DHCP/Static IP address appears
- Leave blank and press Enter when NTP server appears
- After that, press Enter when Proxy Server Configuration appears
Login:
Username:
root
Password: pnet
123
123
.net
), for example :4. Adjust VM Settings in VMware
- Shut down the VM (Power Off)
- Edit VM settings
Go to the Memory → change to 4 GB
Then, go to the Network Adapter → remove the adapter labeled NAT
-
Start the VM again.
- Login again:
-
Username: root
-
Password: 123
Go to the Memory → change to 4 GB
Then, go to the Network Adapter → remove the adapter labeled NAT
Start the VM again.
-
Username:
root
-
Password:
123
- After login, type:
5. Access PNETLab Web Interface
- Open a browser
- Enter the PNETLab IP address you used in WinSCP
- Select Offline Mode
Login:
Username:
admin
Password:
pnet
Mode: HTML Console
- Complete the Verification Test
- Click Login
6. Create a New Lab
7. Adding Mikrotik RouterOS node in PNETLab
Open WinSCP
Enter:
File protocol: SFTP
Host name: your IP address
Port number: 22
User name: root
Password: 123 (your root password)
- Click Login
- Click Accept if Warning prompted
- In the right-hand panel of WinSCP:
Open WinSCP
Enter:
File protocol: SFTP
Host name: your IP address
Port number: 22
User name: root
Password: 123 (your root password)
- Click ".." until you reach the root directory
- Navigate to
/opt/unetlab/addons/qemu/
- Create a new folder
- Name the new folder:
mikrotik-6.49
- Open that folder
- On the left-hand panel, go to your Downloads folder, find the CHR file
- Click ".." until you reach the root directory
- Navigate to
/opt/unetlab/addons/qemu/
mikrotik-6.49
- Right-click the CHR file
- Select Upload
- Click OK
- Right-click the chr file uploaded in the left-hand panel of WinSCP
- Select Rename
- Rename the uploaded CHR file to
hda.qcow2
hda.qcow2
8. Add a MikroTik RouiterOS Node
-
Right-click
Click Node
- Select MikroTik RouterOS(the one you created earlier)
Modify:
Name: any name you want
Icon: ATM Red
RAM: 64 MB
QEMU Options: empty
-
Click Save
Right-click again
Select Network
Change Type to Management Cloud
Click Save
-
Connect a cable from the Cloud to the MikroTik node (ATM Red)
Ater that, click Save
Right-click
Click Node
Modify:
Name: any name you want
Icon: ATM Red
RAM: 64 MB
QEMU Options: empty
Click Save
Right-click again
Select Network
Change Type to Management Cloud
Click Save
Connect a cable from the Cloud to the MikroTik node (ATM Red)
Ater that, click Save
9. Add a VPCS (Client)
-
Right-click
Click Node
Select VPCS
-
Change Icon to Desktop 2
Click Save
Connect a cable from MikroTik to the VPCS
Then, click Save
Right-click
Click Node
Select VPCS
Change Icon to Desktop 2
Click Save
Connect a cable from MikroTik to the VPCS
Then, click Save
10. Start and Configure the MikroTik
-
Start the MikroTik node (ATM Red)
- Double-click the MikroTik node
Login:
Username: admin
Password: (leave blank, just press Enter)
-
Type n
when asked about the software license
- Press Ctrl + C to skip setting a new password
-
Press Enter
Then, you can press Ctrl + L to clear the screen
Start the MikroTik node (ATM Red)
Login:
Username:
admin
Password: (leave blank, just press Enter)
Type n
when asked about the software license
Press Enter
Then, you can press Ctrl + L to clear the screen
11. Test the Connection via Webfig
Check the IP Address in MikroTik
In the PNETLab terminal, type:
Note the IP address (e.g., 192.168.43.126
)
Open the Web Browser
Open your browser (Microsoft Edge/Chrome)
Enter the MikroTik IP address in the address bar, for example : 192.168.43.126
Login to WebFig
Username: admin
Password: leave it blank
Click Login
Open the WebFig Terminal
After login, select Terminal from the menu
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
-
In the terminal, type:
-
If successful, replies from Google’s server will appear with response times
12. Test the Connection via PuTTY- Open PuTTY
- Configure PuTTY
Enter the MikroTik IP Address
Connection type: SSH (default)
Port: 22
- Click Open
- Accept Security Alert
Login to MikroTik
Username: admin
Password: (leave it blank, just press Enter)
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
In the terminal, type:
If successful, replies from Google’s server will appear with response times
- Open Second Session
In the existing PuTTY window, right-click PuTTY icon in the taskbar
-
Select New Session
-
Enter the same MikroTik IP
-
Change connection type to Telnet
-
Port: 23
-
Click Open
-
Accept Security Alert if prompted
- Login to MikroTik
Username: admin
Password: (leave it blank, just press Enter)
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
In the terminal, type:
If successful, replies from Google’s server will appear with response times
13. Test the Connection via Winbox- Open Winbox
Connect to MikroTik
-
Enter the MikroTik IP Address
Username: admin
-
Password: (leave blank)
-
Click Connect
- Open New Terminal in Winbox
-
In the terminal, type:
- If successful, replies from Google’s server will appear with response times
14. Test the Connection via Command Prompt- Open Windows
-
Type: turn Windows features on or off in the search box.
Enable Telnet Client, then click OK
Open Windows
Type: Command Prompt in the search box.
Click Run as administrator
Type: telnet (ip address)
- Connect to MikroTik
Username: admin
Password: (leave blank)
- Press Ctrl + C to skip setting a new password
- In the terminal, type:
- ping google.com
If successful, replies from Google’s server will appear with response times
15.Test the Connection via Folder- Open File Explorer
- Enter The FTP Address
- In the address bar, type: ftp://(ip address), for example: ftp://192.168.43.126
- Press Enter
- Log In to the FTP Server
- Username: admin
-
Password: (leave blank)
Click Log On
- Acess the Files
If the connection is successful, the FTP server contents (folder skins
) will be displayed in File Explorer
Check the IP Address in MikroTik
In the PNETLab terminal, type:
Note the IP address (e.g.,
192.168.43.126
)
Open the Web Browser
Open your browser (Microsoft Edge/Chrome)
Enter the MikroTik IP address in the address bar, for example : 1
92.168.43.126
Login to WebFig
Username:
admin
Password: leave it blank
Click Login
Open the WebFig Terminal
After login, select Terminal from the menu
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
-
In the terminal, type:
-
If successful, replies from Google’s server will appear with response times
- Open PuTTY
- Configure PuTTY
Enter the MikroTik IP Address
Connection type: SSH (default)
Port: 22
- Click Open
- Accept Security Alert
Login to MikroTik
Username:
admin
Password: (leave it blank, just press Enter)
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
In the terminal, type:
If successful, replies from Google’s server will appear with response times
- Open Second Session
In the existing PuTTY window, right-click PuTTY icon in the taskbar
-
Select New Session
-
Enter the same MikroTik IP
-
Change connection type to Telnet
-
Port: 23
-
Click Open
-
Accept Security Alert if prompted
- Login to MikroTik
Username:
admin
Password: (leave it blank, just press Enter)
- Press Ctrl + C to skip setting a new password
Test Internet Connectivity
In the terminal, type:
If successful, replies from Google’s server will appear with response times
- Open Winbox
Connect to MikroTik
-
Enter the MikroTik IP Address
Username: admin
-
Password: (leave blank)
-
Click Connect
- Open New Terminal in Winbox
-
In the terminal, type:
- If successful, replies from Google’s server will appear with response times
- Open Windows
-
Type: turn Windows features on or off in the search box.
Enable Telnet Client, then click OK
Open Windows
Type: Command Prompt in the search box.
Click Run as administrator
Type: telnet (ip address)
- Connect to MikroTik
Username: admin
Password: (leave blank)
- Press Ctrl + C to skip setting a new password
- In the terminal, type:
- ping google.com
If successful, replies from Google’s server will appear with response times
- Open File Explorer
- Enter The FTP Address
- In the address bar, type: ftp://(ip address), for example: ftp://192.168.43.126
- Press Enter
- Log In to the FTP Server
- Username: admin
-
Password: (leave blank)
Click Log On
- Acess the Files
If the connection is successful, the FTP server contents (folder
skins
) will be displayed in File Explorer
Comments
Post a Comment