Judul : Lab Super Mikrotik 19
link : Lab Super Mikrotik 19
Lab Super Mikrotik 19
Materi Lab- OSPF
- Stub Area
- NSSA Area
- BGP
- eBGP
- RIP
- Redistribute
Tujuan Lab
Menhubungkan semua Router menggunakan OSPF, BGP dan RIP. Dalam OSPF terdapat area Stub dan NSSA yang tidak akan menerima informasi dari Routing Protocol lainnya (RIP, BGP), untuk komunikasi antar Routing protocol maka kita harus melakukan redistribute.
Area Backbone
Area backbone ini merupakan area pusat dan transit seluruh informasi yang didapatkan oleh OSPF, dalam area ini terdapat 4 Router yaitu R1, R2, R10, dan R11IP Address
Kita konfigurasi IP Address seluruh interface RouterR1
/ip address
add address=12.12.12.1/24 interface=ether1 network=12.12.12.0
add address=17.17.17.1/24 interface=ether2 network=17.17.17.0
add address=110.110.110.1/24 interface=ether3 network=110.110.110.0
R2
/ip address
add address=12.12.12.2/24 interface=ether1 network=12.12.12.0
add address=211.211.211.2/24 interface=ether2 network=211.211.211.0
add address=23.23.23.2/24 interface=ether3 network=23.23.23.0
R10
/ip address
add address=110.110.110.10/24 interface=ether1 network=110.110.110.0
add address=10.11.10.10/24 interface=ether2 network=10.11.10.0
add address=10.12.10.10/24 interface=ether3 network=10.12.10.0
R11
/ip address
add address=10.11.10.11/24 interface=ether1 network=10.11.10.0
add address=211.211.211.11/24 interface=ether2 network=211.211.211.0
add address=11.16.11.11/24 interface=ether3 network=11.16.11.0
Routing OSPF
Konfigurasi Routing OSPF setiap RouterR1
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=1.1.1.1
/routing ospf area
add instance=lab-ospf name=backbone-lab
add area-id=0.0.0.4 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area4-lab translator-role=translate-candidate type=nssa
add area-id=0.0.0.102 instance=lab-ospf name=area102-lab
/routing ospf network
add area=backbone-lab network=12.12.12.0/24
add area=area4-lab network=17.17.17.0/24
add area=backbone-lab network=110.110.110.0/24
R2
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=2.2.2.2
/routing ospf area
add instance=lab-ospf name=backbone-lab
add area-id=0.0.0.39 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area39-lab type=stub
add area-id=0.0.0.102 instance=lab-ospf name=area102-lab
/routing ospf network
add area=backbone-lab network=12.12.12.0/24
add area=area39-lab network=23.23.23.0/24
add area=backbone-lab network=211.211.211.0/24
R10
/routing ospf instance
add name=lab-ospf router-id=10.10.10.10
/routing ospf area
add instance=lab-ospf name=backbone-lab
add area-id=0.0.12.13 instance=lab-ospf name=area1213
/routing ospf network
add area=backbone-lab network=110.110.110.0/24
add area=backbone-lab network=10.11.10.0/24
add area=area1213 network=10.12.10.0/24
R11
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=11.11.11.11
/routing ospf area
add instance=lab-ospf name=backbone-lab
add area-id=0.0.15.16 instance=lab-ospf name=area1516
/routing ospf network
add area=backbone-lab network=10.11.10.0/24
add area=backbone-lab network=211.211.211.0/24
add area=area1516 network=11.16.11.0/24
Area Stub 39
Setiap Router pada area ini tidak akan menerima informasi yang berasal dari Routing protocol lainnya yaitu BGP dan RIP karena area ini merupakan area Stub pada OSPF.IP Address
R3
/ip address
add address=23.23.23.3/24 interface=ether1 network=23.23.23.0
add address=38.38.38.3/24 interface=ether2 network=38.38.38.0
add address=39.39.39.3/24 interface=ether3 network=39.39.39.0
R8
/ip address
add address=38.38.38.8/24 interface=ether1 network=38.38.38.0
add address=89.89.89.8/24 interface=ether2 network=89.89.89.0
R9
/ip address
add address=39.39.39.9/24 interface=ether2 network=39.39.39.0
add address=89.89.89.9/24 interface=ether1 network=89.89.89.0
Routing OSPF
R3
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=3.3.3.3
/routing ospf area
add area-id=0.0.0.39 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area39-lab type=stub
/routing ospf network
add area=area39-lab network=23.23.23.0/24
add area=area39-lab network=38.38.38.0/24
add area=area39-lab network=39.39.39.0/24
R8
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=8.8.8.8
/routing ospf area
add area-id=0.0.0.39 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area39-lab type=stub
/routing ospf network
add area=area39-lab network=38.38.38.0/24
add area=area39-lab network=89.89.89.0/24
R9
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=9.9.9.9
/routing ospf area
add area-id=0.0.0.39 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area39-lab type=stub
/routing ospf network
add area=area39-lab network=39.39.39.0/24
add area=area39-lab network=89.89.89.0/24
Area 4 NSSA
Pada area ini sama seperti area stub yaitu area yang tidak akan menerima informasi dari Routing Protocol lain selain OSPF, akan tetapi pada area NSSA masih memiliki informasi dari Routing protocol lain dia sendiri dan mendistribusikannya pada setiap area OSPF lainnya, itu sebabnya pada area ini saya juga menggunakan BGP sebagai contohnya.IP Addresss
R5
/interface bridge
add name=lo0
/ip address
add address=45.45.45.5/24 interface=ether1 network=45.45.45.0
add address=50.50.50.50 interface=lo0 network=50.50.50.50
R6
/interface bridge
add name=lo0
/ip address
add address=46.46.46.6/24 interface=ether1 network=46.46.46.0
add address=60.60.60.60 interface=lo0 network=60.60.60.60
R7
/interface bridge
add name=lo0
/ip address
add address=47.47.47.7/24 interface=ether1 network=47.47.47.0
add address=17.17.17.7/24 interface=ether2 network=17.17.17.0
add address=70.70.70.70 interface=lo0 network=70.70.70.70
Konfigurasi BGP
R5
/routing bgp instance
set default disabled=yes
add as=5 name=lab-bgp redistribute-connected=yes router-id=5.5.5.5
/routing bgp peer
add instance=lab-bgp name=peer1 remote-address=45.45.45.4 remote-as=4
R6
/routing bgp instance
set default disabled=yes
add as=6 name=lab-bgp redistribute-connected=yes router-id=6.6.6.6
/routing bgp peer
add instance=lab-bgp name=peer1 remote-address=46.46.46.4 remote-as=4
R7
Pada Router ini juga menggunakan OSPF maka kita konfigurasi redistribute pada Router ini, karena pada Router ini memiliki default route (hasil area nssa) maka kita set default-originate=always/routing bgp instance
set default disabled=yes
add as=7 name=lab-bgp redistribute-connected=yes redistribute-ospf=yes \
router-id=7.7.7.7
/routing bgp peer
add default-originate=always instance=lab-bgp name=peer1 remote-address=\
47.47.47.4 remote-as=4
Konfigurasi OSPF Pada R7
/routing ospf area
set [ find default=yes ] disabled=yes
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf redistribute-bgp=as-type-2 redistribute-connected=as-type-2 \
router-id=7.7.7.7
/routing ospf area
add area-id=0.0.0.4 default-cost=1 inject-summary-lsas=yes instance=lab-ospf \
name=area4-nssa translator-role=translate-candidate type=nssa
/routing ospf network
add area=area4-nssa network=17.17.17.0/24
Area 12.13 & 15.16
Pada kedua area ini masing-masing terdapat dua Router jadi total ada 4 Router pada area ini, pada area ini juga terdapat Routing protocol lain yaitu RIPIP Address
R12
/ip address
add address=10.12.10.12/24 interface=ether1 network=10.12.10.0
add address=12.13.12.12/24 interface=ether2 network=12.13.12.0
R13
/ip address
add address=12.13.12.13/24 interface=ether1 network=12.13.12.0
add address=13.14.13.13/24 interface=ether2 network=13.14.13.0
R15
/ip address
add address=14.15.14.15/24 interface=ether1 network=14.15.14.0
add address=15.16.15.15/24 interface=ether2 network=15.16.15.0
R16
/ip address
add address=11.16.11.16/24 interface=ether2 network=11.16.11.0
add address=15.16.15.16/24 interface=ether1 network=15.16.15.0
Konfigurasi OSPF
R12
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=12.12.12.12
/routing ospf area
add area-id=0.0.12.13 instance=lab-ospf name=area1213
/routing ospf network
add area=area1213 network=10.12.10.0/24
add area=area1213 network=12.13.12.0/24
R13
/routing ospf instance
add in-filter=ospf15-in name=lab-ospf out-filter=ospf14-out \
redistribute-connected=as-type-2 redistribute-rip=as-type-2 router-id=\
13.13.13.13
/routing ospf area
add area-id=0.0.12.13 instance=lab-ospf name=area1213
/routing ospf network
add area=area1213 network=12.13.12.0/24
R15
/routing ospf instance
set [ find default=yes ] disabled=yes
add in-filter=ospf14-in name=lab-ospf out-filter=ospf15-out redistribute-rip=\
as-type-2 router-id=15.15.15.15
/routing ospf area
add area-id=0.0.15.16 instance=lab-ospf name=area1516
/routing ospf network
add area=area1516 network=15.16.15.0/24
R16
/routing ospf instance
set [ find default=yes ] disabled=yes
add name=lab-ospf router-id=16.16.16.16
/routing ospf area
add area-id=0.0.15.16 instance=lab-ospf name=area1516
/routing ospf network
add area=area1516 network=11.16.11.0/24
add area=area1516 network=15.16.15.0/24
Konfigurasi RIP
Ada dua Router yang juga menjalankan RIP, dan melakukan redistribute antara OSPF ke RIP dan RIP ke OSPFR13
/routing rip
set redistribute-ospf=yes
/routing rip network
add network=13.14.13.0/24
R15
/routing rip
set redistribute-ospf=yes
/routing rip network
add network=14.15.14.0/24
RIP pada R14
Router ini berada diantara dua area OSPF yang menjalankan Routing Protocol RIPR14
/ip address
add address=13.14.13.14/24 interface=ether1 network=13.14.13.0
add address=14.15.14.14/24 interface=ether2 network=14.15.14.0
/routing rip network
add network=13.14.13.0/24
add network=14.15.14.0/24
Konfirmasi
Setelah semua konfigurasi selesai dilakukan sekarang kita cek apakah konfigurasi sudah benar.Routing Table Backbone Area
[admin@R1] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADo 10.11.10.0/24 110.110.110.10 110
1 ADo 10.12.10.0/24 110.110.110.10 110
2 ADo 11.16.11.0/24 12.12.12.2 110
110.110.110.10
3 ADC 12.12.12.0/24 12.12.12.1 ether1 0
4 ADo 12.13.12.0/24 110.110.110.10 110
5 ADo 13.14.13.0/24 110.110.110.10 110
6 ADo 14.15.14.0/24 110.110.110.10 110
7 ADo 15.16.15.0/24 12.12.12.2 110
110.110.110.10
8 ADC 17.17.17.0/24 17.17.17.1 ether2 0
9 ADo 23.23.23.0/24 12.12.12.2 110
10 ADo 38.38.38.0/24 12.12.12.2 110
11 ADo 39.39.39.0/24 12.12.12.2 110
12 ADo 45.45.45.0/24 17.17.17.7 110
13 ADo 46.46.46.0/24 17.17.17.7 110
14 ADo 47.47.47.0/24 17.17.17.7 110
15 ADo 50.50.50.50/32 17.17.17.7 110
16 ADo 60.60.60.60/32 17.17.17.7 110
17 ADo 70.70.70.70/32 17.17.17.7 110
18 ADo 89.89.89.0/24 12.12.12.2 110
19 ADC 110.110.110.0/24 110.110.110.1 ether3 0
20 ADo 211.211.211.0/24 12.12.12.2 110
Routing Table Stub Area
Pada area stub adalah area yang tidak akan menerima informasi yang berasal dari Routing protocol lain.[admin@R8] > ip route printTerlihat jika pada Stub area informasi yang didapatkan lebih sedikit dan digantikan dengan default route.
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADo 0.0.0.0/0 38.38.38.3 110
1 ADo 10.11.10.0/24 38.38.38.3 110
2 ADo 10.12.10.0/24 38.38.38.3 110
3 ADo 11.16.11.0/24 38.38.38.3 110
4 ADo 12.12.12.0/24 38.38.38.3 110
5 ADo 12.13.12.0/24 38.38.38.3 110
6 ADo 15.16.15.0/24 38.38.38.3 110
7 ADo 17.17.17.0/24 38.38.38.3 110
8 ADo 23.23.23.0/24 38.38.38.3 110
9 ADC 38.38.38.0/24 38.38.38.8 ether1 0
10 ADo 39.39.39.0/24 38.38.38.3 110
89.89.89.9
11 ADC 89.89.89.0/24 89.89.89.8 ether2 0
12 ADo 110.110.110.0/24 38.38.38.3 110
13 ADo 211.211.211.0/24 38.38.38.3 110
Routing Table NSSA
Sama seperti stub tetapi area ini masih menerima informasi dari Routing Protocol lain yang ada pada area dia sendiri[admin@R4] > ip route print
Flags: X - disabled, A - active, D - dynamic,
C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme,
B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 ADb 0.0.0.0/0 47.47.47.7 20
1 ADb 10.11.10.0/24 47.47.47.7 20
2 ADb 10.12.10.0/24 47.47.47.7 20
3 ADb 11.16.11.0/24 47.47.47.7 20
4 ADb 12.12.12.0/24 47.47.47.7 20
5 ADb 12.13.12.0/24 47.47.47.7 20
6 ADb 15.16.15.0/24 47.47.47.7 20
7 ADb 17.17.17.0/24 47.47.47.7 20
8 ADb 23.23.23.0/24 47.47.47.7 20
9 ADb 38.38.38.0/24 47.47.47.7 20
10 ADb 39.39.39.0/24 47.47.47.7 20
11 ADC 45.45.45.0/24 45.45.45.4 ether1 0
12 Db 45.45.45.0/24 45.45.45.5 20
13 ADC 46.46.46.0/24 46.46.46.4 ether2 0
14 Db 46.46.46.0/24 46.46.46.6 20
15 ADC 47.47.47.0/24 47.47.47.4 ether3 0
16 Db 47.47.47.0/24 47.47.47.7 20
17 ADb 50.50.50.50/32 45.45.45.5 20
18 ADb 60.60.60.60/32 46.46.46.6 20
19 ADb 70.70.70.70/32 47.47.47.7 20
20 ADb 89.89.89.0/24 47.47.47.7 20
21 ADb 110.110.110.0/24 47.47.47.7 20
22 ADb 211.211.211.0/24 47.47.47.7 20
Demikianlah Artikel Lab Super Mikrotik 19
Sekianlah artikel Lab Super Mikrotik 19 kali ini, mudah-mudahan bisa memberi manfaat untuk anda semua. baiklah, sampai jumpa di postingan artikel lainnya.
Anda sekarang membaca artikel Lab Super Mikrotik 19 dengan alamat link https://anothers-stuff.blogspot.com/2017/02/lab-super-mikrotik-19.html