路由器(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前的配置進行核對比較,確保當前設備回退到可以正常運行的狀態。
本文可以幫助您基本地設置和管理您的路由器。
|