CCNA網絡技術實驗手冊:Cisco IOS備份與升級

實驗環境】

Cisco Packet Tracer 5.3.2

【實驗目的】

練習Cisco IOS的備份與升級

【實驗拓撲】

【實驗步驟】

1、按拓撲圖連接設備。這次選用2950交換機作爲思科IOS承載體,因爲路由器的接口配置已經很容易了,這次順便練習一下交換機的IP地址配置。服務器還是TFTP服務器,現實環境下只需要在PC上安裝一個tftpd軟件即可。

Server服務器IP:1.1.1.250/24

2、配置交換機Vlan 1接口,爲交換機配置管理IP地址(需要與TFTP服務器處於同一網段,常識)

Switch#conf t
Switch(config)#int vlan 1
Switch(config-if)#ip add 1.1.1.1 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#end

一定記得配置完vlan 1接口IP地址後no shutdown

3、查看交換機上已有的的ios名稱

Switch#dir flash:
Directory of flash:/

1  -rw-     3058048          <no date>  c2950-i6q4l2-mz.121-22.EA4.bin

64016384 bytes total (60958336 bytes free)

4、備份Cisco ios鏡像到TFTP服務器

Switch#copy flash: tftp:
Source filename []? c2950-i6q4l2-mz.121-22.EA4.bin
Address or name of remote host []? 1.1.1.250
Destination filename [c2950-i6q4l2-mz.121-22.EA4.bin]?
Writing c2950-i6q4l2-mz.121-22.EA4.bin....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3058048 bytes]
3058048 bytes copied in 4.844 secs (631000 bytes/sec)

5、從TFTP服務器上升級Cisco ios鏡像

TFTP服務器上的2950升級IOS鏡像文件爲c2950-i6q4l2-mz.121-22.EA8.bin

Switch#copy tftp: flash:
Address or name of remote host []? 1.1.1.250
Source filename []? c2950-i6q4l2-mz.121-22.EA8.bin
Destination filename [c2950-i6q4l2-mz.121-22.EA8.bin]?
Accessing tftp://1.1.1.250/c2950-i6q4l2-mz.121-22.EA8.bin...
Loading c2950-i6q4l2-mz.121-22.EA8.bin from 1.1.1.250: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 3117390 bytes]
3117390 bytes copied in 1.875 secs (1662608 bytes/sec)

6、刪除舊的IOS鏡像文件

Switch#dir flash:
Directory of flash:/

1  -rw-     3058048          <no date>  c2950-i6q4l2-mz.121-22.EA4.bin
2  -rw-     3117390          <no date>  c2950-i6q4l2-mz.121-22.EA8.bin

64016384 bytes total (57840946 bytes free)

Switch#delete c2950-i6q4l2-mz.121-22.EA4.bin
Delete filename [c2950-i6q4l2-mz.121-22.EA4.bin]?
Delete flash:/c2950-i6q4l2-mz.121-22.EA4.bin? [confirm]

Switch#dir flash:
Directory of flash:/

2  -rw-     3117390          <no date>  c2950-i6q4l2-mz.121-22.EA8.bin

64016384 bytes total (60898994 bytes free)
Switch#

7、也可以在啓動配置文件中指明需要使用的IOS

Switch(config)#boot system flash:xxx.bin

8、reload重新加載交換機之後就會使用新的IOS了。

Switch#reload


文章源自:烈火網,原文:http://www.veryhuo.com/a/view/37026.html

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