Searching

Selasa, 01 September 2020

OSPF Konfiguration


Senin, 02 September 2020

Configuration OSPF

            Gambarkanlah topologi dibawah ini :

 


Tabel Addressing :

Device

Interface

IP add

Subnet Mask

Dafault Gateway

R1

Fa0/0

192.168.1.254

255.255.255.0

N/A

Fa1/0

12.12.12.1

255.255.255.0

N/A

Lo1

172.16.1.1

255.255.255.0

N/A

Lo2

172.16.2.2

255.255.255.0

N/A

R2

Fa0/0

192.168.2.254

255.255.255.0

N/A

Fa1/0

12.12.12.2

255.255.255.0

N/A

Lo3

172.16.3.3

255.255.255.0

N/A

Lo4

172.16.4.4

255.255.255.0

N/A

Sw1

N/A

Vlan 1

N/A

N/A

Sw2

N/A

Vlan 1

N/A

N/A

Pc0

NIC

192.168.1.1

255.255.255.0

192.168.1.254

Pc1

NIC

192.168.2.1

255.255.255.0

192.168.2.254

 

Tujuan :

Setting OSPF

Setting-router-id OSPF

Setting Passive-interface 

 

Konsep Dasar

OSPF singkatan dari Open Shortes Path First

OSPS merupakan routing protocol open standart yang diimplementasikan oleh berbagai macam vendor, termasuk cisco

Link State Protocol

OSPF bekerja dengan menggunakan Algoritma Djikstra

HOP Count Unlimited

Metric : Cost(Cost=10^8/BW)

Adminitrative Distance: 110

Classes routing protocol

Mendukung VLSM dan CIDR

Hanya mendukung equal cost load balancing

Terdapat konsep area untuk memudahkan manajemen dan control tarffic

Menyediakan design hierarki dengan multiple area

Harus memiliki satu area yang disebut sebagai area 0 atau backbone area

Semua area selain 0(non-backbone area) harus terhubung kearea 0

Dari scalabilitas lebih baik di bandingkan dengan protocol distance vector

Mendukung autentikasi

Update melalui multicast address:224.0.0.5

Konvergnsi cepat

Mengirikan hello packet setiap 10 detik

Trigger/increment updates router mengirimkan update hanya jika terjadi perubahan dan tidak mengirimkan semua routing table pada periodic update.

OSPF Memaintain 3 Tabel

Neighbor Tabel

Dikenal juga sebagai adjacency database

Menampilkan informasi direcly donnected router(neighbors)

Command :show ip ospf neighbor

Database Tabel  

disebut juga LSBD(link state database)

Menampilkan semua kemungkinan informasi route menuju network dalam satu area

Commad : show ip ospf database

Routing table

Menampillkan best route menuju destination

Commad : show ip route

 

Keuntungan OSPF:

Open standar

Tidak ada batasan julah hops

Loop free

Konvergensi lebih cepat

Kerugian OSPF :                                 

Mengkonsumsi lebih banyak resourse CPU

Kompleks dalam design dan implementasi

Hanya mendukung equal load balancing

Hanya mendukung protocol IP :

Konfigurasi pada Router 1 (sebelah kiri)

Router>en

Router#conf t

Router(config)#hostname R1

R1(config)#enable secret satu

R1(config)#line console 0

R1(config-iline)#password satu

R1(config-line)#exec-timeout 5 0

R1(config-line)#login

R1(config-line)#exit

R1(config)#line vty 0 5

R1(config-line)#password satu

R1(config-line)#exec-timeout 5 0

R1(config-line)#login

R1(config-line)#exit

R1(config)#service password-encryption

R1(config)#int fa0/0

R1(config-if)#ip add 192.168.1.254 255.255.255.0

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#int fa1/0

R1(config-if)#ip add  12.12.12.1 255.255.255.0

R1(config-if)# no shut

R1(config)#int lo1

R1(config-if)#ip add  172.16.1.1 255.255.255.0

R1(config-if)#exit

R1(config)#int lo2

R1(config-if)#ip add  172.16.2.2 255.255.255.0

R1(config-if)#exit

R1(config)#

Konfigurasi pada router 2 (sebelah kanan)

Router>en

Router#conf t

Router(config)#hostname R2

R2(config)#enable secret satu

R2(config)#line console 0

R2(config-iline)#password satu

R2(config-line)#exec-timeout 5 0

R2(config-line)#login

R2(config-line)#exit

R2(config)#line vty 0 5

R2(config-line)#password satu

R2(config-line)#exec-timeout 5 0

R2(config-line)#login

R2(config-line)#exit

R2(config)#service password-encryption

R2(config)#int fa0/0

R2(config-if)#ip add 192.168.2.254 255.255.255.0

R2(config-if)#no shut

R2(config-if)#exit

R2(config)#int fa1/0

R2(config-if)#ip add  12.12.12.2 255.255.255.0

R2(config-if)# no shut

R2(config)#int lo3

R2(config-if)#ip add  172.16.3.3 255.255.255.0

R2(config-if)#exit

R2(config)#int lo4

R2(config-if)#ip add  172.16.4.4 255.255.255.0

R2(config-if)#exit

R2(config)#

 

Kita Cek terlebih dahulu routing tabel sebelum kita melakukan route OSPF pada R1



Dari gambar tersebut, hanya terdapat direcly connected network yang ditandai dengan kode C. 

Agar proses routing berhasil, harus disetting OSPF disemua router terlebih dahulu. Setelah itu baru diverifikasi dengan tes ping end-to-end devicenya.

Setting OSPF di R1

R1(config)#router ospf 1

R1(config-router)#net 12.12.12.0 0.0.0.255 area 0

R1(config-router)#net 192.168.1.0 0.0.0.255 area 0

R1(config-router)#net 172.16.1.0 0.0.0.255 area 0

R1(config-router)#net 172.16.2.0 0.0.0.255 area 0

Setting OSPF pada R2

R2(config)#router ospf 1

R2(config-router)#net 12.12.12.0 0.0.0.255 area 0

R2(config-router)#net 192.168.2.0 0.0.0.255 area 0

R2(config-router)#net 172.16.3.0 0.0.0.255 area 0

R2(config-router)#net 172.16.4.0 0.0.0.255 area 0

Berikan Ip address pada setiap PC yang ada :




Verifikasi :

Tampilkan routing table setelah Route OSPF di R1



Tampilkan Informasi Neighbor OSPF dan Informasi Routing Protocol di R1


Tampilkan Informasi Neighbor OSPF dan Informasi Routing Protocol di R2

 

Dari informasi routing diatas, R1 menjalan OSPF dengan proses ID 1. Ada 4 network yang di routingkan oleh R1. Administrative distance 110. R1 memiliki router ID 172.16.2.2

R1 memiliki neighbor 172.16.4.4 (IP loopback R2). 172.16.4.4 merupakan router-ID R2

Tampilkan Informasi database OSPF di R1



Diarea 0 hanya terdapat 2 router dengan ID: 172.16.2.2 dan 172.16.4.4

Tes ping dan Traceroute dari PC0 ke PC1

Gambar12 (ping pc0 ke pc1)


Tes ping dan Traceroute dari PC1 ke PC0


Tampilkan routing table spesifik OSPF di R1 

 


Setting router-OSPF di R1

R1(config)#router ospf 1

R1(config-router)#router-id 111.111.111.111

R1(config-router)#reload or use"clear ip ospf process" commad, for this to take effect

Setting router-OSPF di R2

R1(config)#router ospf 1

R1(config-router)#router-id 222.222.222.222

R1(config-router)#reload or use"clear ip ospf process" commad, for this to take effect

Setelah menjalankan command router-id diatas, jalankan command Clear ip OSPF process untuk mereset proses OSPF di R1 maupun R2, sehingga router-id OSPF akan berubah.

Gambar 21(clear ospf r1)


Tampilkan neighbor table OSPF di R1




Dari ouput neighbor table di R1, bisa kita lihat dikolom neighbor ID terdapat  222.222.222.222, dimana 222.222.222.222 adalah router-id R2, dengan demikian, setting router-ID OSPF di R2 telah berhasil.

Note : ulangi langkah yang sama diatas untuk mereset process OSPF dan tampilkan neighbor table OSPF di R2, pastikan neighbor ID R1 111.111.111.111

 Setting Passive-Interface OSPF di R1

R1(config)#router ospf 1

R1(config-router)#Passive-interface fa0/0

R1(config-router)#

Link Dowload .PKT dan Config ||DISINI||

Referensi :

Ebook “CCNA Lab Guide Nixtrain_1st Edition_Full Version”  Agus Setiawan

Qoutes:

"Consistency is one of the biggest factors in leading to accomplishment and success" Byron Pulsifer

'Konsistensi adalah salah satu faktor terbesar dalam menuju pencapaian dan kesuksesan'

 

 

 

 

 

 

 

 

Tidak ada komentar:

Posting Komentar