Materi Lab 1.4 How to Configure Internet Access MikroTik in PNETLab
1. Prepare the Lab Environment
Make sure you have already created a lab in PNETLab with the following nodes:
-
MikroTik RouterOS
-
VPC (Client 1)
-
VPC2 (Client 2)
-
Net/Cloud (for Internet access)
2. Connect the Network and the Nodes in PNETLab
-
Connect the MikroTik RouterOS to the Network and the nodes you have created
-
Connect:
-
MikroTik ↔ Cloud
-
MikroTik ↔ VPC (Client 1)
-
MikroTik ↔ VPC2 (Client 2)
3. Configure IP Addresses on MikroTik
Start the MikroTik node
- Double-click the MikroTik node
Login:
Username: admin
Password: (leave blank, just press Enter)
- Press Ctrl + C to skip setting a new password
Press Enter
Then, you can press Ctrl + L to clear the screen
Type : ip address add address=172.18.1.1/24 interface=ether2
Press Enter
Aftre that, type : ip address add address=172.18.2.1/24 interface=ether3
Press Enter again
4. Configure VPC atd VPC2 (VPCS Clients)
Start the MikroTik node
Login:
Username:
admin
Password: (leave blank, just press Enter)
Press Enter
Then, you can press Ctrl + L to clear the screen
Type : ip address add address=172.18.1.1/24 interface=ether2
Press Enter
Aftre that, type : ip address add address=172.18.2.1/24 interface=ether3
Press Enter again
- VPC
- Start the VPC
- Double-click the VPC
- Type: ip 172.18.1.2/24 172.18.1.1
- Press Enter
- Type: ip dns 8.8.8.8
- Press Enter again
- Type : save
- Press Enter
- VPC2
- Start the VPC
- Double-click the VPC
- Type: ip 172.18.1.2/24 172.18.1.1
- Press Enter
- Type: ip dns 8.8.8.8
- Press Enter again
- Type : save
- Press Enter
- Start the VPC2
- Double-click the VPC2
- Start the VPC2
- Double-click the VPC2
- Type: ip 172.18.2.2/24 172.18.2.1
- Press Enter
- Type: ip dns 8.8.8.8
- Press Enter again
- Type : save
- Press Enter
5. Enable NAT on MikroTik
- Type: ip 172.18.2.2/24 172.18.2.1
- Press Enter
- Type: ip dns 8.8.8.8
- Press Enter again
- Type : save
- Press Enter
- Go to the Mikrotik RouterOs terminal
- Type : ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
- Press Enter
6. Test Connectivity
- VPC
- Go to the VPC
- Type : ping 8.8.8.8
- Press Enter
- If successful, replies from Google’s Public DNS server will appear with response times
- VPC2
- Go to the VPC
- Type : ping 8.8.8.8
- Press Enter
- If successful, replies from Google’s Public DNS server will appear with response times
- Go to the VPC2
- Type : ping 8.8.8.8
- Press Enter
- If successful, replies from Google’s Public DNS server will appear with response times
- Go to the VPC2
- Type : ping 8.8.8.8
- Press Enter
- If successful, replies from Google’s Public DNS server will appear with response times
Comments
Post a Comment