实验环境】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