實驗環境】html
Cisco Packet Tracer 5.3.2ios
【實驗目的】服務器
練習Cisco IOS的備份與升級ide
【實驗拓撲】htm
【實驗步驟】接口
一、按拓撲圖鏈接設備。此次選用2950交換機做爲思科IOS承載體,由於路由器的接口配置已經很容易了,此次順便練習一下交換機的IP地址配置。服務器仍是TFTP服務器,現實環境下只須要在PC上安裝一個tftpd軟件便可。ip
Server服務器IP:1.1.1.250/24路由
二、配置交換機Vlan 1接口,爲交換機配置管理IP地址(須要與TFTP服務器處於同一網段,常識)rem
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)#endget
必定記得配置完vlan 1接口IP地址後no shutdown
三、查看交換機上已有的的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)
四、備份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)
五、從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)
六、刪除舊的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#
七、也能夠在啓動配置文件中指明須要使用的IOS
Switch(config)#boot system flash:xxx.bin
八、reload從新加載交換機以後就會使用新的IOS了。
Switch#reload
文章源自:烈火網,原文:http://www.veryhuo.com/a/view/37026.html