快速完成Cisco路由交換機IOS的恢復
隨著我國路由行業的發展,也推動了路由交換機技術的更新升級,這里我們介紹了Cisco路由交換機的IOS恢復方法,曾經嘗試過一種方法,就是當Flash被刪除后,啟動無法進入系統,可以用X-Modem來恢復它。當時我不小心刪除了一臺Cisco2950Cisco路由交換機的FlashIOS,導致系統無法啟動,在查過不少資料后得到一個結論:唯一的方法通過X-Modem來恢復。我的恢復方法如下:
1、用控制線連接Cisco路由交換機console口與計算機串口1,用帶有xmodem功能的終端軟件連接(win2000 and xp的超級終端就帶這功能)。
2、設置連接方式為串口1(如果連接的是其他串口就選擇其他串口),速率9600,無校驗,無流控,停止位1?;蛘唿c擊默認設置也可以。
3、連接以后計算機回車出現Cisco路由交換機無ios的界面,一般的提示符是:switch:
4、拔掉Cisco路由交換機后的電源線重新啟動交換機。
5、在超級終端輸入:switch:flash_init,會出現如下提示:Initializing Flash...
6:輸入拷貝指令:switch:copy xmodem: flash:image_filename.bin,出現如下提示:Begin the Xmodem or Xmodem-1K transfer now...
7、系統提示不斷出現C這個字母就可以開始傳文件了。
8、點擊超級終端菜單:傳送---發送文件,在協議選項中選擇Xmodem或者Xmodem-1K協議,然后選擇ios的影像文件(*.bin),開始傳送。
9、因為不能改速率,所以傳送得很慢,我的大概傳送了80分鐘左右,請耐心等待。
10、傳送完畢后提示:File "xmodem:" successfully copied to ....,switch:
11、在提示符下輸入switch:boot,啟用新的ios系統。
12、重新加電完成恢復工作。這個是我恢復的方法,現在看來非常的不科學,效率低。后來看了別人同樣用X-Modem恢復IOS,但是效率要高的方法:
先打開超級終端,進入rommon 模式(Ctrl+Break組合鍵),鍵入confreg,如下:
- rommon 1 > confreg 回車
- Configuration Summary
- enabled are:
- load rom after netboot fails
- console baud: 9600
- boot: image specified by the boot system commands
- or default to: cisco2-C2600
- do you wish to change the configuration? y/n [n]: y (選擇 yes)
- enable "diagnostic mode"? y/n [n]: n (選擇 no)
- enable "use net in IP bcast address"? y/n [n]: n (選擇 no)
- disable "load rom after netboot fails"? y/n [n]: n (選擇 no)
- enable "use all zero broadcast"? y/n [n]: n (選擇 no)
- enable "break/abort has effect"? y/n [n]: n (選擇 no)
- enable "ignore system config info"? y/n [n]: n (選擇 no)
- change console baud rate? y/n [n]: y (選擇 yes)
- enter rate: 0 = 9600, 1 = 4800, 2 = 1200, 3 = 2400
- 4 = 19200, 5 = 38400, 6 = 57600, 7 = 115200 [0]: 7 (選擇 7,用最大的115200速率的xmodem傳輸)
- change the boot characteristics? y/n [n]: n (選擇 no)
- Configuration Summary
- enabled are:
- load rom after netboot fails
- console baud: 115200
- boot: image specified by the boot system commands
- or default to: cisco2-C2600
- do you wish to change the configuration? y/n [n]: n (選擇 no)
- You must reset or power cycle for new config to take effect
- rommon 2 > reset 回車
在此時鍵入 reset鍵之前,開始定義串口速度(我的電腦---端口屬性----串口速度調為115200),然后再修改超級終端里設置速率為115200,記住,一定這么做!否則出現亂碼!