Jumat, 11 November 2016

Lab 54 - OSPF Single Area di Cisco


Pada lab ini kita akan belajar mengkonfigurasi OSPF dengan topologi jaringan sederhana. Berikut topologi yang akan kita gunakan pada lab ini

Gambar 1 Topologi jaringan OSPF
Tujuan kita pada lab ini adalah setiap router bisa memiliki informasi tentang IP Loopback yang dimiliki oleh router lain melalui routing protocol OSPF. Berikut konfigurasi yang perlu kita lakukan pada R1, R2, dan R3
R1(config)#int e0/0 R1(config-if)#no sh R1(config-if)#ip add 12.12.12.1 255.255.255.0 R1(config-if)#int lo0 R1(config-if)#ip add 1.1.1.1 255.255.255.255 R1(config-if)#router ospf 1 R1(config-router)#net 12.12.12.0 0.0.0.255 area 0 R1(config-router)#net 1.1.1.1 0.0.0.0 area 0
R2(config)#int e0/0 R2(config-if)#no sh R2(config-if)#ip add 12.12.12.2 255.255.255.0 R2(config-if)#int e0/1 R2(config-if)#no sh R2(config-if)#ip add 23.23.23.2 255.255.255.0 R2(config-if)#int lo0 R2(config-if)#ip add 2.2.2.2 255.255.255.255 R2(config-if)#router ospf 1 R2(config-router)#net 12.12.12.0 0.0.0.255 are 0 R2(config-router)#net 23.23.23.0 0.0.0.255 area 0 R2(config-router)#net 2.2.2.2 0.0.0.0 area 0
R3(config)#int e0/0 R3(config-if)#no sh R3(config-if)#ip add 23.23.23.3 255.255.255.0 R3(config-if)#int lo0 R3(config-if)#ip add 3.3.3.3 255.255.255.255 R3(config-if)#router ospf 1 R3(config-router)#net 23.23.23.0 0.0.0.255 are 0 R3(config-router)#net 3.3.3.3 0.0.0.0 are 0
Untuk pengujian, kita coba lihat tabel neighbor OSPF di R2, pastikan statenya sudah full
R2(config-router)#do sh ip ospf neigh Neighbor ID Pri State Dead Time Address Interface 3.3.3.3 1 FULL/BDR 00:00:35 23.23.23.3 Ethernet0/1 1.1.1.1 1 FULL/DR 00:00:32 12.12.12.1 Ethernet0/0
Selanjutnya kita coba lihat LSA yang beredar pada jaringan OSPF ini.
R1(config-router)#do sh ip os data OSPF Router with ID (1.1.1.1) (Process ID 1) Router Link States (Area 0) -> LSA Type 1 Link ID ADV Router Age Seq# Checksum Link count 1.1.1.1 1.1.1.1 1337 0x80000003 0x00B40C 2 2.2.2.2 2.2.2.2 1177 0x80000005 0x008287 3 3.3.3.3 3.3.3.3 1177 0x80000002 0x005E06 2 Net Link States (Area 0) -> LSA Type 2 Link ID ADV Router Age Seq# Checksum 12.12.12.1 1.1.1.1 1337 0x80000001 0x004CB8 23.23.23.2 2.2.2.2 1177 0x80000001 0x00EAEB
R2(config-router)#do sh ip os dat OSPF Router with ID (2.2.2.2) (Process ID 1) Router Link States (Area 0) -> LSA Type 1 Link ID ADV Router Age Seq# Checksum Link count 1.1.1.1 1.1.1.1 1369 0x80000003 0x00B40C 2 2.2.2.2 2.2.2.2 1206 0x80000005 0x008287 3 3.3.3.3 3.3.3.3 1207 0x80000002 0x005E06 2 Net Link States (Area 0) -> LSA Type 2 Link ID ADV Router Age Seq# Checksum 12.12.12.1 1.1.1.1 1369 0x80000001 0x004CB8 23.23.23.2 2.2.2.2 1206 0x80000001 0x00EAEB
R3(config-router)#do sh ip os dat OSPF Router with ID (3.3.3.3) (Process ID 1) Router Link States (Area 0) -> LSA Type 1 Link ID ADV Router Age Seq# Checksum Link count 1.1.1.1 1.1.1.1 1465 0x80000003 0x00B40C 2 2.2.2.2 2.2.2.2 1304 0x80000005 0x008287 3 3.3.3.3 3.3.3.3 1303 0x80000002 0x005E06 2 Net Link States (Area 0) -> LSA Type 2 Link ID ADV Router Age Seq# Checksum 12.12.12.1 1.1.1.1 1465 0x80000001 0x004CB8 23.23.23.2 2.2.2.2 1304 0x80000001 0x00EAEB
Perhatikan bahwa pada jaringan tersebut beredar dua tipe LSA, yaitu LSA tipe 1 dan LSA tipe 2. LSA tipe 1 merupakan LSA yang dibuat oleh setipa router OSPF yang membawa informasi tentang directly connected networknya masing-masing. Selanjutnya LSA tipe 2 merupakan LSA yang dibuat oleh router DR yang membawa informasi tentang network yang menghubungkan antar router OSPF dalam sebuah area. Setiap router yang berada di area yang sama, pasti akan memiliki database LSA yang identik (sama persis).

Selain dengan melihat LSA, kita juga bisa melihat tabel routing untuk melakukan pengujian
R1(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets C 1.1.1.1 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnets O 2.2.2.2 [110/11] via 12.12.12.2, 00:04:04, Ethernet0/0 3.0.0.0/32 is subnetted, 1 subnets O 3.3.3.3 [110/21] via 12.12.12.2, 00:01:23, Ethernet0/0 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/24 is subnetted, 1 subnets O 23.23.23.0 [110/20] via 12.12.12.2, 00:04:04, Ethernet0/0
R2(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets O 1.1.1.1 [110/11] via 12.12.12.1, 00:05:32, Ethernet0/0 2.0.0.0/32 is subnetted, 1 subnets C 2.2.2.2 is directly connected, Loopback0 3.0.0.0/32 is subnetted, 1 subnets O 3.3.3.3 [110/11] via 23.23.23.3, 00:02:58, Ethernet0/1 12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 12.12.12.0/24 is directly connected, Ethernet0/0 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 23.23.23.0/24 is directly connected, Ethernet0/1
R3(config-router)#do sh ip ro 1.0.0.0/32 is subnetted, 1 subnets O 1.1.1.1 [110/21] via 23.23.23.2, 00:03:15, Ethernet0/0 2.0.0.0/32 is subnetted, 1 subnets O 2.2.2.2 [110/11] via 23.23.23.2, 00:03:15, Ethernet0/0 3.0.0.0/32 is subnetted, 1 subnets C 3.3.3.3 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnets O 12.12.12.0 [110/20] via 23.23.23.2, 00:03:15, Ethernet0/0 23.0.0.0/8 is variably subnetted, 2 subnets, 2 masks C 23.23.23.0/24 is directly connected, Ethernet0/0
Perhatikan bahwa R1, R2, dan R3 sudah memiliki tabel routing yang lengkap. Sekarang kita coba ping dari R1 ke IP Loopback R2 dan R3
R1(config-router)#do ping 2.2.2.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms R1(config-router)#do ping 3.3.3.3 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms

Like the Post? Do share with your Friends.

Tidak ada komentar:

Posting Komentar

Komentar

FeedBack

Jika Anda merasa terbantu dengan artikel dari Coretan Bocah IT, silahkan berlangganan GRATIS via email. Dengan begitu, Anda akan mendapat kiriman artikel setiap ada artikel baru yang terbit di Coretan Bocah IT

Masukkan Email :

IconIconIconFollow Me on Pinterest