ABDURROZAK
HOME ABOUT ME MICROSITE KONTAK PERSEMBAHAN HELP
ABDURROZAK.MY.ID // INFOGRAFIS JARINGAN

MANAJEMEN MIKROTIK

PERANCANGAN & IMPLEMENTASI LAN - OPTIMALISASI AKSES INTERNET

DEVICE: MIKROTIK
TOPOLOGI: STAR + ROUTER
BANDWIDTH: OPTIMIZED
SECURITY: FIREWALL NAT
8
BAB PEMBAHASAN
24+
PERINTAH CLI
15
STEP WINBOX
/24
SUBNET MASK
ABDURROZAK.MY.ID // DAFTAR ISI

NAVIGASI MATERI

PENDAHULUAN KONSEP DASAR PERANCANGAN IP ADDRESSING KONFIGURASI DHCP SERVER NAT & FIREWALL BANDWIDTH MONITORING KESIMPULAN
01

PENDAHULUAN

LATAR BELAKANG

Perkembangan teknologi jaringan komputer yang pesat menuntut adanya sistem manajemen jaringan yang handal, aman, dan efisien. Local Area Network (LAN) merupakan infrastruktur vital dalam organisasi modern yang menghubungkan perangkat dalam cakupan geografis terbatas seperti kantor, sekolah, atau gedung.

MikroTik sebagai sistem operasi router berbasis RouterOS menawarkan solusi manajemen jaringan yang fleksibel dengan fitur lengkap: routing, firewall, DHCP, NAT, QoS, hotspot, hingga load balancing - semua dalam satu perangkat terjangkau.

Masalah Umum: Jaringan LAN tanpa manajemen yang baik sering mengalami konflik IP, bandwidth tidak terdistribusi adil, keamanan lemah, dan koneksi tidak stabil.

TUJUAN PERANCANGAN

OPTIMALISASI
Distribusi bandwidth merata dengan Queue Tree & Simple Queue
KEAMANAN
Firewall, NAT, dan isolasi segmen jaringan
SKALABILITAS
Subnetting & VLAN-ready untuk ekspansi
MONITORING
Traffic analysis & logging real-time

RUANG LINGKUP

Infografis ini mencakup: (1) perancangan topologi jaringan LAN, (2) perencanaan IP addressing dengan subnetting, (3) konfigurasi lengkap via CLI (Terminal) dan WinBox (GUI), (4) implementasi DHCP Server, (5) konfigurasi NAT & Firewall, (6) manajemen bandwidth dengan QoS, serta (7) monitoring & troubleshooting.

02

KONSEP DASAR

APA ITU LAN?

Local Area Network (LAN) adalah jaringan komputer yang mencakup wilayah geografis kecil (gedung, kampus, kantor). Karakteristik utama: kecepatan tinggi (100Mbps - 10Gbps), latensi rendah, kepemilikan privat, dan cakupan terbatas.

Komponen Utama LAN: Router (penghubung antar jaringan), Switch (penghubung device dalam segmen), Access Point (WiFi), Kabel UTP/Fiber, dan End Device (PC, printer, server).

MIKROTIK & ROUTEROS

MikroTik adalah produsen perangkat jaringan asal Latvia yang menghasilkan router, switch, dan access point. RouterOS adalah sistem operasi berbasis Linux yang berjalan di perangkat MikroTik, menyediakan fitur:

FITURFUNGSILEVEL LICENSE
RoutingStatic, RIP, OSPF, BGPLevel 4+
FirewallFilter, NAT, Mangle, Connection TrackingLevel 4+
DHCPServer & Client, RelayLevel 3+
HotspotCaptive portal, user managementLevel 4+
QueueSimple Queue, Queue Tree (PCQ, SFQ)Level 4+
VPNPPTP, L2TP, IPsec, OpenVPN, WireGuardLevel 5+
WirelessAP, Station, WDS, BridgeLevel 4+
Traffic MonitorGraphing, Torch, SnifferLevel 4+

TOPOLOGI JARINGAN

Topologi yang digunakan adalah Star dengan Router di pusat - kombinasi optimal antara kemudahan troubleshooting dan performa. Router MikroTik menjadi gateway utama yang menghubungkan LAN lokal ke Internet (WAN).

INTERNET ISP MODEM MIKROTIK ROUTER (GATEWAY) 192.168.1.1/24 ether1 (WAN) SWITCH 24-PORT ether2 (LAN) PC ADMIN .1.10 PC STAFF .1.20-50 SERVER .1.5 (STATIC) PRINTER .1.100 AP WIFI .1.60-99 WAN LAN
Alur Data: Device -> Switch -> MikroTik (NAT/Routing) -> ISP Modem -> Internet. Kembali dengan jalur sebaliknya.
03

PERANCANGAN JARINGAN

KEBUTUHAN SISTEM

KOMPONENSPESIFIKASIJUMLAH
RouterMikroTik RB951Ui-2HnD / hEX1 unit
SwitchUnmanaged 24-port Gigabit1 unit
Access PointMikroTik hAP / cAP AC1-2 unit
KabelUTP Cat5e/Cat6Sesuai kebutuhan
ConnectorRJ-45Sesuai kebutuhan
PC ClientWindows/Linux10-50 unit
ISPBandwidth 20-100 Mbps1 line

ARSITEKTUR JARINGAN

Arsitektur dibagi menjadi 3 zona:

ZONA WAN
Interface ether1 terhubung ke ISP modem. Mendapat IP publik/DHCP dari ISP.
ZONA LAN
Interface ether2 sebagai gateway. Subnet 192.168.1.0/24 untuk semua device.
ZONA DMZ (OPSIONAL)
Interface ether3 untuk server publik. Terisolasi dengan firewall rules.
04

IP ADDRESSING & SUBNETTING

PERENCANAAN ALAMAT IP

Menggunakan IP Private Class C 192.168.1.0/24 dengan subnet mask 255.255.255.0. Memberikan 254 host address yang cukup untuk skala menengah.

PENTING: Hindari menggunakan IP yang sama dengan jaringan ISP untuk mencegah konflik routing. Selalu cek IP WAN terlebih dahulu.
PERANGKATINTERFACEIP ADDRESSROLE
MikroTikether1 (WAN)DHCP Client / PPPoEGateway ke ISP
MikroTikether2 (LAN)192.168.1.1/24Gateway LAN
MikroTikether3 (DMZ)192.168.2.1/24Server publik
Servereth0192.168.1.5/24Static - File/DB
PC Admineth0192.168.1.10/24Static - Management
PC Staffeth0192.168.1.20-50DHCP Pool
WiFi Clientwlan0192.168.1.60-99DHCP Pool WiFi
Printereth0192.168.1.100/24Static - Network
Reservasi-192.168.1.200-254Ekspansi future

BREAKDOWN SUBNET 192.168.1.0/24

RANGEFUNGSIJUMLAH IP
192.168.1.0Network Address1
192.168.1.1Gateway MikroTik1
192.168.1.2 - .9Pool Infrastruktur (static)8
192.168.1.10 - .19Pool Admin & Server10
192.168.1.20 - .50DHCP Pool Staff31
192.168.1.51 - .59Reservasi9
192.168.1.60 - .99DHCP Pool WiFi40
192.168.1.100 - .199Pool Device IoT/Printer100
192.168.1.200 - .254Ekspansi Future55
192.168.1.255Broadcast Address1
DNS Server: Gunakan DNS publik yang cepat - Primary: 8.8.8.8 (Google), Secondary: 1.1.1.1 (Cloudflare). Atau gunakan DNS lokal untuk caching.
05

KONFIGURASI DASAR ROUTER

KONFIGURASI CLI
KONFIGURASI WINBOX
1
RESET & PERSIAPAN AWAL

Konek ke MikroTik via kabel LAN ke ether1 (default). Login default: user admin, password kosong.

TERMINAL
# Reset konfigurasi ke default (opsional) /system reset-configuration # Tekan 'y' untuk konfirmasi, router akan reboot # Ganti hostname router /system identity set name="MIKROTIK-LAN-GW" # Set zona waktu Indonesia /system clock set time-zone-name="Asia/Jakarta" # Ganti password admin (WAJIB) /user set 0 password="P@ssw0rdKu4t!" # Disable user default yang tidak perlu /user disable admin /user add name="admin-rozak" password="R0z4k!2026" group=full
2
IDENTIFIKASI INTERFACE

Cek daftar interface dan rename agar mudah dikenali:

TERMINAL
# Lihat semua interface /interface print # Rename interface sesuai fungsi /interface ethernet set ether1 name="WAN" comment="Ke ISP Modem" /interface ethernet set ether2 name="LAN" comment="Ke Switch Utama" /interface ethernet set ether3 name="DMZ" comment="Server Publik" /interface ethernet set ether4 name="UNUSED" disable=yes /interface ethernet set ether5 name="UNUSED" disable=yes # Verifikasi hasil rename /interface ethernet print
3
KONFIGURASI IP ADDRESS

Setting IP address untuk setiap interface:

TERMINAL
# IP WAN - DHCP Client dari ISP /ip dhcp-client add interface=WAN use-peer-dns=yes use-peer-ntp=yes add-default-route=yes # Cek apakah IP WAN sudah didapat /ip address print # IP LAN - Gateway untuk client /ip address add address=192.168.1.1/24 interface=LAN network=192.168.1.0 # IP DMZ (opsional) /ip address add address=192.168.2.1/24 interface=DMZ network=192.168.2.0 # Verifikasi /ip address print
4
KONFIGURASI DNS
TERMINAL
# Set DNS server /ip dns set servers=8.8.8.8,1.1.1.1,8.8.4.4 allow-remote-requests=yes cache-size=4096 max-concurrent-queries=100 # Test resolusi DNS /ping google.com count=4
5
KONFIGURASI NTP (TIME SERVER)
TERMINAL
/system ntp client set enabled=yes /system ntp client servers add address=pool.ntp.org /system ntp client servers add address=0.id.pool.ntp.org
1
LOGIN KE WINBOX

Buka aplikasi WinBox di Windows. Klik tab Neighbors untuk mendeteksi MikroTik di jaringan. Klik device yang muncul, isi:

FIELDNILAI
Connect To192.168.88.1 (default) / MAC Address
Loginadmin
Password(kosongkan untuk default)
ByMAC Address (lebih stabil)

Klik Connect. Setelah masuk, segera ganti password via menu System -> Users.

2
GANTI IDENTITY & TIMEZONE

System -> Identity: isi nama MIKROTIK-LAN-GW, klik Apply.

System -> Clock: Time Zone = Asia/Jakarta, Apply.

3
RENAME INTERFACE

Buka menu Interfaces (ikon network di sidebar). Double-click setiap interface:

DEFAULTRENAMECOMMENT
ether1WANKe ISP Modem
ether2LANKe Switch Utama
ether3DMZServer Publik
ether4-5DISABLECentang kotak Disabled
4
SET IP ADDRESS

IP -> DHCP Client: Klik +, Interface = WAN, centang Add Default Route, Use Peer DNS, Use Peer NTP. OK.

IP -> Addresses: Klik +:

ADDRESSINTERFACENETWORK
192.168.1.1/24LAN192.168.1.0
192.168.2.1/24DMZ192.168.2.0
5
SET DNS SERVER

IP -> DNS -> Settings:

FIELDNILAI
DNS Servers8.8.8.8, 1.1.1.1, 8.8.4.4
Allow Remote Requests✓ (centang)
Cache Size4096 KiB
Max Concurrent Queries100

Apply -> OK. Test di New Terminal: /ping google.com

06

DHCP SERVER

DHCP (Dynamic Host Configuration Protocol) memungkinkan router memberikan IP address secara otomatis ke client. Kita akan buat 2 pool: satu untuk staff (PC kabel) dan satu untuk WiFi.

CLI
WINBOX
TERMINAL - DHCP SERVER
# 1. Buat IP Pool untuk Staff /ip pool add name="pool-staff" ranges=192.168.1.20-192.168.1.50 # 2. Buat IP Pool untuk WiFi /ip pool add name="pool-wifi" ranges=192.168.1.60-192.168.1.99 # 3. Buat DHCP Network (parameter untuk client) /ip dhcp-server network add address=192.168.1.0/24 gateway=192.168.1.1 dns-server=192.168.1.1,8.8.8.8 domain="lan.rozak" netmask=24 # 4. Buat DHCP Server /ip dhcp-server add name="dhcp-lan" interface=LAN address-pool=pool-staff lease-time=8h authoritative=yes # 5. Verifikasi /ip dhcp-server print /ip pool print /ip dhcp-server lease print
CATATAN: Lease time 8 jam cocok untuk kantor. Untuk WiFi publik, gunakan lease time lebih pendek (1-2 jam) agar IP cepat ter-recycle.
1
BUAT IP POOL

IP -> Pool -> +:

NAMERANGES
pool-staff192.168.1.20-192.168.1.50
pool-wifi192.168.1.60-192.168.1.99
2
DHCP NETWORK

IP -> DHCP Server -> tab Networks -> +:

FIELDNILAI
Address192.168.1.0/24
Gateway192.168.1.1
DNS Server192.168.1.1, 8.8.8.8
Domainlan.rozak
3
AKTIFKAN DHCP SERVER

IP -> DHCP Server -> tab DHCP -> DHCP Setup:

Pilih interface LAN -> Next -> Next -> Pilih pool pool-staff -> Next sampai Finish.

Lease time default 3 days, ubah ke 08:00:00 (8 jam) untuk efisiensi.

07

NAT & FIREWALL

NAT (Network Address Translation) menerjemahkan IP private ke IP publik agar client bisa akses internet. Firewall melindungi router dari serangan luar.

CLI
WINBOX
TERMINAL - NAT MASQUERADE
# 1. NAT Masquerade - WAJIB untuk akses internet /ip firewall nat add chain=srcnat action=masquerade out-interface=WAN comment="NAT ke Internet" # 2. Port Forwarding (opsional - misal akses server dari luar) /ip firewall nat add chain=dstnat action=dst-nat protocol=tcp dst-port=8080 to-addresses=192.168.1.5 to-ports=80 in-interface=WAN comment="Web Server" # 3. Verifikasi NAT /ip firewall nat print
TERMINAL - FIREWALL FILTER
# FIREWALL FILTER - Urutan SANGAT PENTING! # Rule 1: Allow established & related connections (PERFORMANCE) /ip firewall filter add chain=input action=accept connection-state=established,related comment="1-EST" # Rule 2: Drop invalid connections /ip firewall filter add chain=input action=drop connection-state=invalid comment="2-INV" # Rule 3: Allow ICMP (ping) - terbatas /ip firewall filter add chain=input action=accept protocol=icmp icmp-options=8:0-255 limit=5,50 burst=5/1s comment="3-PING" # Rule 4: Allow akses WinBox dari LAN saja /ip firewall filter add chain=input action=accept in-interface=LAN protocol=tcp dst-port=8291 comment="4-WINBOX-LAN" # Rule 5: Allow SSH dari LAN saja /ip firewall filter add chain=input action=accept in-interface=LAN protocol=tcp dst-port=22 comment="5-SSH-LAN" # Rule 6: Allow DNS dari LAN /ip firewall filter add chain=input action=accept in-interface=LAN protocol=udp dst-port=53 comment="6-DNS" # Rule 7: Allow DHCP dari LAN /ip firewall filter add chain=input action=accept in-interface=LAN protocol=udp dst-port=67-68 comment="7-DHCP" # Rule 8: Drop semua dari WAN (default deny) /ip firewall filter add chain=input action=drop in-interface=WAN comment="8-DROP-WAN" # Rule 9: Drop semua yang tidak match /ip firewall filter add chain=input action=drop comment="9-DROP-ALL" # FORWARD CHAIN - untuk traffic yang lewat router /ip firewall filter add chain=forward action=accept connection-state=established,related comment="F1-EST" /ip firewall filter add chain=forward action=drop connection-state=invalid comment="F2-INV" /ip firewall filter add chain=forward action=accept in-interface=LAN out-interface=WAN comment="F3-LAN-OUT" /ip firewall filter add chain=forward action=drop comment="F4-DROP-ALL" # Verifikasi /ip firewall filter print
URUTAN RULE: Firewall memproses rule dari atas ke bawah. Rule pertama yang match akan dieksekusi. Pastikan rule "accept established" di PALING ATAS untuk performa!
1
NAT MASQUERADE

IP -> Firewall -> tab NAT -> +:

TABFIELDNILAI
GeneralChainsrcnat
GeneralOut. InterfaceWAN
ActionActionmasquerade
2
FIREWALL FILTER

IP -> Firewall -> tab Filter Rules -> +. Tambahkan rule berikut sesuai urutan:

#CHAINACTIONPARAMETER
1inputacceptconnection-state=established,related
2inputdropconnection-state=invalid
3inputacceptprotocol=icmp, limit=5,50
4inputacceptin-if=LAN, tcp dst-port=8291
5inputacceptin-if=LAN, udp dst-port=53
6inputacceptin-if=LAN, udp dst-port=67-68
7inputdropin-if=WAN
8inputdrop(default - semua)
08

MANAJEMEN BANDWIDTH (QoS)

Quality of Service (QoS) mengatur distribusi bandwidth agar adil dan optimal. MikroTik menyediakan 2 metode: Simple Queue (mudah) dan Queue Tree (advanced dengan PCQ).

CLI
WINBOX
TERMINAL - SIMPLE QUEUE
# SIMPLE QUEUE - Metode mudah, per-subnet # Queue untuk seluruh LAN (asumsi ISP 50Mbps up/down) /queue simple add name="all-lan" target=192.168.1.0/24 max-limit=50M/50M burst-limit=55M/55M burst-threshold=40M/40M burst-time=10s priority=8/8 queue=ethernet-default/ethernet-default comment="Total LAN" # Queue per-pc staff (limit 5Mbps) /queue simple add name="staff-01" target=192.168.1.20/32 max-limit=5M/5M priority=8/8 /queue simple add name="staff-02" target=192.168.1.21/32 max-limit=5M/5M priority=8/8 # Queue khusus server (prioritas tinggi) /queue simple add name="server" target=192.168.1.5/32 max-limit=20M/20M priority=3/3 # Queue WiFi (terbatas) /queue simple add name="wifi-clients" target=192.168.1.60-192.168.1.99 max-limit=15M/15M priority=8/8 # Verifikasi /queue simple print
TERMINAL - QUEUE TREE + PCQ (ADVANCED)
# QUEUE TREE - Metode PCQ untuk fair share per-client # 1. Mangle traffic - tandai semua paket /queue tree add name="Total-Bandwidth" max-limit=50M/50M queue=default # 2. Mangle marking (di mangle, bukan queue) /ip firewall mangle add chain=prerouting src-address=192.168.1.0/24 action=mark-connection new-connection-mark="conn-lan" passthrough=yes /ip firewall mangle add chain=prerouting connection-mark=conn-lan action=mark-packet new-packet-mark="pkt-lan" passthrough=no # 3. Queue Tree dengan PCQ - fair per IP /queue tree add name="LAN-PCQ" parent=Total-Bandwidth packet-mark=pkt-lan queue=pcq-upload-default/pcq-download-default # PCQ akan otomatis membagi bandwidth adil ke setiap IP # Jika 1 user download, dapat full 50M # Jika 10 user, masing-masing dapat 5M # Verifikasi /queue tree print /queue type print
TIPS PCQ: PCQ (Per Connection Queue) adalah algoritma fair-queueing terbaik untuk jaringan dengan banyak client. Tidak perlu setting limit per-IP manual.
1
SIMPLE QUEUE (MUDAH)

Queues -> tab Simple Queues -> +:

FIELDNILAI
Nameall-lan
Target Addresses192.168.1.0/24
Max Limit50M / 50M (sesuaikan ISP)
Burst Limit55M / 55M
Burst Threshold40M / 40M
Burst Time10s
Priority8 / 8
2
QUEUE TREE + PCQ (ADVANCED)

Langkah 1 - Mangle:

IP -> Firewall -> tab Mangle -> +:

FIELDNILAI
Chainprerouting
Src. Address192.168.1.0/24
Actionmark-connection
New Connection Markconn-lan
Passthrough

Tambah rule kedua di Mangle:

FIELDNILAI
Chainprerouting
Connection Markconn-lan
Actionmark-packet
New Packet Markpkt-lan
Passthrough✗ (tidak centang)

Langkah 2 - Queue Tree:

Queues -> tab Queue Tree -> +: Name = Total-Bandwidth, Max Limit = 50M/50M

Tambah child: Name = LAN-PCQ, Parent = Total-Bandwidth, Packet Mark = pkt-lan, Queue Type = pcq-upload-default / pcq-download-default

09

MONITORING & TROUBLESHOOTING

TOOLS MONITORING

TORCH
Tools -> Torch - Lihat traffic real-time per IP, protokol, port
TRAFFIC GRAPH
Tools -> Graphing - Grafik historis bandwidth
LOG
Log - Melihat aktivitas sistem & firewall
PING & TRACEROUTE
Tools -> Ping/Traceroute - Test konektivitas
TERMINAL - PERINTAH MONITORING
# Lihat interface status /interface print # Monitor traffic real-time /interface monitor-traffic LAN # Ping test /ping 8.8.8.8 count=10 # Traceroute /tool traceroute google.com # Lihat active connections /ip firewall connection print # Cek DHCP lease aktif /ip dhcp-server lease print # Lihat ARP table /ip arp print # Cek routing table /ip route print # Resource usage (CPU, RAM) /system resource print # Health (suhu, voltase) /system health print # Backup konfigurasi /system backup save name="backup-2026-09-07" # Export script (untuk dokumentasi) /export file="config-full"

TROUBLESHOOTING UMUM

GEJALAAKAR MASALAHSOLUSI
Client tidak dapat IPDHCP server belum aktifCek /ip dhcp-server print, pastikan status yes
Dapat IP tapi tidak internetNAT belum di-setCek /ip firewall nat, harus ada masquerade
Ping gateway OK, ping internet gagalDNS atau routingCek DNS server, default route ke WAN
Internet lambatBandwidth overloadCek queue, gunakan PCQ, batasi user
WinBox tidak bisa konekFirewall blockCek filter rules, allow tcp 8291 dari LAN
Router reboot sendiriOverheat / power issueCek /system health, pastikan ventilasi baik
IP conflictDHCP range overlapPeriksa pool ranges, pisahkan static & dynamic
10

KESIMPULAN

Implementasi manajemen jaringan LAN menggunakan MikroTik berhasil memberikan solusi terintegrasi untuk optimalisasi akses internet. Dengan konfigurasi yang tepat, jaringan menjadi:

STABIL
DHCP terkelola, IP terstruktur, konflik diminimalisir
CEPAT
QoS PCQ membagi bandwidth adil, burst untuk performa
AMAN
Firewall ketat, NAT masquerade, isolasi segmen
SKALABEL
Siap ekspansi dengan VLAN, OSPF, load balance
REKOMENDASI LANJUTAN: Implementasi VLAN untuk segmentasi lebih detail, Hotspot untuk guest WiFi, Failover dengan 2 ISP, VPN untuk remote access, dan Monitoring via The Dude atau external NMS.
CHECKLIST IMPLEMENTASI
[✓] Reset & persiapan awal (identity, password, timezone) [✓] Rename interface (WAN, LAN, DMZ) [✓] Konfigurasi IP address [✓] Setup DHCP Client di WAN [✓] Setup DNS server [✓] Konfigurasi DHCP Server + Pool [✓] NAT Masquerade [✓] Firewall filter (input + forward) [✓] Bandwidth management (Simple Queue / PCQ) [✓] Testing konektivitas [✓] Backup konfigurasi [✓] Dokumentasi
ABDURROZAK.MY.ID // TERHUBUNG

JARINGAN SOSIAL

Temukan saya di berbagai platform digital

s.id GitHub Instagram Threads Facebook TikTok YT Teacher YT Course YT Studio Hashnode WhatsApp Email