Bilişimcilerin Otağı

OSPF Konfigürasyonu

ŞEKİLDEKİ GİBİ AĞ YAPISINI OLUŞTURUYORUZ

OSPF YAPILANDIRMA

1-Trabzon PC1’e 192.168.1.2 ip adresini veriyoruz.

Trabzon Router’ının Fast Ethernet’ine 192.168.1.1 ip adresini veriyoruz.

Trabzon Router’ının Serial 0/0 192.168.6.2 ip adresini veriyoruz.

Trabzon Router’ının Serial 0/1 192.168.7.2 ip adresini veriyoruz.

2- Rize PC1’e 192.168.2.2 ip adresini veriyoruz.

Rize Router’ının Fast Ethernet’ine 192.168.2.1 ip adresini veriyoruz.

Rize Router’ının Serial 0/0 192.168.5.2 ip adresini veriyoruz.

Rize Router’ının Serial 0/1 192.168.6.1 ip adresini veriyoruz.

3- Ankara PC1’e 192.168.3.2 ip adresini veriyoruz.

Ankara Router’ının Fast Ethernet’ine 192.168.3.1 ip adresini veriyoruz.

Ankara Router’ının Serial 0/0 192.168.5.1 ip adresini veriyoruz.

Ankara Router’ının Serial 0/1 192.168.7.1 ip adresini veriyoruz.

Bilgisayar ve Router’lara bu şekilde İP adreslerini verdikten sonra tüm routerlara OSPF’yi aktif hale getirip yapılandırmakta.Bunun için aşağıdaki adımları izliyoruz.

Trabzon Router’ına girip;

Router(config)#router ospf 50

Router(config-router)#network 192.168.1.1 255.255.255.0 area 0

Router(config-router)#network 192.168.6.2 255.255.255.0 area 0

Router(config-router)#network 192.168.7.2 255.255.255.0 area 0

Router(config-router)#end

KOMUTLARI GİRİLİR

Rize Router’ına girip;

Router(config)#router ospf 50

Router(config-router)#network 192.168.2.1 255.255.255.0 area 0

Router(config-router)#network 192.168.5.2 255.255.255.0 area 0

Router(config-router)#network 192.168.6.1 255.255.255.0 area 0

Router(config-router)#end

KOMUTLARI GİRİLİR

Ankara Router’ına girip;

Router(config)#router ospf 50

Router(config-router)#network 192.168.3.1 255.255.255.0 area 0

Router(config-router)#network 192.168.5.1 255.255.255.0 area 0

Router(config-router)#network 192.168.7.1 255.255.255.0 area 0

Router(config-router)#end

KOMUTLARI GİRİLİR

Bu şekilde Tüm Routerlarda OSPF yapılandırması tamamlanmış olunur.

AĞDAN ÖRNEK SHOW İP ROUTE KOMUTU EKRAN ÇIKTILARI

Router#show ip routeCodes: C – connected, S – static, I – IGRP, 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

O    192.168.1.0/24 [110/65] via 192.168.7.2, 00:20:38, Serial0/1

O    192.168.2.0/24 [110/65] via 192.168.5.2, 00:20:38, Serial0/0

C    192.168.3.0/24 is directly connected, FastEthernet0/0

C    192.168.5.0/24 is directly connected, Serial0/0

O    192.168.6.0/24 [110/128] via 192.168.5.2, 00:20:38, Serial0/0

[110/128] via 192.168.7.2, 00:20:38, Serial0/1

C    192.168.7.0/24 is directly connected, Serial0/1

Router#show ip routeCodes: C – connected, S – static, I – IGRP, 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

O    192.168.1.0/24 [110/65] via 192.168.6.2, 00:18:53, Serial0/1

C    192.168.2.0/24 is directly connected, FastEthernet0/0

O    192.168.3.0/24 [110/65] via 192.168.5.1, 00:18:53, Serial0/0

C    192.168.5.0/24 is directly connected, Serial0/0

C    192.168.6.0/24 is directly connected, Serial0/1

O    192.168.7.0/24 [110/128] via 192.168.5.1, 00:18:53, Serial0/0

[110/128] via 192.168.6.2, 00:18:53, Serial0/1

Router#show ip routeCodes: C – connected, S – static, I – IGRP, 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

C    192.168.1.0/24 is directly connected, FastEthernet0/0

O    192.168.2.0/24 [110/65] via 192.168.6.1, 00:16:01, Serial0/0

O    192.168.3.0/24 [110/65] via 192.168.7.1, 00:16:01, Serial0/1

O    192.168.5.0/24 [110/128] via 192.168.6.1, 00:16:01, Serial0/0

[110/128] via 192.168.7.1, 00:16:01, Serial0/1

C    192.168.6.0/24 is directly connected, Serial0/0

C    192.168.7.0/24 is directly connected, Serial0/1

HAZIRLAYANLAR:

HAKAN ÇAYLAK\MUSTAFA SAYIN

Yazar: Hakan ÇAYLAK

Hakan ÇAYLAK sitemizde 14 yazı eklemiş...