CCNA視頻:CCNA實驗2:備份和還原IOS

wKioL1Q7JDfAth7LAADmfI6BLAI219.jpg

 

實驗目標:

1:學會通過TFTP服務器備份IOS

2:學會通過TFTP服務器還原IOS

 

實驗步驟:

1:使用TFTP服務器備份交換機IOS

2:使用TFTP服務器還原交換機IOS

3:使用TFTP服務器備份路由器IOS

4:使用TFTP服務器還原路由器IOS

 

實驗總結:


1:建立交換機和TFTP服務器的通信

sw1(config)#hostnameSW1

 

SW1(config)#interfacevlan 1

SW1(config-if)#ipaddress 192.168.1.1 255.255.255.0

SW1(config-if)#noshutdown


 

wKiom1Q7JESB1eo0AAEWhLnCV3Y926.jpg

測試交換機與TFTP服務器之間的通信:

 

SW1#ping192.168.1.2

Typeescape sequence to abort.

Sending5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Succe***ate is 80 percent (4/5), round-trip min/avg/max = 0/0/3 ms

 

2:備份交換機的IOS

SW1#showflash:

Directoryof flash:/

    1 -rw-     4414921          <no date>  c2960-lanbase-mz.122-25.FX.bin

64016384bytes total (59601463 bytes free)

 

SW1#copyflash: tftp:

Sourcefilename []? c2960-lanbase-mz.122-25.FX.bin

Addressor name of remote host []? 192.168.1.2

Destinationfilename [c2960-lanbase-mz.122-25.FX.bin]? c2960-text.bin

Writingc2960-lanbase-mz.122-25.FX.bin....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK- 4414921 bytes]

4414921bytes copied in 3.098 secs (1425000 bytes/sec)


 wKioL1Q7JI2z7yrpAAK9nVizODE342.jpg

3:還原交換機的IOS

SW1#copytftp: flash:

Addressor name of remote host []? 192.168.1.2

Sourcefilename []? c2960-text.bin

Destinationfilename [c2960-text.bin]?

Accessingtftp://192.168.1.2/c2960-text.bin...

Loadingc2960-text.bin from 192.168.1.2:!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK- 4414921 bytes]

4414921bytes copied in 0.076 secs (1578338 bytes/sec)

SW1#showflash:

Directoryof flash:/

    1 -rw-     4414921          <no date>  c2960-lanbase-mz.122-25.FX.bin

    2 -rw-     4414921          <no date>  c2960-text.bin

64016384bytes total (55186542 bytes free)

 

SW1(config)#bootsystem flash:c2960-text.bin

SW1#reload

 

SW1#deleteflash:

Deletefilename []?c2960-text.bin

Deleteflash:/c2960-text.bin? [confirm]

 

SW1#showflash:

Directoryof flash:/

 

    1 -rw-     4414921          <no date>  c2960-lanbase-mz.122-25.FX.bin

 

64016384bytes total (59601463 bytes free)

 

實驗配置二:備份和還原路由器IOS

1:建立路由器和TFTP服務器的通信

R1(config)#interfacefa0/0

R1(config-if)#ipaddress 192.168.1.1 255.255.255.0

R1(config-if)#noshutdown

 

TFTP服務器地址配置 (略)

 

測試路由器與TFTP服務器之間的通信:

R1(config-if)#doping 192.168.1.2

Typeescape sequence to abort.

Sending5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds:

.!!!!

Succe***ate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms

 

2:備份路由器的IOS

R1#showflash:

Systemflash directory:

File  Length  Name/status

  3  50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin

  2  28282    sigdef-category.xml

  1  227537   sigdef-default.xml

[51193823bytes used, 12822561 available, 64016384 total]

63488Kbytes of processor board System flash (Read/Write)

 

R1#copyflash: tftp:

Sourcefilename []? c2800nm-advipservicesk9-mz.124-15.T1.bin

Addressor name of remote host []? 192.168.1.2

Destinationfilename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? c2800-text.bin

Writingc2800nm-advipservicesk9-mz.124-15.T1.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(略)

[OK- 50938004 bytes]

50938004bytes copied in 0.849 secs (59997000 bytes/sec)

 

3:還原路由器的IOS:

R1#copytftp: flash:

Addressor name of remote host []? 192.168.1.2

Sourcefilename []? c2800-text.bin

Destinationfilename [c2800-text.bin]?

Accessingtftp://192.168.1.2/c2800-text.bin...

Loadingc2800-text.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(略)

[OK- 50938004 bytes]

50938004bytes copied in 0.876 secs (4216168 bytes/sec)

%Error copyingtftp://192.168.1.2/c2800-text.bin (Not enough space on device)

 

R1#deleteflash:

Deletefilename []?c2800nm-advipservicesk9-mz.124-15.T1.bin

Deleteflash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm]

 

R1#copytftp: flash:

Addressor name of remote host []? 192.168.1.2

Sourcefilename []? c2800-text.bin

Destinationfilename [c2800-text.bin]?

Accessingtftp://192.168.1.2/c2800-text.bin...

Loadingc2800-text.bin from 192.168.1.2: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (略)

[OK- 50938004 bytes]

50938004bytes copied in 0.865 secs (4269784 bytes/sec)

 

R1#showflash:

Systemflash directory:

File  Length  Name/status

  4  50938004 c2800-text.bin

  2  28282    sigdef-category.xml

  1  227537   sigdef-default.xml

[51193823bytes used, 12822561 available, 64016384 total]

63488Kbytes of processor board System flash (Read/Write)


配套視頻演示地址:

http://edu.51cto.com/course/course_id-1992.html

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章