Basic Configurasi Mikrotik: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
kTidak ada ringkasan suntingan
kTidak ada ringkasan suntingan
Baris 1: Baris 1:
{{DISPLAYTITLE:Konfigurasi Dasar Router Mikrotik}}
{{DISPLAYTITLE:Konfigurasi Dasar Router Mikrotik}}


==='''Konfigurasi Dasar'''===
==='''Konfigurasi Dasar Mikrotik'''===
[[Berkas:Koneksi dari internet sampai ke pengguna.png|jmpl|Koneksi dari internet sampai ke pengguna]]
[[Berkas:Koneksi dari internet sampai ke pengguna.png|jmpl|Koneksi dari internet sampai ke pengguna]]


===='''IP Address Default Router Mikrotik'''====
======'''IP Address Default Router Mikrotik'''======
  IP Address Defult = 192.168.88.1
  IP Address Default = 192.168.88.1


===='''Username dan Password Default Router Mikrotik'''====
======'''Username dan Password Default Router Mikrotik'''======
  User      = Admin
  User      = Admin
  Password  = (kosong)
  Password  = (kosong)


====Memberikan nama perangkat====
======Memberikan nama perangkat======
  /system identity set name=pcrouter
  /system identity set name=pcrouter


====Set Time Zone, Tanggal dan Waktu di Mikrotik====
======Set Time Zone, Tanggal dan Waktu di Mikrotik======
  /system clock
  /system clock
  /set time-zone-autodetect=no
  /set time-zone-autodetect=no
Baris 21: Baris 21:
  /set time-zone-name=Asia/Jakarta>
  /set time-zone-name=Asia/Jakarta>


====Memberi Nama Interface Mikrotik====
======Memberi Nama Interface Mikrotik======
<code>/interface ethernet set ether1 name=ether1-internet</code>
<code>/interface ethernet set ether1 name=ether1-internet</code>
[[Berkas:Koneksi router mikrotik ke isp.png|jmpl|322x322px|Menghubungukan router mikrotik ke ISP(Internet Service Provider)]]
[[Berkas:Koneksi router mikrotik ke isp.png|jmpl|322x322px|Menghubungukan router mikrotik ke ISP(Internet Service Provider)]]


====Configurasi IP Address====
======Configurasi IP Address======
Perintah<span> </span>:  
Perintah<span> </span>:  
  /ip address add address 192.168.1.2/24 interface=ether1
  /ip address add address 192.168.1.2/24 interface=ether1
Baris 31: Baris 31:
  /ip address add address 192.168.3..1/24 interface=ether3
  /ip address add address 192.168.3..1/24 interface=ether3


===='''Configurasi IP Gateway'''====
======'''Configurasi IP Gateway'''======
<code>/ip route add gateway=192.168.1.1</code>
<code>/ip route add gateway=192.168.1.1</code>


====Configurasi DNS====
======Configurasi DNS======
<code>/ip dns set servers=1.1.1.1 8.8.8.8
<code>/ip dns set servers=1.1.1.1 8.8.8.8
set allow-remote-requests=yes</code>
set allow-remote-requests=yes</code>


====Configurasi NAT====
======Configurasi NAT======
<code>/ip firewall nat add chain=srcnat src-address=172.16.1.0/24 out-interface=ether1-internet action=masquerade</code>
<code>/ip firewall nat add chain=srcnat src-address=172.16.1.0/24 out-interface=ether1-internet action=masquerade</code>


====Backup & Restore Setingan Mikrotik====
======Backup & Restore Setingan Mikrotik======
=====Backup<span> </span>:=====
=====Backup<span> </span>:=====
<code>/system backup save name="basic-config-051019"</code>
<code>/system backup save name="basic-config-051019"</code>
Baris 49: Baris 49:


<br />
<br />
====Login Default====
======Login Default======
  User = admin
  User = admin
  Password = (default belum ada password)
  Password = (default belum ada password)


===Setup Identity<span> </span>: R1(memberi nama router mikrotik)===
======Setup Identity<span> </span>: R1(memberi nama router mikrotik)======
  [admin@MikroTik] > system identity set name=R1
  [admin@MikroTik] > system identity set name=R1
  [admin@R1] >
  [admin@R1] >


===Cek ethernet mikrotik===
======Cek ethernet mikrotik======
  [admin@R1] > interface print
  [admin@R1] > interface print
  Flags: D - dynamic, X - disabled, R - running, S - slave
  Flags: D - dynamic, X - disabled, R - running, S - slave
Baris 67: Baris 67:
  4  R  ether5                              ether            1500                  08:00:27:A3:44:12
  4  R  ether5                              ether            1500                  08:00:27:A3:44:12


===Setup IP Address<span> </span>:===  
======Setup IP Address<span> </span>:======  
  ether1 : DHCP-Client
  ether1 : DHCP-Client
  ether2 : 192.168.1.1/24
  ether2 : 192.168.1.1/24
Baris 73: Baris 73:
  ether4 : 10.192.0.1/8
  ether4 : 10.192.0.1/8


===Setup DHCP-Client===
======Setup DHCP-Client======
  [admin@R1] > ip dhcp-client add use-peer-dns=yes use-peer-ntp=yes interface=ether1 disabled=no
  [admin@R1] > ip dhcp-client add use-peer-dns=yes use-peer-ntp=yes interface=ether1 disabled=no
 
Cek DHCP-Client | Pastikan ether1 sudah dapat IP Address
==Cek DHCP-Client | Pastikan ether1 sudah dapat IP Address==
  [admin@R1] > ip dhcp-client print
  [admin@R1] > ip dhcp-client print


===Setting ip===
======Setting ip======
  [admin@R1] > ip address add address 192.168.1.1/24 interface=ether2
  [admin@R1] > ip address add address 192.168.1.1/24 interface=ether2
  [admin@R1] > ip address add address 192.168.2.1/24 interface=ether3
  [admin@R1] > ip address add address 192.168.2.1/24 interface=ether3
  [admin@R1] > ip address add address 10.192.0.1/8 interface=ether4
  [admin@R1] > ip address add address 10.192.0.1/8 interface=ether4
 
Cek konfigurasi ip address, pastikan semua ethernet sudah terdapat ip address sesuai ketentuan
==Cek konfigurasi ip address, pastikan semua ethernet sudah terdapat ip address sesuai ketentuan==
  [admin@R1] > ip address print
  [admin@R1] > ip address print


===Setup Gateway===
======Setup Gateway======
  [admin@R1] > ip route add gateway=192.168.1.1
  [admin@R1] > ip route add gateway=192.168.1.1


===Setup DNS===
======Setup DNS======
  /ip dns set primary-dns=172.168.0.6 allow-remoterequests=yes
  /ip dns set primary-dns=172.168.0.6 allow-remoterequests=yes
  /ip dns set secondary-dns=202.134.1.10 allow-remoterequests=yes
  /ip dns set secondary-dns=202.134.1.10 allow-remoterequests=yes
  /ip dns print
  /ip dns print

Revisi per 20 Februari 2021 12.48


Konfigurasi Dasar Mikrotik

Koneksi dari internet sampai ke pengguna
IP Address Default Router Mikrotik
IP Address Default = 192.168.88.1
Username dan Password Default Router Mikrotik
User       = Admin
Password   = (kosong)
Memberikan nama perangkat
/system identity set name=pcrouter
Set Time Zone, Tanggal dan Waktu di Mikrotik
/system clock
/set time-zone-autodetect=no
/set time=21:32:00
/set date=oct/05/2019<
/set time-zone-name=Asia/Jakarta>
Memberi Nama Interface Mikrotik

/interface ethernet set ether1 name=ether1-internet

Menghubungukan router mikrotik ke ISP(Internet Service Provider)
Configurasi IP Address

Perintah :

/ip address add address 192.168.1.2/24 interface=ether1
/ip address add address 192.168.2.1/24 interface=ether2
/ip address add address 192.168.3..1/24 interface=ether3
Configurasi IP Gateway

/ip route add gateway=192.168.1.1

Configurasi DNS

/ip dns set servers=1.1.1.1 8.8.8.8 set allow-remote-requests=yes

Configurasi NAT

/ip firewall nat add chain=srcnat src-address=172.16.1.0/24 out-interface=ether1-internet action=masquerade

Backup & Restore Setingan Mikrotik
Backup :

/system backup save name="basic-config-051019"

Restore :

/system backup load name="basic-config-051019"


Login Default
User = admin
Password = (default belum ada password)
Setup Identity : R1(memberi nama router mikrotik)
[admin@MikroTik] > system identity set name=R1
[admin@R1] >
Cek ethernet mikrotik
[admin@R1] > interface print
Flags: D - dynamic, X - disabled, R - running, S - slave
#     NAME                                TYPE       ACTUAL-MTU L2MTU  MAX-L2MTU MAC-ADDRESS
0  R  ether1                              ether            1500                  08:00:27:11:49:EC
1  R  ether2                              ether            1500                  08:00:27:49:67:52
2  R  ether3                              ether            1500                  08:00:27:43:D7:2E
3  R  ether4                              ether            1500                  08:00:27:7F:12:39
4  R  ether5                              ether            1500                  08:00:27:A3:44:12
Setup IP Address :
ether1	: DHCP-Client
ether2	: 192.168.1.1/24
ether3	: 192.168.2.1/24
ether4	: 10.192.0.1/8
Setup DHCP-Client
[admin@R1] > ip dhcp-client add use-peer-dns=yes use-peer-ntp=yes interface=ether1 disabled=no

Cek DHCP-Client | Pastikan ether1 sudah dapat IP Address

[admin@R1] > ip dhcp-client print
Setting ip
[admin@R1] > ip address add address 192.168.1.1/24 interface=ether2
[admin@R1] > ip address add address 192.168.2.1/24 interface=ether3
[admin@R1] > ip address add address 10.192.0.1/8 interface=ether4

Cek konfigurasi ip address, pastikan semua ethernet sudah terdapat ip address sesuai ketentuan

[admin@R1] > ip address print
Setup Gateway
[admin@R1] > ip route add gateway=192.168.1.1
Setup DNS
/ip dns set primary-dns=172.168.0.6 allow-remoterequests=yes
/ip dns set secondary-dns=202.134.1.10 allow-remoterequests=yes
/ip dns print