
Amaç: Bu laboratuarın amacı sizi CCNA Sertifikasyon sınavında (640-607)
karşılaşacağınız simulasyon sorusuna hazırlamaktır. Ayrıca aşağıdaki Cisco
Networking Academy Program konuları hakkında pratik bilgilerinizi arttırmak
hedeflenmiştir:
Açıklama: Acme Ltd.
Merkezi İstanbul’da bulunan uluslararası bir şirkettir. Şirket yönetimi Merkez
ile Berlin ve Paris’te bulunan şubeler arasında uçtan uca bağlantı kurmak
istemektedir.
Görev: Öncelikle
İstanbul, Berlin ve Paris Router’ları üzerinde temel konfigürasyon adımlarını
tamamlayın. Sonra Şirket Ağı içinde uçtan uca bağlantıyı sağlayın. Routing
protokolü olarak RIP tercih edilmiştir.
Adımlar:
1. Router’lar üzerindeki konfigürasyonları
silin
2. Hostname, enable ve vty line passwordlerini
ayarlayın.
3. a. Şekilde verilen Topoloji’den faydalanarak
Router Interface’lerinin IP Konfigürasyonlarını yapın.
b. Serial Interface’lerin DCE olup olmadığını kontrol edin. DCE
Interface’lerde clock rate tanımlayın.
4. (Opsiyonel) Ping komutunu
kullanarak komşu Router’larla bağlantıyı kontrol edin.
5. a. Uçtan uca bağlantıyı
sağlamak amacıyla RIP protokolünü konfigüre edin.
b. Uçtan uca bağlantıyı kontrol edin.
6. Konfigürasyonlarınızı
Router’ların NVRAM’lerine kaydedin.
2. FİZİKSEL
TOPOLOJİ

3. KONFİGÜRASYON
!!! CCNA Sınavı için Önemli NOT: Bu laborotuar’da üç adet Router’ı
konfigüre edeceksiniz. CCNA sınavında ise çoğunlukla bir tek Router’ı
konfigüre etmeniz istenir.
Not: Laboratuara
başlamadan önce aşağıda listelenen komutların işlevlerini biliyor olmanız
yerinde olacaktır.
|
Basic
Commands |
Line
Commands |
Interface
Commands |
Routing
protocol configuration commands |
Show
Commands |
Debug
Commands |
|
erase
start |
line vty |
interface |
router
rip |
show
controllers |
Debug ip
rip |
|
copy run
start |
line
console |
ip
address |
network |
show ip
route |
|
|
reload |
login |
shutdown |
|
|
|
|
enable |
password |
clock
rate |
|
|
|
|
conf t |
|
|
|
|
|
|
hostname |
|
|
|
|
|
|
end |
|
|
|
|
|
|
ping |
|
|
|
|
|
|
telnet |
|
|
|
|
|
Görev: Router’lar
üzerindeki konfigürasyonları silin.
Görev: Hostname,
enable ve vty line passwordlerini ayarlayın. Tüm passwordler ‘btegitim’
olacaktır.
Görev a: Şekilde
verilen Topoloji’den faydalanarak Router Interface’lerinin IP
Konfigürasyonlarını yapın. Zamandan kazanmak için IP adresleri aşağıda
özetlenmiştir:
|
BERLIN |
|
|
ISTANBUL |
|
|
PARIS |
|
|
Serial 0 |
192.168.1.2/24 |
|
Serial
0/0 |
192.168.1.1/24 |
|
Serial 0 |
172.16.1.2/16 |
|
Ehernet 0 |
201.1.1.1/24 |
|
Serial
0/1 |
172.16.1.1/16 |
|
Ehernet 0 |
203.1.1.1/24 |
|
|
|
|
Ethernet
0/0 |
202.1.1.1/24 |
|
|
|
Görev b: Serial Interface’lerin DCE olup olmadığını kontrol edin. DCE
Interface’lerde clock rate
tanımlayın. Clock rate değeri 64000 olacaktır.
Not: Gelmiş bulunduğunuz noktadan
ileriye gitmeden önce, komşu Router’lar arasındaki bağlantıyı kontrol etmek
yerinde olacaktır. Routing konfigürasyonu yapmadan önce bağlantıları kontrol
etmek daha ileriki aşamada yaşayacağımız problemlerin Routing Protokol’ünün
hatalı konfigüre edilmesinden kaynaklandığından emin olabilmemizi sağlayacaktır.
Bu adımı gerçekleyebilmek için Istanbul, Berlin ve Paris Router’ları üzerinde
1,2 ve 3. adımları tamamlamış olmanız gerekmektedir.
Görev: Ping
komutunu kullanarak komşu Router’larla bağlantıyı kontrol edin.
Görev
a: Uçtan uca
bağlantıyı sağlamak amacıyla RIP protokolünü konfigüre edin.
Görev
b: Uçtan uca
bağlantıyı kontrol edin. BERLIN Router’ında ilgili komutu yürüterek Routing
Tablosunu görüntüleyin. Daha sonra PARIS Router’ınn Ethernet 0 Interface’ine
ping atın (203.1.1.1).
Görev: Konfigürasyonlarınızı Router’ların
NVRAM’lerine kaydedin. (Bu adım her Router’da tekrarlanacaktır)
4. ÇÖZÜMLER
Router#
Router#erase start
Erasing the nvram filesystem will remove all files!
Continue? [confirm]
[OK]
Erase of nvram: complete
Router#reload
System configuration has been modified. Save?
[yes/no]: n
Proceed with reload? [confirm]
01:12:03: %SYS-5-RELOAD: Reload requested
System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname BERLIN
BERLIN(config)#enable secret
btegitim
BERLIN(config)#line vty 0 4
BERLIN(config-line)#password
btegitim
BERLIN(config-line)#line
console 0
BERLIN(config-line)#login
BERLIN(config-line)#password
btegitim
BERLIN(config-line)#end
BERLIN(config)#int serial 0
BERLIN(config-if)#ip address
192.168.1.2 255.255.255.0
BERLIN(config-if)#no shut
00:32:24: %LINK-3-UPDOWN: Interface Serial0, changed
state to down
BERLIN(config-if)#int ethernet
0
BERLIN(config-if)#ip address
201.1.1.1 255.255.255.0
BERLIN(config-if)#no shut
BERLIN#sh controllers serial 0
HD unit 0, idb = 0x9F514, driver structure
at 0xA31C0
buffer size 1524 HD unit 0, V.35 DCE cable
cpb = 0x21, eda = 0x4940, cda = 0x4800
RX ring with 16 entries at 0x214800
00 bd_ptr=0x4800 pak=0x106648 ds=0x21EC68
status=80 pak_size=0
!Output Omitted for simplicity
BERLIN#conf t
Enter configuration
commands, one per line. End with CNTL/Z.
BERLIN(config)#int serial 0
BERLIN(config-if)#clock rate 64000
BERLIN(config-if)#end
%SYS-5-CONFIG_I:
Configured from console by console
BERLIN#sh controllers s 0
HD unit 0, idb =
0x9F514, driver structure at 0xA31C0
buffer size 1524 HD unit 0, V.35 DCE cable, clockrate 64000
cpb = 0x21, eda =
0x4940, cda = 0x4800
RX ring with 16 entries
at 0x214800
00 bd_ptr=0x4800
pak=0x106648 ds=0x21EC68 status=80 pak_size=0
!Output Omitted for simplicity
Not: DTE
Interface’lere clock rate verilmez, vermeye çalışırsanız Router hata mesajı
verir.
Berlin:
BERLIN#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 28/30/32 ms
Istanbul
ISTANBUL#ping 192.168.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 28/29/32 ms
ISTANBUL#ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 28/29/32 ms
Paris
PARIS#ping 172.16.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 28/29/32 ms
Not: Laboratuar ortamında gönerdiğimiz
ping paketlerinin başarısız olması, büyük ihtimalle bozuk bir kablo veya
konfigüre edilmemiş bir clock rate’den kaynaklanıyordur. Bununla birlikte
gerçek networklerde sorunun yanlış konfigüre edilmiş Access-list’ler gibi daha
farklı nedenleri de olabilir.
On
Berlin:
BERLIN(config)#router rip
BERLIN(config-router)#network
192.168.1.0
BERLIN(config-router)#network
201.1.1.0
On Istanbul:
ISTANBUL(config)#router rip
ISTANBUL(config-router)#network
192.168.1.0
ISTANBUL(config-router)#network
202.1.1.0
ISTANBUL(config-router)#network
172.16.0.0 !See the note below
On Paris:
PARIS(config)#router rip
PARIS(config-router)#network
172.16.0.0 !See the note below
PARIS(config-router)#network
203.1.1.0
BERLIN#sh ip route
Codes: 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, * - candidate default
U -
per-user static route, o - ODR
Gateway of last resort is not set
C
201.1.1.0/24 is directly connected, Ethernet0
R
203.1.1.0/24 [120/2] via 192.168.1.1, 00:00:09, Serial0
R
172.16.0.0/16 [120/1] via 192.168.1.1, 00:00:09, Serial0
R
202.1.1.0/24 [120/1] via 192.168.1.1, 00:00:09, Serial0
C
192.168.1.0/24 is directly connected, Serial0
BERLIN#ping 203.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 203.1.1.1, timeout
is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip
min/avg/max = 56/57/60 ms
!!! CCNA Sınavı İçin Önemli NOT: Network komutu kullanılırken sıkça
yapılan bir hata şudur:
ISTANBUL(config-router)#network
172.16.1.0
Router’ınız bu komutu kabul eder. Üstelik büyük olasılıkla bağlantıda da
herhangi bir problemle karşılaşmazsınız. Ancak show run çıktısına
baktığınızda şunu görürsünüz:
!
router rip
network 172.16.0.0
network
192.168.1.0
network
202.1.1.0
!
172.16, B sınıfı bir IP adresidir ve network komutu classless’dir.
Yani 172.16’ dan sonra yazdığınız rakamlar ihmal edilir ve konfigürasyona 0.0
olarak geçerler.
Bu hata gerçek hayatta başınıza çok büyük dertler açmasa da, CCNA
sınavında puanınızın düşmesine neden olacaktır.
Çözüm: Adım 6
BERLIN#copy running-config
startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
5. HAZIR KONFIGURASYONLAR
Not: Eğer adımları takip ederek
Laboratuvarı tamamlayamıyorsanız aşağıdaki hazır konfigürasyanları Router’lara yükleyerek uçtan uca bağlantıyı
sağlayabilirsiniz.
1.
Aşağıdaki
konfigürasyonları kopyalayın.
2.
Global config modunda Konfigürasyonları
routerlara paste edin.
BERLIN
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname BERLIN
!
enable secret 5 $1$56AM$rhB5dH1DVpK7/UnDPiyTj1
!
ip subnet-zero
!
!
!
interface Ethernet0
ip address
201.1.1.1 255.255.255.0
no ip
directed-broadcast
no shutdown
!
interface Serial0
ip address
192.168.1.2 255.255.255.0
no ip
directed-broadcast
clockrate 64000
no shutdown
!
interface Serial1
no ip address
no ip
directed-broadcast
shutdown
!
interface Ethernet0/0
ip address
201.1.1.1 255.255.255.0
no ip
directed-broadcast
no shutdown
!
interface Serial0/0
ip address
192.168.1.2 255.255.255.0
no ip
directed-broadcast
no ip mroute-cache
no fair-queue
clockrate 64000
no shutdown
!
router rip
network
201.1.1.0
network
192.168.1.0
!
ip classless
!
!
line con 0
password
btegitim
login
transport input
none
line aux 0
line vty 0 4
password
btegitim
login
!
end
ISTANBUL
!
version 12.0
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname ISTANBUL
!
enable secret 5 $1$4ooN$glNetx..6d9C5mfbJ9bnB0
!
ip subnet-zero
!
!
!
interface Ethernet0/0
ip address
202.1.1.1 255.255.255.0
no ip
directed-broadcast
no shutdown
!
interface Serial0/0
ip address
192.168.1.1 255.255.255.0
no ip
directed-broadcast
no ip
mroute-cache
no fair-queue
clockrate 64000
no shutdown
!
interface Serial0/1
ip address
172.16.1.1 255.255.0.0
no ip directed-broadcast
clockrate 64000
no shutdown
!
interface Ethernet0
ip address
202.1.1.1 255.255.255.0
no ip
directed-broadcast
no shutdown
!
interface Serial0
ip address
192.168.1.1 255.255.255.0
no ip directed-br