Modul Mtcna
Modul Mtcna
(MTCNA)
1
About me
Candra Milad Ridha Eislam
Using Mikrotik since RoSv5
2014, IT Support at CV. Cycosoft Computama (Intership ISP)
2015, Join Pesantren Networkers IDN, IDN Foundation
2016-now, Network Engineer & Trainer at IDN (www.idn.id)
2018-now, NOC at Connexin Limited, Hull, UK (ISP)
Holding Cisco CCNA, Juniper JNCIA, Ubiquity UBWA, UEWA, Mikrotik MTCNA, MTCRE, MTCWE,
MTCTCE, MTCUME, MTCIPv6E, MTCSE, MTCEWE, MTCINE, Mikrotik Certified Trainer and
Mikrotik Academy Coordinator
• Pearson Vue
• Manage service
• IT Project consultant
• t : +62 878-0878-2600
• e : [email protected]
• w : semarang.idn.id
MTCNA MTCTCE
MTCRE CCNA
#3
#1
#2 #4
Makassar
Tegal
Grobogan
Ubiquiti Unifi
FKM, UNDIP
Kominfo Badung, Bali
Bangkok, Thailand
Modul 1
Introduction
• mikrotik.com
• mum.mikrotik.com
• wiki.mikrotik.com
• forum.mikrotik.com
• https://wiki.mikrotik.com/wiki/Manual:RouterOS_features
• http://routerboard.com/
• Word
• OmniTIK, Groove, SXT, LHG, DynaDish, cAP, wAP, hAP, hEX
• Exceptional naming
• Nama disederhanakan dan disesuaikan dengan tahun pengembangan.
• Contoh : RB600, 800, 1000, 1100, 1200, 2011, 3011, 4011
• https://wiki.mikrotik.com/wiki/Manual:Product_Naming
• https://mikrotik.com/download
TCP / IP Basic
OSI Model
4 Transport TCP UDP
Source : https://nordvpn.com/blog/tcp-or-udp-which-is-better/
32 Bit
Network Host
• Kelas B
• Kelas C
to Network
192.168.100.0/24
Host 192.168.100.1 – 192.168.100.254
= 255.255.255.(256-4)
= 255.255.255.252 jadi subnetmasknya adalah 255.255.255.252
Ether2-5
192.168.88.1/24
DHCP Client
192.168.88.0/24
Undo/Redo
Menu Dashboard
Area Kerja
IP address/prefix
Verifikasi
[admin@candra] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.88.1/24 192.168.88.0 ether2
1 192.168.100.1/24 192.168.100.0 ether5
wlan1
192.168.98.x/24
Ether2-5
DHCP Client 192.168.88.1/24
192.168.88.0/24
Chain : srcnat
Out-int : wlan1
Action : masquerade
https://wiki.mikrotik.com/wiki/Manual:System/Packages
• kita juga bisa membuat custom group baru sesuai dengan aturan yang kita
inginkan.
Tojeh
HOSTNAME-[tahun][bulan][tanggal]-[jam][menit]
• Perintah Export
[admin@candra] > export file=backup-all
• Perintah Import
[admin@candra] > import file-name=backup-all.rsc
• Keep User Configuration, reset semua konfigurasi kecuali user dan password.
• CAPS Mode, setting mode CAPs (mode AP yang dimanage oleh CAPsMAN).
• No Default Configuration, menghapus semua settingan yang ada di router.
• Do Not Backup, ketika di reset RouterOS tidak akan melakukan backup file.
*) Apabila semua parameter tidak di pilih maka router akan kembali ke factory default
Ether1
192.168.88.1
192.168.88.2/24
Ether1
192.168.88.1
192.168.88.2/24
IP RouterOS
Modul 2
DHCP dan ARP
DHCP Server
192.168.88.1/24
DHCP Client
192.168.88.X/24 (DHCP)
Pool IP 192.168.88.2 – 192.168.88.254
DHCP Server
pool IP
192.168.88.0/24
10.10.10.1/30
10.10.10.2/30
192.168.88.1/24
DHCP Relay
DHCP Client
192.168.88.x/24
DHCP Server
192.168.88.1/24
DHCP Client
192.168.88.X/24 (DHCP) Pool IP 192.168.88.2 – 192.168.88.254
Modul 3
Bridging
• Bila hanya membuat interface bridge tanpa menambahkan port, maka bridge
tersebut disebut sebagai interface loopback.
Modul 4
Routing
• Dynamic Routing
Routing yang dibuat dengan melakukan enable fungsi protocol pada router
tersebut. Maka secara otimatis router akan mecari jalurnya sendiri.
R1 ether1 R2
IP : 10.10.10.1/30
ether1
IP : 10.10.10.2/30 ether2
ether2
IP : 192.168.1.1/24 IP : 192.168.2.1/24
PC A PC B
IP : 192.168.1.2/24 IP : 192.168.2.2/24
GW : 192.168.1.1 GW : 192.168.2.1
R1 ether1
R2
IP : 10.10.10.1/30
ether1
IP : 10.10.10.2/30
ether2 ether2
IP : 192.168.1.1/24 IP : 192.168.2.1/24
PC A PC B
IP : 192.168.1.2/24 IP : 192.168.2.2/24
GW : 192.168.1.1 GW : 192.168.2.1
R1 ether1
R2
IP : 10.10.10.1/30
ether1
IP : 10.10.10.2/30
ether2 ether2
IP : 192.168.1.1/24 IP : 192.168.2.1/24
PC A PC B
IP : 192.168.1.2/24 IP : 192.168.2.2/24
GW : 192.168.1.1 GW : 192.168.2.1
R1 ether1
R2
IP : 10.10.10.1/30
ether1
IP : 10.10.10.2/30
ether2 ether2
IP : 192.168.1.1/24 IP : 192.168.2.1/24
PC A PC B
IP : 192.168.1.2/24 IP : 192.168.2.2/24
GW : 192.168.1.1 GW : 192.168.2.1
R1 ether1
R2
IP : 10.10.10.1/30
ether1
IP : 10.10.10.2/30
ether2 ether2
IP : 192.168.1.1/24 IP : 192.168.2.1/24
PC A PC B
IP : 192.168.1.2/24 IP : 192.168.2.2/24
GW : 192.168.1.1 GW : 192.168.2.1
• Semua route akan terkena efek check gateway bila menggunakan gateway
yang sama, bila gateway tersebut diaktifkan check gateway.
Contoh :
Bila ada paket yang akan dikirimkan ke tujuan 192.168.97.190, terdapat 2 buah gateway
sebagai berikut:
#1 dst-address=192.168.97.0/25 gateway=192.168.1.1
#2 dst-address=192.168.97.128/25 gateway=192.168.2.1
Contoh :
Bila ada paket yang akan dikirimkan ke tujuan 192.168.88.10, terdapat 2 buah gateway
sebagai berikut:
#1 dst-address=192.168.88.0/28 gateway=192.168.3.1
#2 dst-address=192.168.88.0/26 gateway=192.168.4.1
Contoh :
Bila ada paket yang akan dikirimkan ke tujuan 192.168.100.20, terdapat 2 buah gateway
sebagai berikut:
#1 dst-address=192.168.100.0/27 distance=1 gateway=192.168.5.1
#2 dst-address=192.168.100.0/27 distance=2 gateway=192.168.6.1
Modul 5
Wireless
• unspecified - protocol mode used on previous RouterOS versions (v3.x, v4.x). Nstreme is
enabled by old enable-nstreme setting, Nv2 configuration is not possible.
• any : on AP - regular 802.11 Access Point or Nstreme Access Point; on station - selects Access
Point without specific sequence, it could be changed by connect-list rules.
• nstreme - enables Nstreme protocol (the same as old enable-nstreme setting).
• nv2 - enables Nv2 protocol.
• nv2 nstreme : on AP - uses first wireless-protocol setting, always Nv2; on station - searches for
Nv2 Access Point, then for Nstreme Access Point.
• nv2 nstreme 802.11 - on AP - uses first wireless-protocol setting, always Nv2; on station -
searches for Nv2 Access Point, then for Nstreme Access Point, then for regular 802.11 Access
Point.
• Warning! Nv2 doesn't have support for Virtual AP
• https://wiki.mikrotik.com/wiki/Manual:Interface/Wireless
• Station Mode
• Station merupakan mode penerima yang bersifat routing.
• Station Bridge merupakan mode penerima yang support bridge.
• Station Psudobridge merupakan mode penerima yang digunakan untuk menghubungkan
mikrotik dengan non mikrotik secara bridging.
• Station Psudobridge Clone merupakan mode yang sama dengan station
Psudobridge yang harus melakukan cloning MAC address ketika akan konek.
• Station WDS berfungsi sebagai penerima untuk AP yang mengaktifkan fitur WDS.
802.11a 20MHz
20MHz
802.11n
40MHz
20MHz
40MHz
802.11ac
80MHz
160MHz
Frequency Mode
1. Manual-txpower
frekuensi default mikrotik.
Pemilihan Country / Negara
2. Regulatory-domain
frekuensi sesuai regulasi disuatu negara
3. Superchannel
membuka semua frekuensi yang di Default 0, akan otomatis menyesuaikan
support oleh wireless card agar tidak melebihi EIRP country regulation
signal strength
Mengatur management
bandwidth station (RouterOS)
MAC Address AP
wlan1
IP : 10.10.10.1/24 Station
wlan1
IP : 10.10.10.3/24 Peserta 4
wlan1 Station
IP : 10.10.10.x/24 Peserta X
Jenis Authentikasi
Model Enkripsi
Key authentikasi/password
Modul 6
Firewall
Forward
Client Router
• Di firewall Filter Rule IF condition ada dimenu (General, Advanced dan Extra)
sedangkan Then condition ada dimenu action
IF
THEN
Peserta 1 Wlan1
192.168.98.A/24
Internet
Ether1
192.168.100.1/24
192.168.100.2/24
Peserta 2
Wlan1
192.168.98.B/24
Ether1
192.168.xx.1/24
192.168.xx.2/24
• Perhatikan jumlah bytes di setiap chain rule, tetap ataukah bertambah ketika
kita melakukan akses ke router
• Coba masing-masing peserta untuk melakukan ping, akses web, dan remote
winbox ke router peserta lain.
• Kita dapat membuat atau menambahkan catatan aktivitas apa saja sesuai
yang diinginkan melalui firewall filter dengan menggunakan action log.
• Ping IP router dari laptop atau dari peserta lain, amati log pada router.
Interface Local
WAN
NAT
LAN
PUBLIC
LAN Office A
Internet
Public IP
100.1.1.1:81 Public Network
dstnat
Web Server
192.168.10.10:80
• Lab Skenario :
PUBLIC
LAN Office A
Internet
Public IP
100.1.1.1:81
dstnat
Web Server
192.168.10.10:80
• Akses IP Public router http://<ip wlan1 router>:81 dari laptop peserta lain.
Internet
WAN
NAT Redirect
Modul 7
QoS
WAN
Download 2Mb
Upload 1Mb
PC-Bos
192.168.88.10 PC2 PC3
Interface ke lokal
143k
256k
143k
256k 143k
Queue=pcq-down 143k
Max-limit=1m
256k 256k 143k
143k
256k 256k
143k
143k
143k
512k
143k
Queue=pcq-down 143k
1m
Max-limit=1m
143k
512k 143k
143k
Router
PC1
PC2 PC3
Modul 8
Tunnel
Internet
Tunnel
HQ Jakarta BR Semarang
VPN Server
Internet
HQ Jakarta
VPN
VPN Client
Jakarta Semarang
Username dan
password yang
dibuat di PPP Secret
PPTP Server
Internet
LAN Office A LAN Office B
192.168.100.0/24 192.168.200.0/24
IP Public wlan1 IP Public wlan1
192.168.97.x 192.168.97.y
Internet
LAN Office A
192.168.100.0/24
IP Public wlan1
192.168.97.x Windows Host
Office A PPTP
Tunnel Any private IP address
PPTP Server PPTP Client
10.10.10.1 10.10.10.2
PADR
PADS
LCP/IPCP
Modul 9
MISC