- Home »
- Konfigurasi Router Menggunakan Protokol OSPF
Unknown
On Senin, 02 Desember 2013
Konfigurasi masing-masing PC :
H1: Ip Address =
192.168.158.126
Subnet Mask
= 255.255.255.128
Default Gateway
= 192.168.158.1
H2: Ip Address =
192.168.158.190
Subnet Mask
= 255.255.255.192
Default Gateway
= 192.168.158.129
H3: Ip Address =
192.168.159.94
Subnet Mask
= 255.255.255.224
Default Gateway
= 192.168.159.65
H4: Ip Address =
192.168.158.254
Subnet Mask
= 255.255.255.0
Default Gateway
= 192.168.158.193
H5: Ip Address =
192.168.159.62
Subnet Mask
= 255.255.255.192
Default Gateway = 192.168.159.1
H6: Ip Address =
192.168.157.126
Subnet Mask
= 255.255.255.0
Default Gateway
= 192.168.157.1
Interface pada masing-masing Router :
Router HQ: fa0/0: 192.168.158.1, 255.255.255.128
fa0/1: 192.168.158.129,
255.255.255.192
s0/0/0: 192.168.159.97,
255.255.255.252
s0/0/1: 192.168.159.101,
255.255.255.252
Router R1: fa0/0: 192.168.159.65, 255.255.255.224
fa0/1: 192.168.158.193,
255.255.255.192
s0/0/0: 192.168.159.98, 255.255.255.252
Router R2: fa0/0: 192.168.157.1, 255.255.255.0
fa0/1: 192.168.159.1,
255.255.255.192
s0/0/1: 192.168.159.102,
255.255.255.252
Konfigurasi Router dengan protokol OSPF :
Router HQ
Router> en
Router# config t
Router(config)# int Fa0/0
Router(config-if)# ip add 192.168.158.1 255.255.255.128
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int Fa0/1
Router(config-if)# ip add 192.168.158.129 255.255.255.192
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int S0/0/0
Router(config-if)# ip addr 192.168.159.97 255.255.255.252
Router(config-if)# clock rate 64000
Router(config-if)# no sh
Router(config)# int S0/0/1
Router(config-if)# ip addr 192.168.159.101 255.255.255.252
Router(config-if)# clock rate 64000
Router(config-if)# no sh
Router(config)# router ospf 1
Router(config-router)# network 192.168.158.0 0.0.0.127 area 0
Router(config-router)# network 192.168.158.128 0.0.0.63 area 0
Router(config-router)# network 192.168.158.96 0.0.0.3 area 0
Router(config-router)# network 192.168.158.100 0.0.0.3 area 0
Router(config-router)#^z
Router#copy running-config startup-config
Router#reload
Router R1
Router> en
Router# config t
Router(config)# int Fa0/0
Router(config-if)# ip add 192.168.159.65 255.255.255.224
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int Fa0/1
Router(config-if)# ip add 192.168.158.193
255.255.255.192
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int S0/0/0
Router(config-if)# ip addr 192.168.159.98 255.255.255.252
Router(config-if)# clock rate 64000
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# router ospf 1
Router(config-router)# network 192.168.158.64 0.0.0.31 area 0
Router(config-router)# network 192.168.158.192 0.0.0.63 area 0
Router(config-router)# network 192.168.158.96 0.0.0.3 area 0
Router(config-router)#^z
Router#copy running-config startup-config
Router#reload
Router R2
Router> en
Router# config t
Router(config)# int Fa0/0
Router(config-if)# ip add 192.168.157.1 255.255.255.0
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int Fa0/1
Router(config-if)# ip add 192.168.159.1 255.255.255.192
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# int S0/0/1
Router(config-if)# ip addr 192.168.159.102 255.255.255.252
Router(config-if)# clock rate 64000
Router(config-if)# no sh
Router(config-if)#exit
Router(config)# router ospf 1
Router(config-router)# network 192.168.157.0 0.0.0.255 area 0
Router(config-router)# network 192.168.159.0 0.0.0.63 area 0
Router(config-router)# network 192.168.159.100 0.0.0.3 area 0
Router(config-router)#^z
Router#copy running-config startup-config
Router#reload
Lakukan ping antar client untuk mengecek apakah konfigurasi kita
sudah benar atau belum. Jika hasilnya ada reply maka konfigurasinya sudah
benar.
Untuk Packet Tracernya bisa diunduh disini