DERS 32- KOMŞULUKLAR VE “show ip route” KOMUTU

KOMŞULUKLAR VE “show ip route” KOMUTU:

Bu komut genel bir komuttur. Dolaysıyla OSPF, EIGRP, BGP, Static Routing gibi bütün routing yöntemlerinde kullanılabilir. Erişilebilir bir IP’nin nereden öğrenildiğini özetleyen bir komuttur.

Topolojimizi oluşturup IP’leri verelim.

ospf topology ip
“OSPF TOPOLOJİSİ İÇİN IP’LER”

Daha önce öğrendiğimiz gibi topolojimizi area 0, area 1 ve area 2 olmak üzere area’lara bölerek OSPF çalıştıralım.

ospf area
“OSPF AREA’LAR”

Ping testi yapıp erişimin olduğunu teyit edelim.

ospf ping testi
“OSPF PING TESTI”

Örneğin 6. Router ’dan 3. Router ’ın “10.90.23.3” IP’sine ping attığımızda erişebildiğimizi görürüz. Daha sonra “sh ip route 10.90.23.3” komutu ile  yolun nerelerden öğrenildiğini görebiliriz. Burada 6. Router “10.90.23.3” IP’sini “ospf 1” konfigürasyonu aracılığı ile öğrenmiş. En son yapılan güncelleme “10.90.46.6” IP’sinden, 6. Router ’ın “eth 0/0” interface’i üzerinden yapılmış.

show ip route komutu
“show ip route Komutu”

Kullanılan Komutlar;

İsim Verme ve IP Atama;

1. Router için;

  • en
  • conf t
  • hostname R1
  • int eth 0/0
  • ip address 10.90.12.1 255.255.255.0
  • no shut
  • int ser 1/0
  • ip address 10.90.13.1 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 111.111.111.111 255.255.255.255
  • no shut
  • end
  • wr

2. Router için;

  • en
  • conf t
  • hostname R2
  • int eth 0/0
  • ip address 10.90.124.2 255.255.255.0
  • no shut
  • int eth 0/1
  • ip address 10.90.24.2 255.255.255.0
  • no shut
  • int eth 0/2
  • ip address 10.90.12.2 255.255.255.0
  • no shut
  • int eth 0/3
  • ip address 10.90.23.2 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 122.122.122.122 255.255.255.255
  • no shut
  • end
  • wr

3. Router için;

  • en
  • conf t
  • hostname R3
  • int eth 0/0
  • ip address 10.90.23.3 255.255.255.0
  • no shut
  • int ser 1/0
  • ip address 10.90.13.3 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 133.133.133.133 255.255.255.255
  • no shut
  • end
  • wr

4. Router için;

  • en
  • conf t
  • hostname R4
  • int eth 0/0
  • ip address 10.90.124.4 255.255.255.0
  • no shut
  • int eth 0/1
  • ip address 10.90.24.4 255.255.255.0
  • no shut
  • int eth 0/2
  • ip address 10.90.46.4 255.255.255.0
  • no shut
  • int eth 0/3
  • ip address 10.90.45.4 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 144.144.144.144 255.255.255.255
  • no shut
  • end
  • wr

5. Router için;

  • en
  • conf t
  • hostname R5
  • int eth 0/0
  • ip address 10.90.45.5 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 155.155.155.155 255.255.255.255
  • no shut
  • end
  • wr

6. Router için;

  • en
  • conf t
  • hostname R6
  • int eth 0/0
  • ip address 10.90.46.6 255.255.255.0
  • no shut
  • int loopback 0
  • ip address 166.166.166.166 255.255.255.255
  • no shut
  • end
  • wr

OSPF Konfigürasyonu;

1. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.12.1 0.0.0.0 area 0
  • network 10.90.13.1 0.0.0.0 area 0
  • end
  • wr

2. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.12.2 0.0.0.0 area 0
  • network 10.90.23.2 0.0.0.0 area 0
  • network 10.90.24.2 0.0.0.0 area 1
  • network 10.90.124.2 0.0.0.0 area 1
  • end
  • wr

3. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.23.3 0.0.0.0 area 0
  • network 10.90.13.3 0.0.0.0 area 0
  • end
  • wr

4. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.24.4 0.0.0.0 area 1
  • network 10.90.45.4 0.0.0.0 area 2
  • network 10.90.46.4 0.0.0.0 area 2
  • network 10.90.124.4 0.0.0.0 area 1
  • end
  • wr

5. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.45.5 0.0.0.0 area 2
  • end
  • wr

6. Router için;

  • en
  • conf t
  • router ospf 1
  • network 10.90.46.6 0.0.0.0 area 2
  • end
  • wr

ABR Konfigürasyonu;

2. Router için;

  • en
  • conf t
  • router ospf 1
  • area 1 virtual-link 144.144.144.144
  • end
  • wr

4. Router için;

  • en
  • conf t
  • router ospf 1
  • area 1 virtual-link 122.122.122.122
  • end
  • wr

Test ve Komutları;

1. Router için;

  • ping 10.90.23.3
  • show ip route 10.90.23.3

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir