Saturday, 15 November 2025

Setting Mikrotik untuk TKA Online 2 Ruang

 ✅ LANGKAH 1 — Beri IP Address mikrotik ether 1 untuk WAN
/ip address add address=192.168.100.2/24 interface=ether1 comment="WAN"

✅ LANGKAH 2 — Beri IP Address untuk masing-masing ruang
/ip address
add address=10.10.10.1/24 interface=ether2 comment="Ruang Komputer"
add address=10.10.20.1/24 interface=ether3 comment="Ruang Bahasa"

✅ LANGKAH 3 — Set DNS Server pada MikroTik
/ip dns set servers=8.8.8.8,1.1.1.1 allow-remote-requests=yes

✅ LANGKAH 4 — Set NAT Masquerade (agar client bisa internet)
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade comment="NAT ke internet"

✅ LANGKAH 5 — Buat DHCP Server untuk ether2 dan ether3
#Ruang Komputer (10.10.10.0/24)
/ip pool add name=pool10 ranges=10.10.10.10-10.10.10.200
/ip dhcp-server add name=dhcp10 interface=ether2 address-pool=pool10 lease-time=1h
/ip dhcp-server network add address=10.10.10.0/24 gateway=10.10.10.1 dns-server=10.10.10.1

#Ruang Bahasa (10.10.20.0/24)
/ip pool add name=pool20 ranges=10.10.20.10-10.10.20.200
/ip dhcp-server add name=dhcp20 interface=ether3 address-pool=pool20 lease-time=1h
/ip dhcp-server network add address=10.10.20.0/24 gateway=10.10.20.1 dns-server=10.10.20.1

✅ LANGKAH 6 — Aktifkan DHCP Server untuk ether2 dan ether3
/ip dhcp-server enable dhcp10
/ip dhcp-server enable dhcp20

✅ LANGKAH 7 — Set default route ke IndiHome
/ip route
add dst-address=0.0.0.0/0 gateway=192.168.100.1

✅ LANGKAH 8 — Buat Queue Type PCQ (agar pembagian rata per-client)
/queue type
add name=pcq-download-fair kind=pcq pcq-classifier=dst-address pcq-rate=0
add name=pcq-upload-fair   kind=pcq pcq-classifier=src-address pcq-rate=0

tanpa pcq-rate=0 (pilih salah satu)
/queue type
add name=pcq-download-fair kind=pcq pcq-classifier=dst-address
add name=pcq-upload-fair   kind=pcq pcq-classifier=src-address

✅ LANGKAH 9 — Buat Simple Queue untuk masing-masing ruang
#Ruang Komputer (10.10.10.0/24)
/queue simple
add name="Komputer_All" target=10.10.10.0/24 \
    max-limit=40M/40M limit-at=32M/32M \
    queue=pcq-download-fair/pcq-upload-fair


#Ruang Bahasa (10.10.20.0/24)
add name="Bahasa_All" target=10.10.20.0/24 \
    max-limit=40M/40M limit-at=31M/31M \
    queue=pcq-download-fair/pcq-upload-fair

Share:

0 comments:

Post a Comment