“Semua User / Client menggunakan Settingan DHCP pada Kartu Jaringannya / Network Interface Card”
# Memberikan Password
[admin@MikroTik] > password
Old password :
new password: ********
retype password: ********
# Memberikan nama setiap interface
[admin@MikroTik] > interface set ether1 name=WAN
[admin@MikroTik] > interface set ether2 name=LAN
# Konfigurasi IP Address untuk setiap interface
[admin@MikroTik] > ip address add address=118.98.215.70/24 interface=WAN
[admin@MikroTik] > ip address add address=1.1.1.1/24 interface=LAN
# Membuat rule masqurade supaya paket dari LAN akan di masqurade ke Internet melalui interface WAN
[admin@MikroTik] > ip firewall nat add chain=srcnat out-interface=WAN action=masquerade
# Konfigurasi Gateway
[admin@MikroTik] > ip route add gateway=118.98.215.65
# Konfigurasi DNS
[admin@MikroTik] > ip dns set primary-dns=202.134.0.155
[admin@MikroTik] > ip dns set secondary-dns=203.130.209.242
[admin@MikroTik] > ip dns set allow-remote-request=yes
#Konfigurasi DHCP
[admin@MikroTik] > ip dhcp-server setup
dhcp server interface: LAN
dhcp address space: 192.168.0.0/24
gateway for dhcp network: 192.168.0.1
dhcp relay: 192.168.0.1
addresses to give out: 192.168.0.2-192.168.0.254
dns servers: 203.130.206.250,203.34.118.10
lease time: 3d
# Membuat Hotspot di MikroTik
[admin@MikroTik] > ip hotspot setup
hotspot interface: LAN
local address of network: 1.1.1.1/24
masquerade network: yes
address pool of network: 1.1.1.2-1.1.1.254
select certifacate: none
ip address of smtp servers: 0.0.0.0
dns servers: 202.134.0.155,203.130.209.242
dns name:
name of local hotspot user:admin
password for the user:jardikna
Gambar Login Password
Gambar Setelah Berhasil Login
# Membuat user baru di hostpot
[admin@MikroTik] > ip hotspot user add name=abu password=abu
[admin@MikroTik] > ip hotspot user add name=henry password=henry
Gambar User Login
Sekian Tentang Membuat Gateway Sederhana
Jangan Lupa Tinggalkan Commentar Anda Para Sobat TKJ
Jangan Lupa Tinggalkan Commentar Anda Para Sobat TKJ
likeeee
ReplyDelete