Setup Hotspot pada mikrotik: Perbedaan antara revisi
(←Membuat halaman berisi 'Memberi nama interface ether1 dan ether2 [admin@MikroTik] > interface edit ether2 name [admin@MikroTik] > interface edit ether2 name [admin@MikroTik] > interface pr...') |
kTidak ada ringkasan suntingan |
||
Baris 8: | Baris 8: | ||
Memberi IP Address pada ether2/Local : | Memberi IP Address pada ether2/Local<span> </span>: | ||
[admin@MikroTik] > ip address add address=192.168.2.1/24 interface=Local | [admin@MikroTik] > ip address add address=192.168.2.1/24 interface=Local | ||
Baris 22: | Baris 22: | ||
1 192.168.2.1/24 192.168.2.0 Local | 1 192.168.2.1/24 192.168.2.0 Local | ||
Setup DHCP Server pada ether Local : | Setup DHCP Server pada ether Local<span> </span>: | ||
[admin@MikroTik] > ip dhcp-server setup | [admin@MikroTik] > ip dhcp-server setup | ||
Baris 50: | Baris 50: | ||
lease time: 10m | lease time: 10m | ||
Memberi IP DNS pada mikrotik : | Memberi IP DNS pada mikrotik<span> </span>: | ||
[admin@MikroTik] > /ip route add gateway=192.168.134.1 | [admin@MikroTik] > /ip route add gateway=192.168.134.1 | ||
Baris 58: | Baris 58: | ||
[admin@MikroTik] > /ip firewall nat add chain=srcnat out-interface=Internet action=masquerade | [admin@MikroTik] > /ip firewall nat add chain=srcnat out-interface=Internet action=masquerade | ||
Memberi IP DNS pada mikrotik : | Memberi IP DNS pada mikrotik<span> </span>: | ||
[admin@MikroTik] > <code>/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes</code> | [admin@MikroTik] > <code>/ip dns set servers=8.8.8.8,8.8.4.4 allow-remote-requests=yes</code> | ||
Baris 64: | Baris 64: | ||
Pengujian dari sisi klien untuk memastikan sudah terhubung dengan internet. | Pengujian dari sisi klien untuk memastikan sudah terhubung dengan internet. | ||
Setup hotspot : | Setup hotspot<span> </span>: | ||
<br />[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 | |||
<br /> | <br /> |
Revisi per 31 Maret 2021 14.28
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