你可以依照下面的作法:
Cisco 1700,2600,3600,7200系列
1、IOS映像恢復的方法及步驟
1) 連接PC的COM1口與路由器的console口,使用PC的超級終端軟件訪問該路由器;
2) 開啟路由器的電源開關,並在30秒內按下鍵盤的Ctrl+break,中斷路由器的正常啟動以進入rom監視模式,屏幕上提示符如下:
rommon 1>
3) 鍵入xmodem命令:
rommon 1>xmodem c3640-i-mz.120-10.bin(IOS映像文件名)
4) 然後,路由器一直等待從PC上接收該IOS映像文件,此時在超級終端軟件中點擊發送選項,選擇存放在PC本地硬盤中的IOS映像文件,確定後即開始下載文件至路由器的flash memory中,由於通訊帶寬只有9600波特,整個文件下載時間約為1.5小時(依文件大小而定),屏幕顯示信息如下:
Do not start the sending program yet...
device does not contain a valid magic number
dir: cannot open device flash:
WARNING: All existing data in flash will be lost!
Invoke this application only for disaster recovery.
Do you wish to continue? y/n[n]:y
Ready to receive file c3640-i-mz.120-10.bin ...
Erasing flash at 0x307c0000
program flash location 0x30380000
Download Complete!
program load complete, entry point: 0x80008000, size: 0x38f410
5) 接著,路由器將自動重啟,屏幕顯示信息如下:
Self decompressing the image : ################################# [OK]
…
Press RETURN to get started!
2、IOS映像升級的方法及步驟
1) 同理,升級之前先備份,將關鍵文件備份至TFTP服務器,鍵入下列命令: router#copy bootflash tftp(Cisco 3600系列路由器不存在bootflash)
router#copy flash tftp
router#copy startup-config tftp
2) 因為Cisco 1700,2600,3600,7200系列路由器允許在正常工作狀態下重寫flash memory,所以直接鍵入以下命令就可完成IOS映像的在線升級:
router#copy tftp flash
router#reload
或者,為保險起見(以路由器停止服務為代價),在進入rom監視模式後才進行IOS映像的升級,則依次進行下列操作:
2) 在路由器重啟加電後30秒內按下鍵盤的Ctrl+break,中斷路由器的正常啟動直接進入rom監視模式,屏幕上提示符如下:
rommon 1>
或者,在路由器重啟過程完成後進行以下操作,同樣可以進入路由器的rom監視模式:
router#conf t <
=====================================================
前提是,你要有iso的檔案,*.bin
cisco的iso檔要錢的,網路上好像也很難找得到,看看有沒有人可以提供一下吧
|