Monday, March 24, 2014

Simulasi Network OSPF Dengan Menggunakan 6 Router Cisco

Postingan berikut ini tentang dynamic routing OSPF (Open Shortest Path First) dengan menggunakan simulator packet tracer versi 6.1. Simulasi ini, tidak ada scenario yang macam-macam. Yang terpenting semua router bisa saling komunikasi. Untuk eksperiment yang lebih mendalam mengenai OSPF harus menggunakan GNS3, akan diposting di lain waktu bersama dengan resume teorinya. Sementara, ya ini dulu. Istilahnya ini hanya sebagai “makanan pembuka” saja mengenai OSPF. :)

Gambar network simulasi OSPF dengan menggunakan 6 buah router Cisco, seperti di bawah ini.
network OSPF simulation


Berikutnya, tabel IP address di setiap interface router .
Router
Loopback0
Fa0/0
Fa1/0
Fa4/0
Fa5/0
R-0
10.10.10.0/32
10.10.0.1/24
-
192.192.10.1/30
192.192.20.1/30
R-1
10.10.10.1/32
-
192.192.41.2/30
192.192.10.2/30
192.192.31.2/30
R-2
10.10.10.2/32
-
192.192.32.2/30
192.192.42.2/30
192.192.20.2/30
R-3
10.10.10.3/32
-
192.192.32.1/30
192.192.53.1/30
192.192.31.1/30
R-4
10.10.10.4/32
-
192.192.41.1/30
192.192.42.1/30
192.192.54.1/30
R-5
10.10.10.5/32
10.10.5.1/24
-
192.192.53.2/30
192.192.54.2/30

Berhati-hatilah… IP address di atas adalah 192.192.xx.xx,  bukan IP address private/local yang biasanya sering dicoba (sengaja… memang… supaya sedikit lebih real, menggunakan IP public, maaf yang punya IP public… hehehe…).
Karena network ini nge-ring, dan routernya juga sedikit, maka cukup OSPF yang dibuat 1 area saja. Ok langsung konfigurasi.

Router 0 (R-0)
Router>en
Router#config ter
Router(config)#hostname R-0
R-0(config)#inter fa0/0
R-0(config-if)#ip address 10.10.0.1 255.255.255.0
R-0(config-if)#no shut
R-0(config-if)#inter loopback0
R-0(config-if)#ip address 10.10.10.0 255.255.255.255
R-0(config-if)#no shut
R-0(config-if)#inter fa4/0
R-0(config-if)#ip address 192.192.10.1 255.255.255.252
R-0(config-if)#no shut
R-0(config-if)#inter fa5/0
R-0(config-if)#ip address 192.192.20.1 255.255.255.252
R-0(config-if)#no shut
R-0(config-if)#do wr
Building configuration...
[OK]

Router 1 (R-1)
Router>en
Router#config ter
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#hostname R-1
R-1(config)#inter loopback0
R-1(config-if)#ip address 10.10.10.1 255.255.255.255
R-1(config-if)#no shut
R-1(config-if)#inter fa1/0
R-1(config-if)#ip address 192.192.41.2 255.255.255.252
R-1(config-if)#no shut

R-1(config-if)#inter fa4/0
R-1(config-if)#ip address 192.192.10.2 255.255.255.252
R-1(config-if)#no shut
R-1(config-if)#inter fa5/0
R-1(config-if)#ip address 192.192.31.2 255.255.255.252
R-1(config-if)#no shut
R-1(config-if)#do wr
Building configuration...
[OK]

Router 2 (R-2)
Router>en
Router#config ter
Router(config)#hostname R-2
R-2(config)#inter loopback 0

R-2(config-if)#ip address 10.10.10.2 255.255.255.255
R-2(config-if)#no shut
R-2(config-if)#inter fa1/0
R-2(config-if)#ip address 192.192.32.2 255.255.255.252
R-2(config-if)#no shut
R-2(config-if)#inter fa4/0
R-2(config-if)#ip address 192.192.42.2 255.255.255.252
R-2(config-if)#no shut
R-2(config-if)#inter fa5/0
R-2(config-if)#ip address 192.192.20.2 255.255.255.252
R-2(config-if)#no shut
R-2(config-if)#do wr
Building configuration...
[OK]

Router 3 (R-3)
Router>en
Router#config ter
Router(config)#hostname R-3
R-3(config)#inter loopback0
R-3(config-if)#ip address 10.10.10.3 255.255.255.255
R-3(config-if)#no shut
R-3(config-if)#inter fa1/0
R-3(config-if)#ip address 192.192.32.1 255.255.255.252
R-3(config-if)#no shut
R-3(config-if)#inter fa4/0
R-3(config-if)#ip address 192.192.53.1 255.255.255.252
R-3(config-if)#no shut

R-3(config-if)#inter fa5/0
R-3(config-if)#ip address 192.192.31.1 255.255.255.252
R-3(config-if)#no shut

R-3(config-if)#do wr
Building configuration...
[OK]

Router 4 (R-4)
Router>EN
Router#config ter
Router(config)#hostname R-4
R-4(config)#inter loopback0
R-4(config-if)#ip address 10.10.10.4 255.255.255.255
R-4(config-if)#no shut
R-4(config-if)#inter fa1/0
R-4(config-if)#192.192.41.1 255.255.255.252
R-4(config-if)#ip address 192.192.41.1 255.255.255.252
R-4(config-if)#no shut
R-4(config-if)#inter fa4/0
R-4(config-if)#ip address 192.192.42.1 255.255.255.252
R-4(config-if)#no shut

R-4(config-if)#inter fa5/0
R-4(config-if)#ip address 192.192.54.1 255.255.255.252
R-4(config-if)#no shut

R-4(config-if)#do wr
Building configuration...
[OK]

Router 5 (R-5)
Router>en
Router#config ter
Router(config)#host R-5
R-5(config)#inter loopback 0
R-5(config-if)#ip address 10.10.10.5 255.255.255.255
R-5(config-if)#no shut

R-5(config-if)#inter fa0/0
R-5(config-if)#ip address 10.10.5.1 255.255.255.0
R-5(config-if)#no shut

R-5(config-if)#inter fa4/0
R-5(config-if)#ip address 192.192.53.2 255.255.255.252
R-5(config-if)#no shut

R-5(config-if)#inter fa5/0
R-5(config-if)#ip address 192.192.54.2 255.255.255.252
R-5(config-if)#no shut

R-5(config-if)#do wr
Building configuration...
[OK]

Setting IP address komputer users.
IP address PC0 = 10.10.0.2/24, dan
IP address PC5 = 10.10.5.2/24
IP configuration PC0

IP configuration PC5

Configure routing protocol OSPF, pada semua router.
R-0
R-0#config term
R-0(config)#router ospf 10
R-0(config-router)#log-adjacency-changes
R-0(config-router)#netw 192.192.10.0 0.0.0.3 area 0
R-0(config-router)#netw 192.192.20.0 0.0.0.3 area 0
R-0(config-router)#redistribute connected subnet
R-0(config-router)#do wr
Building configuration...
[OK]

R-1
R-1>en
R-1#config ter
R-1(config)#router ospf 10
R-1(config-router)#log-adjacency-changes
R-1(config-router)#net 192.192.10.0 0.0.0.3 area 0
R-1(config-router)#net 192.192.31.0 0.0.0.3 area 0
R-1(config-router)#do wr
Building configuration...
[OK]

R-2
R-2>en
R-2#config ter
R-2(config)#router ospf 10
R-2(config-router)#netw 192.192.32.0 0.0.0.3 area 0
R-2(config-router)#netw 192.192.42.0 0.0.0.3 area 0
R-2(config-router)#netw 192.192.20.0 0.0.0.3 area 0
R-2(config-router)#do wr
Building configuration...
[OK]

R-3
R-3>en
R-3#config ter
R-3(config)#router ospf 10
R-3(config-router)#net 192.192.32.0 0.0.0.3 area 0
R-3(config-router)#net 192.192.53.0 0.0.0.3 area 0
R-3(config-router)#net 192.192.31.0 0.0.0.3 area 0
R-3(config-router)#do wr
Building configuration...
[OK]

R-4
R-4>en
R-4#config ter
R-4(config)#router ospf 10
R-4(config-router)#netw 192.192.41.0 0.0.0.3 area 0
R-4(config-router)#netw 192.192.42.0 0.0.0.3 area 0
R-4(config-router)#netw 192.192.54.0 0.0.0.3 area 0
R-4(config-router)#do wr
Building configuration...
[OK]

R-5
R-5>en
R-5#config ter
R-5(config)#router ospf 10
R-5(config-router)#net 192.192.53.0 0.0.0.3 area 0
R-5(config-router)#net 192.192.54.0 0.0.0.3 area 0
R-5(config-router)#redistribute connected subnets
R-5(config-router)#do wr
Building configuration...
[OK]

Sampai disini, seharusnya semua komputer dan router sudah bisa saling berkomunikasi. Contohnya seperti pada gambar di bawah ini, hasil ping dari PC0 ke IP address komputer PC5 dan router lainnya.
Test ping dari PC0

Dan yang terakhir.... semoga bermanfaat... :)

No comments:

Post a Comment