Beranda
Gunakan menu ☰ untuk melihat konfigurasi dan simulasi:
- Addresses
- DHCP Client
- DHCP Server
- Firewall NAT
- Konfigurasi Hotspot
- Simulasi Hotspot
Addresses
/ip address add address=10.10.10.1/27 interface=ether1
/ip address add address=20.20.20.1/27 interface=ether2
/ip address add address=30.30.30.1/27 interface=wlan1
- ether1: koneksi ke ISP (internet)
- ether2: jaringan lokal PC
- wlan1: hotspot WiFi
- ether2: jaringan lokal PC
- wlan1: hotspot WiFi
DHCP Client
/ip dhcp-client add interface=ether1 disabled=no use-peer-dns=yes add-default-route=yes
DHCP client agar ether1 mendapat IP otomatis dari ISP.
DHCP Server
/ip pool add name=dhcp_pool ranges=20.20.20.2-20.20.20.30
/ip dhcp-server add name=dhcp1 interface=ether2 address-pool=dhcp_pool disabled=no
/ip dhcp-server network add address=20.20.20.0/27 gateway=20.20.20.1
DHCP server di ether2 membagikan IP otomatis ke PC.
Firewall NAT
/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade
NAT agar perangkat LAN bisa keluar ke internet.
Konfigurasi Hotspot
/ip address add address=30.30.30.1/27 interface=wlan1
/ip pool add name=hs-pool ranges=30.30.30.2-30.30.30.30
/ip dhcp-server add name=dhcp-hs interface=wlan1 address-pool=hs-pool disabled=no
/ip dhcp-server network add address=30.30.30.0/27 gateway=30.30.30.1
/ip hotspot setup
interface=wlan1
address-pool=hs-pool
profile=hsprof1
hotspot-address=30.30.30.1
dns-name=hotspot.local
login-by=http-pap
Langkah-langkah:
1. Tambahkan IP ke wlan1 (30.30.30.1/27).
2. Buat pool IP untuk klien hotspot.
3. Buat DHCP server di wlan1.
4. Jalankan perintah setup hotspot.
Tambah User Hotspot di Winbox:
- Buka IP → Hotspot → Users
- Klik +
- Isi: Name (username), Password, Profile
- Klik OK untuk simpan.
1. Tambahkan IP ke wlan1 (30.30.30.1/27).
2. Buat pool IP untuk klien hotspot.
3. Buat DHCP server di wlan1.
4. Jalankan perintah setup hotspot.
Tambah User Hotspot di Winbox:
- Buka IP → Hotspot → Users
- Klik +
- Isi: Name (username), Password, Profile
- Klik OK untuk simpan.