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:
FITUR
FUNGSI
LEVEL LICENSE
Routing
Static, RIP, OSPF, BGP
Level 4+
Firewall
Filter, NAT, Mangle, Connection Tracking
Level 4+
DHCP
Server & Client, Relay
Level 3+
Hotspot
Captive portal, user management
Level 4+
Queue
Simple Queue, Queue Tree (PCQ, SFQ)
Level 4+
VPN
PPTP, L2TP, IPsec, OpenVPN, WireGuard
Level 5+
Wireless
AP, Station, WDS, Bridge
Level 4+
Traffic Monitor
Graphing, Torch, Sniffer
Level 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).
Alur Data: Device -> Switch -> MikroTik (NAT/Routing) -> ISP Modem -> Internet. Kembali dengan jalur sebaliknya.
03
PERANCANGAN JARINGAN
KEBUTUHAN SISTEM
KOMPONEN
SPESIFIKASI
JUMLAH
Router
MikroTik RB951Ui-2HnD / hEX
1 unit
Switch
Unmanaged 24-port Gigabit
1 unit
Access Point
MikroTik hAP / cAP AC
1-2 unit
Kabel
UTP Cat5e/Cat6
Sesuai kebutuhan
Connector
RJ-45
Sesuai kebutuhan
PC Client
Windows/Linux
10-50 unit
ISP
Bandwidth 20-100 Mbps
1 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.
PERANGKAT
INTERFACE
IP ADDRESS
ROLE
MikroTik
ether1 (WAN)
DHCP Client / PPPoE
Gateway ke ISP
MikroTik
ether2 (LAN)
192.168.1.1/24
Gateway LAN
MikroTik
ether3 (DMZ)
192.168.2.1/24
Server publik
Server
eth0
192.168.1.5/24
Static - File/DB
PC Admin
eth0
192.168.1.10/24
Static - Management
PC Staff
eth0
192.168.1.20-50
DHCP Pool
WiFi Client
wlan0
192.168.1.60-99
DHCP Pool WiFi
Printer
eth0
192.168.1.100/24
Static - Network
Reservasi
-
192.168.1.200-254
Ekspansi future
BREAKDOWN SUBNET 192.168.1.0/24
RANGE
FUNGSI
JUMLAH IP
192.168.1.0
Network Address
1
192.168.1.1
Gateway MikroTik
1
192.168.1.2 - .9
Pool Infrastruktur (static)
8
192.168.1.10 - .19
Pool Admin & Server
10
192.168.1.20 - .50
DHCP Pool Staff
31
192.168.1.51 - .59
Reservasi
9
192.168.1.60 - .99
DHCP Pool WiFi
40
192.168.1.100 - .199
Pool Device IoT/Printer
100
192.168.1.200 - .254
Ekspansi Future
55
192.168.1.255
Broadcast Address
1
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
Buka aplikasi WinBox di Windows. Klik tab Neighbors untuk mendeteksi MikroTik di jaringan. Klik device yang muncul, isi:
FIELD
NILAI
Connect To
192.168.88.1 (default) / MAC Address
Login
admin
Password
(kosongkan untuk default)
By
MAC 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:
DEFAULT
RENAME
COMMENT
ether1
WAN
Ke ISP Modem
ether2
LAN
Ke Switch Utama
ether3
DMZ
Server Publik
ether4-5
DISABLE
Centang 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 +:
ADDRESS
INTERFACE
NETWORK
192.168.1.1/24
LAN
192.168.1.0
192.168.2.1/24
DMZ
192.168.2.0
5
SET DNS SERVER
IP -> DNS -> Settings:
FIELD
NILAI
DNS Servers
8.8.8.8, 1.1.1.1, 8.8.4.4
Allow Remote Requests
✓ (centang)
Cache Size
4096 KiB
Max Concurrent Queries
100
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 -> +:
NAME
RANGES
pool-staff
192.168.1.20-192.168.1.50
pool-wifi
192.168.1.60-192.168.1.99
2
DHCP NETWORK
IP -> DHCP Server -> tab Networks -> +:
FIELD
NILAI
Address
192.168.1.0/24
Gateway
192.168.1.1
DNS Server
192.168.1.1, 8.8.8.8
Domain
lan.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 -> +:
TAB
FIELD
NILAI
General
Chain
srcnat
General
Out. Interface
WAN
Action
Action
masquerade
2
FIREWALL FILTER
IP -> Firewall -> tab Filter Rules -> +. Tambahkan rule berikut sesuai urutan:
#
CHAIN
ACTION
PARAMETER
1
input
accept
connection-state=established,related
2
input
drop
connection-state=invalid
3
input
accept
protocol=icmp, limit=5,50
4
input
accept
in-if=LAN, tcp dst-port=8291
5
input
accept
in-if=LAN, udp dst-port=53
6
input
accept
in-if=LAN, udp dst-port=67-68
7
input
drop
in-if=WAN
8
input
drop
(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).
# 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 -> +:
FIELD
NILAI
Name
all-lan
Target Addresses
192.168.1.0/24
Max Limit
50M / 50M (sesuaikan ISP)
Burst Limit
55M / 55M
Burst Threshold
40M / 40M
Burst Time
10s
Priority
8 / 8
2
QUEUE TREE + PCQ (ADVANCED)
Langkah 1 - Mangle:
IP -> Firewall -> tab Mangle -> +:
FIELD
NILAI
Chain
prerouting
Src. Address
192.168.1.0/24
Action
mark-connection
New Connection Mark
conn-lan
Passthrough
✓
Tambah rule kedua di Mangle:
FIELD
NILAI
Chain
prerouting
Connection Mark
conn-lan
Action
mark-packet
New Packet Mark
pkt-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
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