MTCNA Class 02: Setting Up MikroTik Routerboard for Practice
Objectives -
- How to Practice MikroTik on VMware or VirtualBox
- Setting up MikroTik Router in a Virtual Environment
- Basic Router Setup and Configuration
Practice with MikroTik RouterOS in Virtual Environment -
Using Physical Hardware
Required: A MikroTik router (e.g., hAP Lite, RB2011, CCR series) and a PC/Laptop.
Connection: Use an Ethernet cable to connect your PC to one of the LAN ports of the router.
Required: A MikroTik router (e.g., hAP Lite, RB2011, CCR series) and a PC/Laptop.
Connection: Use an Ethernet cable to connect your PC to one of the LAN ports of the router.
Using Virtual Environment
Install MikroTik CHR (Cloud Hosted Router) in: VMware Workstation / VirtualBox (Local PC) / GNS3 / EVE-NG (For network simulation)
Download RouterOS/CHR
How to Install MikroTik RouterOS in Virtual Box
Install MikroTik CHR (Cloud Hosted Router) in: VMware Workstation / VirtualBox (Local PC) / GNS3 / EVE-NG (For network simulation)
Download RouterOS/CHR
Step-01: Download the MikroTik RouterOS
https://mikrotik.com/download
Step-02: Click New Option and Follow the bellow image’s instruction
Step-03: Click on Start Button and Select all of the Packages by following included statement in the pictures.
Step-4: Press i for install and y for Yes. And the Installation process will be going on & finally enter for reboot.
Practice with a Physical MikroTik Router
Steps:
Connect Router to PC/Laptop:
Plug LAN cable into ether1 (default LAN).
Access router via Winbox or browser (default IP: 192.168.88.1).
Login:
Default user: admin
Password: (blank, set a new one immediately).
Basic Setup:
Assign WAN (ether1) and LAN (ether2–ether5).
Set NAT and firewall rules (similar to virtual setup).
Enable DHCP Server for LAN:
/ip dhcp-server add address-pool=dhcp_pool interface=ether2 disabled=no
/ip pool add name=dhcp_pool ranges=192.168.88.10-192.168.88.100
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=8.8.8.8
Steps:
Connect Router to PC/Laptop:
Plug LAN cable into ether1 (default LAN).
Access router via Winbox or browser (default IP: 192.168.88.1).
Login:
Default user: admin
Password: (blank, set a new one immediately).
Basic Setup:
Assign WAN (ether1) and LAN (ether2–ether5).
Set NAT and firewall rules (similar to virtual setup).
Enable DHCP Server for LAN:
/ip dhcp-server add address-pool=dhcp_pool interface=ether2 disabled=no
/ip pool add name=dhcp_pool ranges=192.168.88.10-192.168.88.100
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=8.8.8.8
Basic Setup in Winbox / CLI
Step-01: IP Address Assign -
/ip address add address=192.168.88.1/24 interface=ether2 comment="LAN"
/ip address add address=192.168.0.2/24 interface=ether1 comment="WAN"
Step-02: Set Default Route -
/ip route add gateway=192.168.0.1
Step 3: Configure NAT (for Internet) -
/ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
Step 4: Set DNS -
/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes
Step-01: IP Address Assign -
/ip address add address=192.168.88.1/24 interface=ether2 comment="LAN"
/ip address add address=192.168.0.2/24 interface=ether1 comment="WAN"
Step-02: Set Default Route -
/ip route add gateway=192.168.0.1
Step 3: Configure NAT (for Internet) -
/ip firewall nat add chain=srcnat action=masquerade out-interface=ether1
Step 4: Set DNS -
/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes