Professional Documents
Culture Documents
with Mikrotik
GLC webinar, 1 December 2016
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
www.glcnetworks.com
Agenda
● Introduction
● Layer 3 concept
● Routing
● Demo
● Q&A
2
www.glcnetworks.com
What is GLC?
3
www.glcnetworks.com
About GLC webinar?
4
www.glcnetworks.com
Trainer Introduction
5
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
6
www.glcnetworks.com
What is Mikrotik?
● Name of a company
● A brand
● A program (e.g. mikrotik academy)
● Headquarter: Riga, Latvia
7
www.glcnetworks.com
What are mikrotik products?
● Router OS
○ The OS. Specialized for networking
○ Website: www.mikrotik.com/download
● RouterBoard
○ The hardware
○ RouterOS installed
○ Website: www.routerboard.com
8
www.glcnetworks.com
What Router OS can do?
● Go to www.mikrotik.com
○ Download: what_is_routeros.pdf
○ Download: product catalog
○ Download: newsletter
9
www.glcnetworks.com
What are Mikrotik training & certifications?
10
www.glcnetworks.com
Layer 3 concept
11
www.glcnetworks.com
Layer 3
● Logical address
● 2 versions: IPv4 (our focus) and IPv6
● IPv4 32 bit long
● Consist of network part & host part
● Can be class based IP address (without subnet)
● Now it is classless IP address -> VLSM (variable
length subnet mask)
● CIDR (classless inter domain routing)
12
www.glcnetworks.com
IP spec (RFC 791)
13
www.glcnetworks.com
How the layer 3 address look like?
14
www.glcnetworks.com
Layer 3 connection and addressing
R3
192.168.0.3/26 192.168.3.9/24
192.168.0.1/26
192.168.1.1/24
192.168.0.0/26
R1
192.168.0.2/26
192.168.1.0/24
R2
192.168.2.9/24
192.168.1.9/24
192.168.2.2/24 192.168.2.0/24
15
www.glcnetworks.com
What is VLSM?
16
www.glcnetworks.com
VLSM RFC
17
www.glcnetworks.com
What is CIDR?
18
www.glcnetworks.com
CIDR RFC
19
www.glcnetworks.com
Routing
20
www.glcnetworks.com
What is routing table?
destination gateway
● A table at router that is used to
192.168.0.0/26 direct forward packet
192.168.1.0/24 direct ● Available on every devices (router
192.168.2.0/24 192.168.0.2 and host)
● Entry is executed sequentially
192.168.3.0/24 192.168.0.3
192.168.1.1/24
192.168.0.0/26
R1
192.168.0.2/26
192.168.1.0/24
R2
192.168.2.9/24
192.168.1.9/24
192.168.2.2/24 192.168.2.0/24
21
www.glcnetworks.com
When router receive a packet…
(setup priority on routing table)
● Router will analyse the destination IP address
● Router will rearrange the routing entry and put priority
○ Longest prefix wins
○ Lowest distance wins
22
www.glcnetworks.com
How the routing table works (R1)?
destination gateway
192.168.16.3/32 192.168.0.2
11000000 10101000 00001000 00000011
192.168.0.0/26 direct
11000000 10101000 00000000 00
192.168.1.0/24 direct
11000000 10101000 00000001
192.168.2.0/24 192.168.0.2
11000000 10101000 00000010
192.168.3.0/24 192.168.0.3
11000000 10101000 00000011
0.0.0.0/0 192.168.0.3
23
www.glcnetworks.com
A packet arrived… (part 1)
destination gateway
192.168.16.3/32 192.168.0.2
11000000 10101000 00001000 00000011 MATCH
192.168.0.0/26 direct
11000000 10101000 00000000 00
192.168.1.0/24 direct
11000000 10101000 00000001
192.168.2.0/24 192.168.0.2
11000000 10101000 00000010
192.168.3.0/24 192.168.0.3
11000000 10101000 00000011
0.0.0.0/0 192.168.0.3
24
www.glcnetworks.com
A packet arrived… (part 2)
destination gateway
192.168.16.3/32 192.168.0.2
NOT MATCH
11000000 10101000 00001000 00000011
192.168.0.0/26 direct
11000000 10101000 00000000 00 NOT MATCH
192.168.2.0/24 192.168.0.2
11000000 10101000 00000010 MATCH
192.168.3.0/24 192.168.0.3
11000000 10101000 00000011
0.0.0.0/0 192.168.0.3
25
www.glcnetworks.com
A packet arrived… (part 3)
destination gateway
192.168.16.3/32 192.168.0.2
NOT MATCH
11000000 10101000 00001000 00000011
192.168.0.0/26 direct
11000000 10101000 00000000 00 NOT MATCH
192.168.2.0/24 192.168.0.2
11000000 10101000 00000010 NOT MATCH
0.0.0.0/0 192.168.0.3
MATCH
26
www.glcnetworks.com
Static routing
destination gateway ● Entries on routing table is created
192.168.0.0/26 direct manually
● Admin must manage routing table
192.168.1.0/24 direct
in all routers
192.168.2.0/24 192.168.0.2
● Admin have full control
192.168.3.0/24 192.168.0.3
192.168.1.1/24
192.168.0.0/26
R1
192.168.0.2/26
192.168.1.0/24
R2
192.168.2.9/24
192.168.1.9/24
192.168.2.2/24 192.168.2.0/24
27
www.glcnetworks.com
Dynamic routing
destination gateway ● Entries on routing table is created
192.168.0.0/26 direct automatically using routing protocol
(RIP, OSPF, BGP)
192.168.1.0/24 direct
● Admin must have a good
192.168.2.0/24 192.168.0.2
knowledge about routing protocol
192.168.3.0/24 192.168.0.3
192.168.1.1/24
192.168.0.0/26
R1
192.168.0.2/26
192.168.1.0/24
R2
192.168.2.9/24
192.168.1.9/24
192.168.2.2/24 192.168.2.0/24
28
www.glcnetworks.com
DEMO
29
www.glcnetworks.com
Mikrotik routing table
30
www.glcnetworks.com
QA
31
www.glcnetworks.com
Interested?
Just come to our
training...
Special price for webinar attendees...
32
www.glcnetworks.com
End of slides
33
www.glcnetworks.com