rommon采用xmodem這種方法恢復(fù)IOS時,,由于使用console口來傳送,速率為9600bps,,需要時間較長,。因此可修改console口速率利用xmodem命令實現(xiàn)快速升級IOS.具體方法如下:
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: C3600 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,,用最大的11520 速率的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: C3600 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鍵前,,需要修改串口速度(我的電腦——端口屬性——串口速度調(diào)為115200),,然后再修改超級終端里設(shè)置速率為115200,記住,,一定要這么做,,否則會出現(xiàn)亂碼! 然后關(guān)閉這個超級終端,,重新建立一個超級終端連接,,重新啟動路由器后,出現(xiàn)界面,。 rommon 1> 提示符然后,,輸入 rommon 1> xmodem -r Do not start the sending program yet…… Invoke this application only for disaster recovery. Do you wish to continue? y/n [n]: y (選擇 yes) Ready to receive file …… 此時,,在超級終端的菜單上的“傳送”——“發(fā)送文件”——選擇IOS映像文件所在地以及選擇使用“xmodem”協(xié)議,,點擊“發(fā)送”即可。待升級完成后,,請記住修改回計算機(jī)串口與超級終端,、路由器confreg下的xmodem等傳輸速率為 9600bps. 方法如下: Router>en 進(jìn)入新IOS的特權(quán)模式 Router#reload 重啟系統(tǒng) Proceed with reload? [confirm] 回車 00:01:04: %SYS-5-RELOAD: Reload requested System Bootstrap,, Version 11.3(2)XA4,, RELEASE SOFTWARE (fc1) Copyright (c) 1999 by cisco Systems, Inc. TAC:Home:SW:IOS:Specials for info PC = 0xfff0a530,, Vector = 0x500,, SP = 0x680127b0 C2600 platform with 24576 Kbytes of main memory PC = 0xfff0a530, Vector = 0x500,, SP = 0x80004684 monitor: command "boot" aborted due to user interrupt 30秒內(nèi)按ctrl+break鍵 rommon 1 > confreg ( 輸入“confreg”命令) Configuration Summary enabled are: load rom after netboot fails console baud: 115200 boot: image specified by the boot system commands or default to: C3600 do you wish to change the configuration,? y/n [n]: y (選擇 yes) enable "diagnostic mode"? y/n [n]: n (選擇 no) enable "use nn 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 [7]: 0 (選擇 0,,改回用標(biāo)準(zhǔn)速率速率9600的xmodem傳輸) change the boot characteristics,? y/n [n]: n (選擇 no) Configuration Summary enabled are: load rom after netboot fails console baud: 9600 boot: image specified by the boot system commands or default to: C3600 do you wish to change the configuration? y/n [n]: n You must reset or power cycle for new config to take effect rommon 2 >此時手工改回計算機(jī)串口與超級終端2者傳輸速率為9600 然后敲入 rommon 2 >reset最好關(guān)掉電源后,,重新啟動,,恢復(fù)原有狀態(tài)。 |
|