Basic Configurasi Mikrotik: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
(←Membuat halaman berisi 'Basik Config ====Memberikan nama perangkat==== <nowiki>/system identity set name=pcrouter</nowiki> ====Set Time Zone, Tanggal dan Waktu di Mikrotik==== <nowiki>/syste...')
 
kTidak ada ringkasan suntingan
Baris 1: Baris 1:
Basik Config
== '''Basik Config''' ==
 
====Memberikan nama perangkat====
====Memberikan nama perangkat====
<nowiki>/system identity set name=pcrouter</nowiki>
<code>/system identity set name=pcrouter</code>


====Set Time Zone, Tanggal dan Waktu di Mikrotik====
====Set Time Zone, Tanggal dan Waktu di Mikrotik====
<nowiki>/system clock
<code>/system clock
set time-zone-autodetect=no
set time-zone-autodetect=no
set time=21:32:00
set time=21:32:00
set date=oct/05/2019
set date=oct/05/2019
set time-zone-name=Asia/Jakarta</nowiki>
set time-zone-name=Asia/Jakarta</code>


====Memberi Nama Interface Mikrotik====
====Memberi Nama Interface Mikrotik====
<nowiki>/interface ethernet set ether1 name=ether1-internet</nowiki>
<code>/interface ethernet set ether1 name=ether1-internet</code>


====Configurasi IP Address====
====Configurasi IP Address====
Perintah :  
Perintah<span> </span>:  
<nowiki>/ip address add address 192.168.1.2/24 interface=ether1
 
/ip address add address 192.168.2.1/24 interface=ether2
<code>/ip address add address 192.168.1.2/24 interface=ether1</code>
/ip address add address 192.168.3..1/24 interface=ether3
 
Configurasi IP Gateway
<code>/ip address add address 192.168.2.1/24 interface=ether2</code>
/ip route add gateway=192.168.1.1</nowiki>
 
<code>/ip address add address 192.168.3..1/24 interface=ether3
Configurasi IP Gateway</code>
 
<code>/ip route add gateway=192.168.1.1</code>


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


====Configurasi NAT====
====Configurasi NAT====
<nowiki>/ip firewall nat add chain=srcnat src-address=172.16.1.0/24 out-interface=ether1-internet action=masquerade</nowiki>
<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 : =====
=====Backup<span> </span>:=====
<nowiki>/system backup save name="basic-config-051019"
<code>/system backup save name="basic-config-051019"</code>
Restore :
 
/system backup load name="basic-config-051019"</nowiki>
'''Restore<span> </span>:'''
 
<code>/system backup load name="basic-config-051019"</code>

Revisi per 7 Februari 2021 09.00

Basik Config

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

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"