Teknik Komputer & Jaringan

Tuesday, October 25, 2016

Konfigurasi OSPF

1.    TOPOLOGI

2.    KONSEP DASAR
· OSPF singkatan dari Open Shortest Path First
· OSPF merupakan routing protocol open standar yang diimplementasikan oleh berbagai
macam vendor, termasuk Cisco
· Link-state protocol
· OSPF bekerja dengan menggunakan algoritma Dijkstra
· Hop count unlimited
· Metric: cost (cost=10^8 / BW)
· Administrative Distance: 110
· Classless routing protocol
· Mendukung VLSM dan CIDR
· Hanya mendukung equal cost load balancing
· Terdapat konsep area untuk memudahkan manajemen dan control traffic
· 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 ke area 0
· Dari scalabilitas lebih baik dibandingkan dengan protocol distance vector
· Mendukung autentikasi
· Update melalui multicast address: 224.0.0.5
· Konvergensi cepat
· Mengirimkan hello packet setiap 10 second
· Trigger/Incrementeal updates
o Router mengirimkan update hanya jika terjadi perubahan dan tidak mengirimkan
semua routing table pada periodic update

Keuntungan OSPF
· Open standard
· Tidak ada batasan jumlah hop
· Loop free
· Konvergensi lebih cepat
Kerugian OSPF
· Mengkonsumsi lebih banyak resource CPU
· Kompleks dalam hal design dan implementasi
· Hanya mendukung equal load balancing
· Hanya mendukung protocol IP

3.    PEMBERIAN IP
a.    Router0
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R0
R0(config)#interface fastEthernet 0/0
R0(config-if)#ip address 10.10.10.1 255.255.255.0
R0(config-if)#no shutdown
R0(config-if)#exit
R0(config)#interface fastEthernet 0/1
R0(config-if)#ip address 192.168.10.1 255.255.255.0
R0(config-if)#no shutdown
b.    Router1
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface FastEthernet 0/0
R1(config-if)#ip address 10.10.10.2 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface Ethernet0/1/0
R1(config-if)#ip address 192.168.20.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#exit
R1(config)#interface FastEthernet0/1
R1(config-if)#ip address 20.20.20.1 255.255.255.0
R1(config-if)#no shutdown
c.    Router2
Router>enable
Router#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface FastEthernet0/0
R2(config-if)#ip address 20.20.20.2 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#exit
R2(config)#interface FastEthernet0/1
R2(config-if)#ip address 192.168.30.1 255.255.255.0
R2(config-if)#no shutdown
d.    PC0

e.    PC1


f.     PC2

4.    KONFIGURASI OSPF
a.    Setting R0
R0(config)#router ospf 1
R0(config-router)#network 10.10.10.0 0.0.0.255 area 0
R0(config-router)#network 192.168.10.0 0.0.0.255 area 0
R0(config-router)#do wr
Building configuration...
[OK]
b.    Setting R1
R1(config)#router ospf 1
R1(config-router)#network 10.10.10.0 0.0.0.255 area 0
R1(config-router)#network 20.20.20.0 0.0.0.255 area 0
R1(config-router)#network 192.168.20.0 0.0.0.255 area 0
R1(config-router)#do wr
Building configuration...
[OK]

c.    Setting R2
R2(config)#router ospf 1
R2(config-router)#network 20.20.20.0 0.0.0.255 area 0
R2(config-router)#network 192.168.30.0 0.0.0.255 area 0
R2(config-router)#do wr
Building configuration...
[OK]

5.    HASIL KONFIGURASI
a.    Tampilan routing setelah disetting OSPF
R0(config)#do show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
       * - candidate default, U - per-user static route, o - ODR
       P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 1 subnets
C       10.10.10.0 is directly connected, FastEthernet0/0
     20.0.0.0/24 is subnetted, 1 subnets
O       20.20.20.0 [110/2] via 10.10.10.2, 00:00:31, FastEthernet0/0
C    192.168.10.0/24 is directly connected, FastEthernet0/1
O    192.168.20.0/24 [110/11] via 10.10.10.2, 00:00:31, FastEthernet0/0
O    192.168.30.0/24 [110/3] via 10.10.10.2, 00:00:31, FastEthernet0/0
R0(config)#

b.    Hasil Ping PC0 ke PC2 dan PC3




Share:

0 comments:

Post a Comment

Copyright © SITI OCTAVIANAH | Powered by Blogger
Design by Siti Octavianah | Blogger Theme by sisiti.tk

About | Contact Us | Privacy Policy