Konfigurasi Awal Mikrotik
Panduan lengkap untuk setup router Mikrotik dari awal hingga siap digunakan.
π― Target Pembelajaran
Setelah mengikuti tutorial ini, Anda akan bisa:
β
Reset router ke konfigurasi default
β
Setting IP address untuk WAN dan LAN
β
Konfigurasi DNS server
β
Setup gateway internet
β
Manajemen user dan password
β
Basic security hardening
π Reset Konfigurasi
Kapan Perlu Reset?
- Router bekas dengan konfigurasi orang lain
- Konfigurasi berantakan dan ingin mulai dari awal
- Lupa password dan harus hard reset
- Testing konfigurasi baru
Cara Reset via Winbox
/system reset-configuration no-defaults=yes skip-backup=yesParameter:
no-defaults=yes- Hapus semua konfigurasi termasuk defaultskip-backup=yes- Tidak membuat backup otomatis
Hard Reset (Tombol Reset)
- Matikan router
- Tekan dan tahan tombol Reset
- Hidupkan router (tetap tahan tombol Reset)
- Tunggu 10 detik sampai LED berkedip
- Lepaskan tombol Reset
- Router akan reboot dengan konfigurasi default
π Skenario Jaringan
Kita akan setup dengan topologi sederhana:
Internet (ISP) β WAN (ether1) β [MIKROTIK] β LAN (ether2-5) β Local Network
192.168.1.2/24 192.168.88.1/24Detail:
- WAN (ether1): Terhubung ke modem/ISP
- LAN (ether2-5): Terhubung ke PC/devices lokal
- IP Public: Dari ISP (atau bisa DHCP)
- IP LAN:
192.168.88.0/24
π§ Step-by-Step Konfigurasi
Step 1: Set Identity
/system identity set name=Router-KantorStep 2: Konfigurasi Interface WAN
Jika ISP memberikan IP Static:
/ip address add address=192.168.1.2/24 interface=ether1 comment="WAN Static IP"
/ip route add gateway=192.168.1.1 comment="Default Gateway"Jika ISP menggunakan DHCP:
/ip dhcp-client add interface=ether1 disabled=no comment="WAN DHCP"Step 3: Konfigurasi Interface LAN
# Buat Bridge untuk menggabungkan ether2-5
/interface bridge add name=bridge-lan comment="LAN Bridge"
# Tambahkan ether2-5 ke bridge
/interface bridge port add interface=ether2 bridge=bridge-lan
/interface bridge port add interface=ether3 bridge=bridge-lan
/interface bridge port add interface=ether4 bridge=bridge-lan
/interface bridge port add interface=ether5 bridge=bridge-lan
# Set IP Address untuk LAN
/ip address add address=192.168.88.1/24 interface=bridge-lan comment="LAN Network"Step 4: Setup DNS
# Setting DNS Server
/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes
# Atau gunakan Cloudflare
/ip dns set servers=1.1.1.1,1.0.0.1 allow-remote-requests=yesStep 5: Enable NAT (Internet Sharing)
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade comment="NAT for Internet"Step 6: Setup DHCP Server untuk LAN
# Setup DHCP Server dengan wizard
/ip pool add name=dhcp-pool ranges=192.168.88.10-192.168.88.254
/ip dhcp-server add name=dhcp-lan interface=bridge-lan address-pool=dhcp-pool disabled=no
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=192.168.88.1 comment="LAN Network"Step 7: Basic Firewall
# Accept established connections
/ip firewall filter add chain=input connection-state=established,related action=accept comment="Accept Established"
# Accept ICMP (ping)
/ip firewall filter add chain=input protocol=icmp action=accept comment="Accept ICMP"
# Allow local network access to router
/ip firewall filter add chain=input src-address=192.168.88.0/24 action=accept comment="Allow LAN"
# Allow Winbox from LAN
/ip firewall filter add chain=input protocol=tcp dst-port=8291 src-address=192.168.88.0/24 action=accept comment="Winbox from LAN"
# Drop everything else
/ip firewall filter add chain=input action=drop comment="Drop All Other"π€ User Management
Ganti Password Admin
/user set admin password=PasswordKuat123!Buat User Baru
/user add name=teknisi password=Teknisi123! group=full comment="User Teknisi"User Groups
- full - Akses penuh (read/write)
- read - Hanya bisa lihat (monitoring)
- write - Bisa edit konfigurasi
# Buat user dengan akses read-only
/user add name=monitoring password=Monitor123! group=read comment="Monitoring Only"π Security Hardening
1. Disable Unused Services
/ip service disable telnet,ftp,www,api
# Hanya aktifkan yang diperlukan
/ip service enable winbox,ssh,www-ssl2. Change Default Port
# Ganti port Winbox
/ip service set winbox port=8888
# Ganti port SSH
/ip service set ssh port=22223. MAC Server Limit
# Batasi MAC server hanya di LAN
/tool mac-server set allowed-interface-list=LAN
/tool mac-server mac-winbox set allowed-interface-list=LAN4. Neighbor Discovery
# Disable neighbor discovery di WAN
/ip neighbor discovery-settings set discover-interface-list=LANπ Verifikasi Konfigurasi
Cek Koneksi Internet
/ping 8.8.8.8 count=5
/ping google.com count=5Cek DNS
/ip dns print
/ip dns cache printCek Routing
/ip route printOutput seharusnya:
0 A S 0.0.0.0/0 192.168.1.1 ether1
1 ADC 192.168.88.0/24 192.168.88.1 bridge-lanCek NAT
/ip firewall nat printTest dari Client
Dari PC di LAN:
- Cek dapat IP DHCP:
ipconfig(Windows) atauip addr(Linux) - Ping gateway:
ping 192.168.88.1 - Ping internet:
ping 8.8.8.8 - Browsing test: Buka
google.com
π§ͺ Lab Exercise
Exercise 1: Basic Setup
- Reset router ke default
- Set identity menjadi βLab-Routerβ
- Konfigurasi WAN dengan DHCP client
- Konfigurasi LAN
192.168.100.1/24 - Setup DNS dan NAT
- Test koneksi internet
Exercise 2: DHCP Server
- Buat DHCP pool
192.168.100.50-192.168.100.200 - Setup DHCP server di bridge-lan
- Test dari client (dapat IP otomatis)
Exercise 3: Security
- Ganti password admin
- Disable telnet dan FTP
- Ganti port Winbox ke 9999
- Buat user monitoring dengan read-only access
π Full Script Konfigurasi
Berikut script lengkap yang bisa langsung di-paste:
# Identity
/system identity set name=Router-Kantor
# WAN DHCP Client
/ip dhcp-client add interface=ether1 disabled=no comment="WAN"
# LAN Bridge
/interface bridge add name=bridge-lan
/interface bridge port add interface=ether2 bridge=bridge-lan
/interface bridge port add interface=ether3 bridge=bridge-lan
/interface bridge port add interface=ether4 bridge=bridge-lan
/interface bridge port add interface=ether5 bridge=bridge-lan
# LAN IP
/ip address add address=192.168.88.1/24 interface=bridge-lan
# DNS
/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes
# NAT
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
# DHCP Server
/ip pool add name=dhcp-pool ranges=192.168.88.10-192.168.88.254
/ip dhcp-server add name=dhcp-lan interface=bridge-lan address-pool=dhcp-pool disabled=no
/ip dhcp-server network add address=192.168.88.0/24 gateway=192.168.88.1 dns-server=192.168.88.1
# Basic Firewall
/ip firewall filter add chain=input connection-state=established,related action=accept
/ip firewall filter add chain=input protocol=icmp action=accept
/ip firewall filter add chain=input src-address=192.168.88.0/24 action=accept
/ip firewall filter add chain=input action=drop
# Security
/user set admin password=Admin123!
/ip service disable telnet,ftp,api
/tool mac-server set allowed-interface-list=LANβ Troubleshooting
Tidak Bisa Internet dari Client
Cek:
- NAT sudah aktif:
/ip firewall nat print - DNS berfungsi:
/ping google.com - Gateway route ada:
/ip route print - Client dapat IP DHCP
DHCP Server Tidak Jalan
Cek:
- DHCP server enabled:
/ip dhcp-server print - IP pool ada:
/ip pool print - Network config benar:
/ip dhcp-server network print
Tidak Bisa Akses Router dari LAN
Cek:
- IP address LAN benar:
/ip address print - Bridge port aktif:
/interface bridge port print - Firewall tidak block:
/ip firewall filter print
EMSYA Net - Solusi Jaringan Anda
π https://emsyanet.com/Β
Last updated on