Ospf 131219194414 Phpapp01
Ospf 131219194414 Phpapp01
I. Tujuan
1. Mahasiswa memahami tentang cara kerja protokol routing dinamis.
2. Mahasiswa dapat melakukan konfigurasi protokol OSPF pada cisco router.
II. Peralatan
1. PC dengan software Packet Tracer
Keunggulan OSPF, yaitu konsep jaringan hirarki yang membuat proses update
informasinya lebih termanajemen dengan baik. Dalam menerapkan konsep hirarki ini,
OSPF menggunakan pembagian jaringan berdasarkan konsep area-area. Pembagian
berdasarkan area ini yang juga merupakan salah satu kelebihan OSPF.
OSPF adalah routing protocol berbasis link state, termasuk dalam Interior
Gateway Protocol (IGP). Menggunakan algoritma Dijkstra untuk menghitung Shortest
Path First (SPF). Menggunakan cost sebagai routing metric. OSPF di desain oleh IETF
( Internet Engineering Task Force ) yang pada mulanya dikembangkan dari algoritma
SPF (shortest path first). OSPF diturunkan dari beberapa periset seperti Bolt, Beranek,
Newmans. Protokol ini bersifat open yang berarti dapat diadopsi oleh siapa pun. OSPF
dipublikasikan pada RFC nomor 1247.
Karakteristik Open Shortest Path First (OSPF) :
• Menggunakan Algoritma link-state
• Membutuhkan waktu CPU dan memori yang besar
• Tidak menyebabkan routing loop
• Dapat membentuk heirarki routing menggunakan konsep area
• Cepat mengetahui perubahan pada jaringan
• Dapat menggunakan beberapa metrik
1
Dengan kemampauan melayani jaringan lokal berskala besar. Artinya OSPF
haruslah memiliki nilai skalabilitas yang tinggi, tidak mudah habis atau “mentok” karena
jaringan yang semakin diperbesar. Namun nyatanya pada penerapan OSPF biasa,
beberapa kejadian juga dapat membuat router OSPF kewalahan dalam menangani
jaringan yang semakin membesar. Router OSPF akan mencapai titik kewalahan ketika:
2
Gambar 1. Contoh
3
IV. Percobaan
1. Percobaan point to point (p2p).
a. Bentuk topologi jaringan seperti pada gambar berikut !
Router 0:
Router(config)#int loopback 0
%LINK-5-CHANGED: Interface Loopback0, changed state
to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
Loopback0, changed state to up
Router(config-if)#ip add 3.3.3.3 255.255.255.255
Router(config-if)#int s0/0/0
Router(config-if)#ip add 1.1.1.2 255.255.255.0
Router(config-if)#router ospf 1
Router(config-router)#network 1.1.1.0 0.0.0.255 area 0
Router(config)#int loopback 0
Router(config-if)#ip add 2.2.2.2 255.255.255.255
Router(config-if)#int s0/0/0
Router(config-if)#
Router(config-if)#ip add 1.1.1.1 255.255.255.0
Router(config-if)#clock rate 2000000
Router(config-if)#router ospf 1
Router(config-router)#network 1.1.1.0 0.0.0.255 area 0
c. Lakukan konfigurasi Router OSPF pada semua router.
c) show ip protocol.
Router#sh ip protocol
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces
is not set
Incoming update filter list for all interfaces
is not set
Router ID 3.3.3.3
Number of areas in this router is 1. 1 normal 0
stub 0 nssa
Maximum path: 4
Routing for Networks:
1.1.1.0 0.0.0.255 area 0
Routing Information Sources:
Gateway Distance Last Update
2.2.2.2 110 00:08:03
3.3.3.3 110 00:08:03
Distance: (default is 110)
d) show ip ospf.
Router#sh ip ospf
Routing Process "ospf 1" with ID 3.3.3.3
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two
SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival
1 secs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
Number of DCbitless external and opaque AS LSA 0
5
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0
stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 3 times
Area ranges are
Number of LSA 2. Checksum Sum 0x009ea0
Number of opaque link LSA 0. Checksum Sum
0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
6
First 0x0(0)/0x0(0) Next 0x0(0)/0x0(0)
Last retransmission scan length is 0, maximum
is 0
Last retransmission scan time is 0 msec,
maximum is 0 msec
c) show ip protocol.
Router#sh ip protocol
7
Routing Protocol is "ospf 1"
Outgoing update filter list for all interfaces
is not set
Incoming update filter list for all interfaces
is not set
Router ID 2.2.2.2
Number of areas in this router is 1. 1 normal 0
stub 0 nssa
Maximum path: 4
Routing for Networks:
1.1.1.0 0.0.0.255 area 0
Routing Information Sources:
Gateway Distance Last Update
2.2.2.2 110 00:15:39
3.3.3.3 110 00:15:39
Distance: (default is 110)
e) show ip ospf.
Router#sh ip ospf
Routing Process "ospf 1" with ID 2.2.2.2
Supports only single TOS(TOS0) routes
Supports opaque LSA
SPF schedule delay 5 secs, Hold time between two
SPFs 10 secs
Minimum LSA interval 5 secs. Minimum LSA arrival
1 secs
Number of external LSA 0. Checksum Sum 0x000000
Number of opaque AS LSA 0. Checksum Sum 0x000000
8
Number of DCbitless external and opaque AS LSA 0
Number of DoNotAge external and opaque AS LSA 0
Number of areas in this router is 1. 1 normal 0
stub 0 nssa
External flood list length 0
Area BACKBONE(0)
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 1 times
Area ranges are
Number of LSA 2. Checksum Sum 0x009ea0
Number of opaque link LSA 0. Checksum Sum
0x000000
Number of DCbitless LSA 0
Number of indication LSA 0
Number of DoNotAge LSA 0
Flood list length 0
9
.....
Success rate is 0 percent (0/5)
e. Hasil table routing.
1) Router pertama
Router#sh 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
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Serial0/0/0
3.0.0.0/32 is subnetted, 1 subnets
C 3.3.3.3 is directly connected, Loopback0
2) Router kedua
Router(config-if)#do sh 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
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Serial0/0/0
2.0.0.0/32 is subnetted, 1 subnets
C 2.2.2.2 is directly connected, Loopback0
10
V. ANALISA DAN KESIMPULAN
Dalam konfigurasi OSPF tidak jauh beda dengan protokol routing dinamis
yang lain seperti EIGRP yang menggunakan wildcard, namun OSPF memiliki
perbedaan yaitu penggunaan area pada saat konfigurasi dilakukan.
11
12
13