Setup Hotspot pada mikrotik: Perbedaan antara revisi
Loncat ke navigasi
Loncat ke pencarian
kTidak ada ringkasan suntingan |
kTidak ada ringkasan suntingan |
||
Baris 1: | Baris 1: | ||
Memberi nama interface ether1 dan ether2 | Memberi nama interface ether1 dan ether2 | ||
[admin@MikroTik] > interface edit ether2 name | [admin@MikroTik] > interface edit ether2 name | ||
[admin@MikroTik] > interface edit ether2 name | [admin@MikroTik] > interface edit ether2 name | ||
[admin@MikroTik] > interface print | [admin@MikroTik] > interface print | ||
Memberi IP Address pada ether2/Local<span> </span>: | 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 | ||
[admin@MikroTik] > ip address print | [admin@MikroTik] > ip address print | ||
Flags: X - disabled, I - invalid, D - dynamic | Flags: X - disabled, I - invalid, D - dynamic | ||
#ADDRESS NETWORK INTERFACE | |||
0 D 192.168.134.136/24 192.168.134.0 Internet | |||
0 D 192.168.134.136/24 192.168.134.0 | 1 192.168.2.1/24 192.168.2.0 Local | ||
1 192.168.2.1/24 | |||
Setup DHCP Server pada ether Local<span> </span>: | Setup DHCP Server pada ether Local<span> </span>: | ||
[admin@MikroTik] > ip dhcp-server setup | [admin@MikroTik] > ip dhcp-server setup | ||
Select interface to run DHCP server on | |||
Select interface to run DHCP server on | dhcp server interface: Local | ||
Select network for DHCP addresses | |||
dhcp server interface: Local | dhcp address space: 192.168.2.0/24 | ||
Select gateway for given network | |||
Select network for DHCP addresses | gateway for dhcp network: 192.168.2.1 | ||
Select pool of ip addresses given out by DHCP server | |||
dhcp address space: 192.168.2.0/24 | addresses to give out: 192.168.2.2-192.168.2.254 | ||
Select DNS servers | |||
Select gateway for given network | dns servers: 192.168.134.2 | ||
Select lease time | |||
gateway for dhcp network: 192.168.2.1 | lease time: 10m | ||
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<span> </span>: | 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 | ||
Memberi NAT ; | Memberi NAT ; | ||
[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 : | ||
[admin@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. | Pengujian dari sisi klien untuk memastikan sudah terhubung dengan internet. | ||
Setup hotspot | Setup hotspot : | ||
name of local hotspot user: admin | [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 | |||
[[Berkas:Login hotspot.png|pus|jmpl|Login Page Hotspot]] | [[Berkas:Login hotspot.png|pus|jmpl|Login Page Hotspot]] | ||
Login dengan user admin dan password<span> </span>:12345 yang telah dibuat sebelumnya, jika berhasil maka akan tampak tampilan seperti beriktu sekaligus komputer klien sudah dapat mengakses internet.<br /> | Login dengan user admin dan password<span> </span>:12345 yang telah dibuat sebelumnya, jika berhasil maka akan tampak tampilan seperti beriktu sekaligus komputer klien sudah dapat mengakses internet.<br /> | ||
[[Berkas:Login berhasil.png|pus|jmpl|Login berhasil]] | [[Berkas:Login berhasil.png|pus|jmpl|Login berhasil]] |
Revisi per 31 Maret 2021 14.38
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
Login dengan user admin dan password :12345 yang telah dibuat sebelumnya, jika berhasil maka akan tampak tampilan seperti beriktu sekaligus komputer klien sudah dapat mengakses internet.