Setup Hotspot pada mikrotik: Perbedaan antara revisi
kTidak ada ringkasan suntingan |
kTidak ada ringkasan suntingan |
||
Baris 103: | Baris 103: | ||
password for the user: 12345 | password for the user: 12345 | ||
[[Berkas:Login hotspot.png|pus|jmpl|Login Page Hotspot]] | |||
<br /> | <br /> |
Revisi per 31 Maret 2021 14.32
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 :
[admin@MikroTik] > ip hotspot setup
Select interface to run HotSpot on
hotspot interface: Local
Set HotSpot address for interface
local address of network: 192.168.2.1/24
masquerade network: no
Set pool for HotSpot addresses
address pool of network: 192.168.2.2-192.168.2.254
Select hotspot SSL certificate
select certificate: no
Select SMTP server
ip address of smtp server: 0.0.0.0
Setup DNS configuration
dns servers: 8.8.8.8,8.8.4.4
DNS name of local hotspot server
dns name: hotspot-smkn1pogalan.id
Create local hotspot user
name of local hotspot user: admin
password for the user: 12345