Konfigurasi 3 Router Cisco, 3 PC dan Routing OSPF

 

3 router, 3 pc dan Routing OSPF
Setelah kemarin Konfigurasi IP Address Pada 3 Router Cisco. Kini saatnya kita tingkatkan lagi, yaitu dengan penambahan PC disetiap router dan kemudian dilanjutkan dengan konfigurasi Routing OSPF. Sedikit penjelasan mengeni Routing OSPF merupakan routing yang termasuk keluarga dinamis (bukan statik) yang dikemudian di klasifikasi berdasarkan area. Konfigurasi sepenuhnya bisa dilihat dipostingan sebelumnya. Disini kita sampaikan konfigurasi lanjutannya.

Konfigurasi Router Cisco RT1

RT1>en

RT1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

RT1(config)#int g0/2

RT1(config-if)#ip add 192.168.1.1 255.255.255.0

RT1(config-if)#no shut


RT1(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up

Konfigurasi Router Cisco RT2

RT2>en

RT2#conf t

Enter configuration commands, one per line. End with CNTL/Z.

RT2(config)#int g0/2

RT2(config-if)#ip add 192.168.2.1 255.255.255.0

RT2(config-if)#no shut


RT2(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up

Konfigurasi Router Cisco RT3

RT3>en

RT3#conf t

Enter configuration commands, one per line. End with CNTL/Z.

RT3(config)#int g0/2

RT3(config-if)#ip add 192.168.3.1 255.255.255.0

RT3(config-if)#no shut


RT3(config-if)#

%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up


%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/2, changed state to up

Konfigurasi IP Address di PC silahkan di browsing di tempat lain. Sampai disini kita anggap semua PC sudah ter-konfigurasi IP Address. Selanjutnya kita akan melakukan Konfigurasi Routing OSPF.  

Konfigurasi Routing OSPF RT1

RT1>en
RT1#conf t
RT1(config)#router ospf 10
RT1(config-router)#network 10.0.1.0 0.0.0.3 area 10
RT1(config-router)#network 10.0.3.0 0.0.0.3 area 10
RT1(config-router)#network 192.168.1.0 0.0.0.255 area 10
RT1(config-router)#exit
RT1(config)#exit
RT1#
Konfigurasi Routing OSPF RT2
RT2>en
RT2#conf t
RT2(config)#router ospf 10
RT2(config-router)#network 10.0.1.0 0.0.0.3 area 10
RT2(config-router)#network 10.0.2.0 0.0.0.3 area 10
RT2(config-router)#network 192.168.2.0 0.0.0.255 area 10
RT2(config-router)#exit
RT2(config)#exit
RT2#
Konfigurasi Routing OSPF RT23
RT3>en
RT3#conf t
RT3(config)#router ospf 10
RT3(config-router)#network 10.0.2.0 0.0.0.3 area 10
RT3(config-router)#network 10.0.3.0 0.0.0.3 area 10
RT3(config-router)#network 192.168.3.0 0.0.0.255 area 10
RT3(config-router)#exit
RT3(config)#exit
RT3#

Lihat hasil konfigurasi, apakah pada table route sudah terdapat routing ospf?

RT1#sh ip route

Codes: L - local, C - connected, S - static, 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/8 is variably subnetted, 5 subnets, 2 masks

C 10.0.1.0/30 is directly connected, GigabitEthernet0/0

L 10.0.1.1/32 is directly connected, GigabitEthernet0/0

O 10.0.2.0/30 [110/2] via 10.0.1.2, 00:00:50, GigabitEthernet0/0

[110/2] via 10.0.3.1, 00:00:50, GigabitEthernet0/1

C 10.0.3.0/30 is directly connected, GigabitEthernet0/1

L 10.0.3.2/32 is directly connected, GigabitEthernet0/1

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/24 is directly connected, GigabitEthernet0/2

L 192.168.1.1/32 is directly connected, GigabitEthernet0/2

O 192.168.2.0/24 [110/2] via 10.0.1.2, 00:02:57, GigabitEthernet0/0

O 192.168.3.0/24 [110/2] via 10.0.3.1, 00:00:50, GigabitEthernet0/1 

Oke, Sampai disini kita bisa lihat bahwa routing OSPF sudah masuk didalam table route yaitu dengan kode O (OSPF). Selanjutnya kita juga bisa melakukan tes koneksi dari dengan menggunakan perintah PING dan perintah TRACERT untuk melihat jalur yang dilewati. Sebagai contoh kita akan melakukan perintah ping dari PC1 ke tujuan PC3, lihat dibawah hasilnya.

Perintah PING

PC>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Reply from 192.168.3.2: bytes=32 time=0ms TTL=126
Reply from 192.168.3.2: bytes=32 time=0ms TTL=126
Reply from 192.168.3.2: bytes=32 time=1ms TTL=126
Reply from 192.168.3.2: bytes=32 time=0ms TTL=126
Ping statistics for 192.168.3.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms
Perintah TRACERT
PC>tracert 192.168.3.2
Tracing route to 192.168.3.2 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 192.168.1.1
2 0 ms 0 ms 0 ms 10.0.3.1
3 0 ms 0 ms 0 ms 192.168.3.2
Trace complete.

(TGS) 

Posting Komentar