
Router'ımız HTTP ve FTP server olabildiği gibi TFTP hizmeti de verebilmektedir.
Bunun için server tarafında;
tftp-server flash:cat6500-entservices-mz.122-40.SG.bin
Client tarafında;
copy tftp://1.1.1.1/cat6500-entservices-mz.122-40.SG.bin null:
Router'ımızı FTP server olarak yapılandırabilir ve çeşitli dosya kopyalama işlemlerimizi yapabiliriz. Örneğin güncellenmiş işimize yarayan IOS'u komşu router'dan FTP ile çekebiliriz. Bunun için server tarafında;
1- Broadcast:
Özellikle Frame Relay gibi non-broadcast multi access networklerde kullanılır. Bu tip netwoklerde multicast/broadcast olmadığı için "hello" paketleri gönderilemez haliyle komşuluk kurulamaz DR-BDR seçimi yapılamaz. Bu sorunu aşmak için OSPF paketlerini unicast göndermemiz gerekir bunu sağlamak içinde aşağıda görüldüğü gibi OSPF altında neighbor komutu ile HUB da SPOKE'ların adreslerini belirtmemiz gerekir. Yine SPOKE ların birbirleriyle R1 üzerinden haberleşebilmesi nedeniyle DR'ın mutlaka R1 olmasını sağlamak için interface altında "ip ospf priority 0" komutunu yazmamız gerekir.
!R1:
ip address 10.10.1.1 255.255.255.0
!
interface Serial1/0
ip address 10.10.123.1 255.255.255.0
encapsulation frame-relay
frame-relay map ip 10.10.123.2 102
frame-relay map ip 10.10.123.3 103
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
neighbor 10.10.123.2
neighbor 10.10.123.3
!
!R2:
!
interface Loopback0
ip address 10.10.2.2 255.255.255.0
!
interface Serial1/0
ip address 10.10.123.2 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 10.10.123.1 201
frame-relay map ip 10.10.123.3 201
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
!R3:
interface Loopback0
ip address 10.10.3.3 255.255.255.0
!
interface Serial1/0
ip address 10.10.123.3 255.255.255.0
encapsulation frame-relay
ip ospf priority 0
frame-relay map ip 10.10.123.1 301
frame-relay map ip 10.10.123.2 301
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
!
Sonuçlar:
*Mar 1 00:25:25.951: OSPF: Send hello to 10.10.123.2 area 0 on Serial1/0 from 10.10.123.1
*Mar 1 00:25:25.955: OSPF: Send hello to 10.10.123.3 area 0 on Serial1/0 from 10.10.123.1
R1#sh ip ospf interface s1/0
Serial1/0 is up, line protocol is up
Internet Address 10.10.123.1/24, Area 0
Process ID 1, Router ID 10.10.1.1, Network Type NON_BROADCAST, Cost: 64
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 10.10.1.1, Interface address 10.10.123.1
No backup designated router on this network
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:01
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 4 msec
Neighbor Count is 2, Adjacent neighbor count is 2
Adjacent with neighbor 10.10.2.2
Adjacent with neighbor 10.10.3.3
Suppress hello for 0 neighbor(s)
R1#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.10.2.2 0 FULL/DROTHER 00:01:34 10.10.123.2 Serial1/0
10.10.3.3 0 FULL/DROTHER 00:01:58 10.10.123.3 Serial1/0
*Mar 1 00:31:15.139: OSPF: Send hello to 224.0.0.5 area 0 on Serial1/0.12 from 10.1.12.1
R1#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.10.2.2 0 FULL/ - 00:00:33 10.1.12.2 Serial1/0.12
R1#sh ip ospf interface s1/0.12
Serial1/0.12 is up, line protocol is up
Internet Address 10.1.12.1/24, Area 0
Process ID 1, Router ID 10.10.1.1, Network Type POINT_TO_POINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_POINT,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:02
Supports Link-local Signaling (LLS)
Index 1/1, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 10.10.2.2
Suppress hello for 0 neighbor(s)
R1#sh run
interface Serial1/0
no ip address
encapsulation frame-relay
!
interface Serial1/0.12 point-to-point
ip address 10.1.12.1 255.255.255.0
frame-relay interface-dlci 102
!

Cisco cihazlarda konfigirasyon yedegi almak cok onemli ve mutlaka yapılması gereken bir iştir. Problem oluştuğunda önceki konfigirasyonlara dönebilmek sistemin arıza süresini kısaltarak EoC'i (end of career) önler:)
Bu işlemi yapmadan önce yedeği nereye nasil ve ne zaman alacağımıza karar vermemiz gerekir. Benim tavsiyem yedeklerin değişiklik yapıldığında ve güvenli bir ftp sunucuya alınmasıdır.
FTP sunucu ayarladıktan sonra kullanıcımızı oluşturalım:
ip ftp username mcap
ip ftp password secret
Bu islemden sonra yer ve zaman bilgilerini girelim:
archive
write-memory
Yukarida cihazımızda yaptığımız değişiklikleri kaydetmek icin komut verdiğimizde konfigirasyon dosyasi tanımladığımız FTP sunucuya gönderilecektir.
R1#show archive
The next archive file will be named ftp://10.1.1.1/R1-config-2
Archive # Name
0
1 ftp://10.1.1.1/R1-config-1 <- Most Recent
2
3
4
5
6
7
8
9
10
11
12
13
14
Peki acaba FTP'ye kaydettigimiz konfigirasyon dosyasiyla şu anda çalışan sistem dosyasi arasinda fark varmıdır? Bunu anlamak için hemen bir loopback interface oluşturup IP verelim ve nasıl karşılaştıracağımıza bakalım:
R1#show archive config differences ftp://10.1.1.1/R1-config-1 system:running-config
Contextual Config Diffs:
+interface Loopback99
+ip address 1.1.1.1 255.255.255.255
FTP'deki sistem dosyasini çalışan konfig dosyasiyla değiştirmek için yani yedekten geri dönmek için:
R1#configure replace ftp://10.1.1.1/R1-config-1 list force
Loading R1-config-1 !!
[OK - 7400/4096 bytes]
!Pass 1
!List of Commands:
no interface Loopback99
end
Total number of passes: 1
Rollback Done
Cisco cihazlarda kimin hangi komutlari yürüttüğünü nasil anlarız?
Storm-control ve srr-queue bandwith limit farkı:Switch(config)# interface fastethernet0/1
Switch(config-if)# storm-control unicast level bps 1mSwitch(config)# interface fastethernet0/1
Switch(config-if)# srr-queue bandwidth limit 50