Setup Hotspot pada mikrotik
Memberi nama interface ether1 dan ether2
[admin@MikroTik] > interface edit ether2 name
[admin@MikroTik] > interface edit ether2 name
[admin@MikroTik] > interface print
Memberi IP Address pada ether2/Local :
[admin@MikroTik] > ip address add address=192.168.2.1/24 interface=Local
[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 D 192.168.134.136/24 192.168.134.0 Internet
1 192.168.2.1/24 192.168.2.0 Local
Setup DHCP Server pada ether Local :
[admin@MikroTik] > ip dhcp-server setup
Select interface to run DHCP server on
dhcp server interface: Local
Select network for DHCP addresses
dhcp address space: 192.168.2.0/24
Select gateway for given network
gateway for dhcp network: 192.168.2.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 192.168.2.2-192.168.2.254
Select DNS servers
dns servers: 192.168.134.2
Select lease time
lease time: 10m
Memberi IP DNS pada mikrotik :
[admin@MikroTik] > /ip route add gateway=192.168.134.1
Memberi NAT ;
[admin@MikroTik] > /ip firewall nat add chain=srcnat out-interface=Internet action=masquerade
Memberi IP DNS pada mikrotik :
[admin@MikroTik] > /ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes
Pengujian dari sisi klien untuk memastikan sudah terhubung dengan internet.
Setup hotspot :