|             路由器(Router)是连接两个或多个网络的硬件设备,在网络间起网关的作用,是读取每一个数据包中的地址然后决定如何传送的专用智能性的网络设备,路由器最主要的功能为实现信息的转送。 由于现有的4507 ios存在bug,现通过升级ios来修复。 
升级前IOS版本信息:cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin 
升级后IOS版本信息:cat4500e-universal.SPA.03.08.10.E.152-4.E10.bin 
由于IOS版本比较新,对应的ROM也需要升级。 
升级前ROM版本信息:cat4500-e-ios-promupgrade-150-1r-SG5 
升级后ROM版本信息:cat4500-e-ios-promupgrade-150-1r-SG10 
1.设备运行状态检查 
通过设备运行状态检查命令,记录设备运行现状,以备升级前后对比 
show version 
show bootvar 
show cdp neighbors 
show interfaces status 
show ip interfaces brief 
show etherchannel summary 
show processes cpu | ex 0.00 
show processes memory | in sed 
show module 
show environment status 
show logging 
show run 
 
2.备份配置 
原设备配置备份包括两部分,IOS软件和设备配置。 
将IOS导出到固定的外部存储介质,已完成。 
将运行配置导出到固定的外部存储介质: 
WL-4507#copy running-config: tftp: 
Address or name of remote host []? 192.168.2.55 
Source filename []?172.17.10.2_WL-4507.log 
Destination filename [172.17.10.2_WL-4507.log]? 
 
3.引擎容量和寄存值检查 
WL-4507# show version 
…… 
Configuration register is 0x2102 
 
4.将新的IOS和ROM文件上传至引擎 
WL-4507#copy tftp: bootflash: 
Address or name of remote host []? 192.168.2.55 
Source filename []?cat4500e-universal.SPA.03.08.10.E.152-4.E10.bin 
Destination filename [cat4500e-universal.SPA.03.08.10.E.152-4.E10.bin]? 
 
WL-4507#copy tftp: bootflash: 
Address or name of remote host []? 192.168.2.55 
Source filename []?cat4500-e-ios-promupgrade-150-1r-SG10 
Destination filename [cat4500-e-ios-promupgrade-150-1r-SG10]? 
 
5.配置并检查设备启动参数 
WL-4507#conf t 
WL-4507(config)#no boot system bootflash:cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin 
WL-4507(config)#boot system flash bootflash:cat4500-e-ios-promupgrade-150-1r-SG10 
WL-4507(config)#boot system flash bootflash:cat4500e-universal.SPA.03.08.10.E.152-4.E10.bin 
WL-4507(config)#config-register 0x2102 
WL-4507#write 
WL-4507#show bootvar 
 
6.重启 
确定bootvar和寄存器值没有问题后,重新启动。 
WL-4507# reload 
手动重启后设备会先升级ROM,ROM升级完成第二次自动重启,第二次自动重启时会把ROM再升级一遍,再加载新IOS,最后进入系统。 
重启时间大概10分钟左右。 
 
7.升级后的检查 
WL-4507# show version 
WL-4507#conf t 
WL-4507(config)#no boot system flash bootflash: cat4500-e-ios-promupgrade-150-1r-SG10 
WL-4507# show bootvar 
WL-4507#write 
将检查命令再次检查一遍。 
使用对比工具对比升级前后的配置文件,查看是否有配置丢失或者改动的地方。 
至此,升级完成! 
 
附:回退实施步骤 
修改启动引导参数 
WL-4507(config)#no boot system flash bootflash: cat4500e-universal.SPA.03.08.10.E.152-4.E10.bin 
WL-4507(config)#boot system flash bootflash: cat4500-e-ios-promupgrade-150-1r-SG5 
WL-4507(config)#boot system flash bootflash: cat4500e-universal.SPA.03.03.00.SG.151-1.SG.bin 
重新启动当前设备 
WL-4507# reload 
配置验证与网络测试验证 
将回退IOS后的配置与升级IOS前的配置进行核对比较,确保当前设备回退到可以正常运行的状态。 
  
 本文可以帮助您基本地设置和管理您的路由器。    |