sore teman-teman yang sering ngelab :D....ya saya ucapkan selamat sore karena saya menulis artikel ini di sore hari sembari meminum kopi sruup :D....untuk kali ini kita akan bahas artikel tentang LAB dasar ospf.
OSPF itu apasih ?,ospf itu sebuah protocol routing dyanamic yang memudahkan seorang administrasi jaringan untuk mengatur,menjaga routing yang dia miliki.hebat nya ospf ini dimana dia bisa mengetahui topologi networknya mangkanya banyak digunakan untuk melakukan routing dalam skala yang besar.dan yang membedakan ospf dengan routing-routing lain ,pada ospf ini terdapat sebuah area-area ,dimana setiap area yang bukan area 0 (area backbone) harus terhubung ke area backbone ,agar lebih jelas nya mari kita langsung lab kan saja..berikut topologi nya.
gambar 1.1
setelah itu kita setting ip address pada setiap perangkat..(saya analogikan disini kalian sudah bisa sett ip address pada pc nya)
#R1
R1(config)#int fa0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int fa0/1
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no sh
R1(config)#int fa0/0
R1(config-if)#ip add 12.12.12.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#int fa0/1
R1(config-if)#ip add 192.168.10.1 255.255.255.0
R1(config-if)#no sh
#R2
R2(config)#int fa0/0
R2 (config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int fa0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no sh
R2(config)#int fa0/0
R2 (config-if)#ip add 12.12.12.2 255.255.255.0
R2(config-if)#no sh
R2(config-if)#int fa0/1
R2(config-if)#ip add 23.23.23.2 255.255.255.0
R2(config-if)#no sh
#R3
R3(config)#int fa0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int fa0/1
R3(config-if)#ip add 192.168.20.1 255.255.255.0
R3(config-if)#no sh
R3(config)#int fa0/0
R3(config-if)#ip add 23.23.23.3 255.255.255.0
R3(config-if)#no sh
R3(config-if)#int fa0/1
R3(config-if)#ip add 192.168.20.1 255.255.255.0
R3(config-if)#no sh
sebelumnya kita cek terlebih dahulu tabel routing pada semua router.
R1#show ip route
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
C 192.168.10.0/24 is directly connected, FastEthernet0/1
R1#
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
C 192.168.10.0/24 is directly connected, FastEthernet0/1
R1#
R2#sh ip route
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
R2#
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
R2#
R3#sh ip route
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/1
R3#
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/1
R3#
nah pada table routing diatas kita hanya mengetahui bahwa table tersebut hanya memiliki network yang ia punya..agar network yang lain nya dapa bisa saling komunikasi maka kita perlu routing. dan untuk routing kali ini kita akan menggunakan routing ospf berikut konfigurasinya .
R1(config)#router ospf 1
R1(config-router)#network 192.168.10.0 255.255.255.0 area 0
R1(config-router)#network 12.12.12.0 255.255.255.0 area 0
R1(config-router)#
R1(config-router)#network 192.168.10.0 255.255.255.0 area 0
R1(config-router)#network 12.12.12.0 255.255.255.0 area 0
R1(config-router)#
R2(config)#router ospf 1
R2(config-router)#network 12.12.12.0 255.255.255.0 area 0
R2(config-router)#network 23.23.23.0 255.255.255.0 area 0
R2(config-router)#
R2(config-router)#network 12.12.12.0 255.255.255.0 area 0
R2(config-router)#network 23.23.23.0 255.255.255.0 area 0
R2(config-router)#
R3(config)#router ospf 1
R3(config-router)#network 192.168.20.0 255.255.255.0 area 0
R3(config-router)#network 23.23.23.0 255.255.255.0 area 0
R3(config-router)#
R3(config-router)#network 192.168.20.0 255.255.255.0 area 0
R3(config-router)#network 23.23.23.0 255.255.255.0 area 0
R3(config-router)#
setelah kita lakukan konfigurasi ospf nya ,sekarang kita cek kembali table routing nya.
R1(config-router)#do sh ip route
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/2] via 12.12.12.2, 00:08:04, FastEthernet0/0
C 192.168.10.0/24 is directly connected, FastEthernet0/1
O 192.168.20.0/24 [110/3] via 12.12.12.2, 00:06:12, FastEthernet0/0
R1(config-router)#
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
O 23.23.23.0 [110/2] via 12.12.12.2, 00:08:04, FastEthernet0/0
C 192.168.10.0/24 is directly connected, FastEthernet0/1
O 192.168.20.0/24 [110/3] via 12.12.12.2, 00:06:12, FastEthernet0/0
R1(config-router)#
R2(config-router)#do sh ip route
12.0.0.0/24 is subnetted, 1 subnets
C 12.12.12.0 is directly connected, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/1
O 192.168.10.0/24 [110/2] via 12.12.12.1, 00:09:50, FastEthernet0/0O 192.168.20.0/24 [110/2] via 23.23.23.3, 00:07:58, FastEthernet0/1
R2(config-router)#
R3(config-router)#do sh ip route
12.0.0.0/24 is subnetted, 1 subnets
O 12.12.12.0 [110/2] via 23.23.23.2, 00:09:03, FastEthernet0/0
23.0.0.0/24 is subnetted, 1 subnets
C 23.23.23.0 is directly connected, FastEthernet0/0
O 192.168.10.0/24 [110/3] via 23.23.23.2, 00:09:03, FastEthernet0/0
C 192.168.20.0/24 is directly connected, FastEthernet0/1
R3(config-router)#
Perlu diketahui flags "O" menandakan bahwa routing yang kita gunakan,merupakan routing ospf,dan angka "110" merupakan nilai distance dari ospf itu sendiri.
selanjutnya yaitu kita coba ping dari PC1 ke PC2
C:\>ping 192.168.20.2
Pinging 192.168.20.2 with 32 bytes of data:
Reply from 192.168.20.2: bytes=32 time=13ms TTL=125
Reply from 192.168.20.2: bytes=32 time=11ms TTL=125
Reply from 192.168.20.2: bytes=32 time=12ms TTL=125
C:\>
jika hasil nya sudah reply/bisa komunikasi dengan network lain maka konfigurasi ospf nya sudah berhasil...untuk lab kali ini sampai disini dulu kita lanjut lab nya di artikel selanjutnya..terimakasih..
0 komentar:
Posting Komentar