Assalamu'alaikum wr.wb
Kali ini kita akan belajar bagaimana cara mengkonfigurasi OSPF Routing pada Cisco Packet Tracer. OSPF atau Open Shortest Path First merupakan salah satu protocol routing Link State yang bersifat open, sehingga hampir semua router mendukung routing Protocol ini. OSPF membagi router-router kedalam beberapa area. Dalam sebuah routing OSPF harus terdapat Area 0 atau area backbone dimana semua area harus terhubung langsung dengan area 0 tersebut. untuk lebih jelasnya kalian dapat membaca artikel Static Routing dan Dynamic Routing untuk penjelasan yang lebih detail.
Baiklah langsung saja berikut adalah langkah-langkah untuk mengkonfigurasi OSPF Routing pada Cisco Packet Tracer :
Topology
Setting IP Router dan Client
Router0
Router>enable
Router#configure terminal
Router(config)#int f0/0
Router(config-if)#ip add 10.10.10.1
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/1
Router(config-if)#ip add 40.40.40.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int s0/0/0
Router(config-if)#ip add 11.11.11.1
255.255.255.252
Router(config-if)#no sh
Router1
Router>en
Router#conf t
Router(config)#int f0/0
Router(config-if)#ip add 10.10.10.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/1
Router(config-if)#ip add 20.20.20.1
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int s0/0/0
Router(config-if)#ip add 22.22.22.1
255.255.255.252
Router(config-if)#no sh
Router2
Router>en
Router#conf t
Router(config)#int f0/0
Router(config-if)#ip add 20.20.20.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/1
Router(config-if)#ip add 30.30.30.1
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int s0/0/0
Router(config-if)#ip add 33.33.33.1
255.255.255.252
Router(config-if)#no
sh
Router3
Router>en
Router#conf t
Router(config)#int f0/0
Router(config-if)#ip add 30.30.30.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/1
Router(config-if)#ip add 40.40.40.1
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int s0/0/0
Router(config-if)#ip add 44.44.44.1
255.255.255.252
Router(config-if)#no
sh
Router4
Router>en
Router#conf t
Router(config)#int s0/0/0
Router(config-if)#ip add 11.11.11.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.1.1
255.255.255.0
Router(config-if)#no sh
Router5
Router>en
Router#conf t
Router(config)#int s0/0/0
Router(config-if)#ip add 22.22.22.2 255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router#conf t
Router(config)#int s0/0/0
Router(config-if)#ip add 22.22.22.2 255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.2.1 255.255.255.0
Router(config-if)#no sh
Router6
Router>en
Router#conf t
Router(config)#int s0/0/0
Router(config-if)#ip add 33.33.33.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.3.1
255.255.255.0
Router(config-if)#no sh
Router7
Router>en
Router#conf t
Router(config)#int s0/0/0
Router(config-if)#ip add 44.44.44.2
255.255.255.252
Router(config-if)#no sh
Router(config-if)#int f0/0
Router(config-if)#ip add 192.168.4.1
255.255.255.0
Router(config-if)#no sh
Client
1. Klik icon PC atau Laptop lalu pilih tab Desktop
2. Pilih menu IP Configuration
3. Lakukan langkah 1 dan 2 pada semua PC dengan IP sesuai dengan topology
Konfigurasi
Routing OSPF
Router0
Router(config)#router ospf 10
Router(config-router)#net 10.10.10.0
?
A.B.C.D OSPF wild card bits
Router(config-router)#net 10.10.10.0
0.0.0.3 area 0
Router(config-router)#net 40.40.40.0
0.0.0.3 area 0
Router(config-router)#net
11.11.11.0 0.0.0.3 area 1
NB :
Masukkan semua network yang terhubung langsung ke router, untuk wildcard mask
diisi dengan subnet mask yang setiap oktetnya dikurangi dengan 255 dan apabila
hasilnya negative ubah jadi positif
Router1
Router(config)#router ospf 10
Router(config-router)#net 10.10.10.0
0.0.0.3 area 0
Router(config-router)#net 20.20.20.0
0.0.0.3 area 0
Router(config-router)#net
22.22.22.0 0.0.0.3 area 2
Router2
Router(config)#router ospf 10
Router(config-router)#net 20.20.20.0
0.0.0.3 area 0
Router(config-router)#net 30.30.30.0
0.0.0.3 area 0
Router(config-router)#net
33.33.33.0 0.0.0.3 area 3
Router3
Router(config)#router ospf 10
Router(config-router)#net 30.30.30.0
0.0.0.3 area 0
Router(config-router)#net 40.40.40.0
0.0.0.3 area 0
Router(config-router)#net
44.44.44.0 0.0.0.3 area 4
Router4
Router(config)#router ospf 10
Router(config-router)#net 11.11.11.0
0.0.0.3 area 1
Router(config-router)#net
192.168.1.0 0.0.0.255 area 1
Router5
Router(config)#router ospf 10
Router(config-router)#net 22.22.22.0
0.0.0.3 area 2
Router(config-router)#net
192.168.2.0 0.0.0.255 area 2
Router6
Router(config)#router ospf 10
Router(config-router)#net 33.33.33.0
0.0.0.3 area 3
Router(config-router)#net
192.168.3.0 0.0.0.255 area 3
Router7
Router(config)#router ospf 10
Router(config-router)#net 44.44.44.0
0.0.0.3 area 4
Router(config-router)#net
192.168.4.0 0.0.0.255 area 4
Cek apakah Routing OSPF sudah masuk ke tabel routing
Router0
Router(config-router)#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.10.10.0 is directly connected,
FastEthernet0/0
11.0.0.0/30 is subnetted, 1 subnets
C 11.11.11.0 is directly connected,
Serial0/0/0
20.0.0.0/30 is subnetted, 1 subnets
O 20.20.20.0 [110/2] via 10.10.10.2, 00:03:57, FastEthernet0/0
22.0.0.0/30 is subnetted, 1 subnets
O IA 22.22.22.0 [110/65] via 10.10.10.2, 00:05:05,
FastEthernet0/0
30.0.0.0/30 is subnetted, 1 subnets
O 30.30.30.0 [110/2] via 40.40.40.1, 00:03:00, FastEthernet0/1
33.0.0.0/30 is subnetted, 1 subnets
O IA 33.33.33.0 [110/66] via 10.10.10.2, 00:03:00,
FastEthernet0/0
[110/66] via 40.40.40.1, 00:03:00,
FastEthernet0/1
40.0.0.0/30 is subnetted, 1 subnets
C 40.40.40.0 is directly connected,
FastEthernet0/1
44.0.0.0/30 is subnetted, 1 subnets
O IA 44.44.44.0 [110/65] via 40.40.40.1, 00:03:00, FastEthernet0/1
O 192.168.1.0/24 [110/65] via 11.11.11.2, 00:02:22,
Serial0/0/0
O IA 192.168.2.0/24 [110/66] via 10.10.10.2, 00:01:49,
FastEthernet0/0
O IA 192.168.3.0/24 [110/67] via 10.10.10.2, 00:01:20,
FastEthernet0/0
[110/67] via 40.40.40.1, 00:01:20,
FastEthernet0/1
O IA 192.168.4.0/24 [110/66] via
40.40.40.1, 00:00:51, FastEthernet0/1
Lakukan pengecekan pada semua router
Pengujian
Lakukan test ping antar router dan juga client
Router 0 > Router6 dan Router7
Router#ping 33.33.33.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
33.33.33.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5),
round-trip min/avg/max = 1/4/11 ms
Router#ping 44.44.44.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to
44.44.44.2, timeout is 2 seconds:
!!!!!
Success rate
is 100 percent (5/5), round-trip min/avg/max = 1/2/5 ms
Client Router7 >
Client Router5
1. Klik pada ikon PC, setelah itu pilih tab desktop
2. Klik pada menu Command Prompt lalu PING IP Client Router5
Tidak ada komentar:
Posting Komentar