实验环境】
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.bin64016384 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
文章源自:烈火网,原文: