第一種方法:X-Modem
曾經(jīng)嘗試過(guò)一種方法,就是當(dāng)Flash被刪除后,啟動(dòng)無(wú)法進(jìn)入系統(tǒng),可以用X-Modem來(lái)恢復(fù)它。當(dāng)時(shí)我不小心刪除了一臺(tái)Cisco2950交換機(jī)的FlashIOS,導(dǎo)致系統(tǒng)無(wú)法啟動(dòng),在查過(guò)不少資料后得到一個(gè)結(jié)論:唯一的方法通過(guò)X-Modem來(lái)恢復(fù)。我的恢復(fù)方法如下:
1、用控制線連接交換機(jī)console口與計(jì)算機(jī)串口1,用帶有xmodem功能的終端軟件連接(win2000 and xp的超級(jí)終端就帶這功能)。
2、設(shè)置連接方式為串口1(如果連接的是其他串口就選擇其他串口),速率9600,無(wú)校驗(yàn),無(wú)流控,停止位1。或者點(diǎn)擊默認(rèn)設(shè)置也可以。
3、連接以后計(jì)算機(jī)回車(chē)出現(xiàn)交換機(jī)無(wú)ios的界面,一般的提示符是:switch:
4、拔掉交換機(jī)后的電源線重新啟動(dòng)交換機(jī)
5、在超級(jí)終端輸入:
switch:flash_init
會(huì)出現(xiàn)如下提示:
Initializing Flash...
6:輸入拷貝指令:
switch:copy xmodem: flash:image_filename.bin
出現(xiàn)如下提示:
Begin the Xmodem or Xmodem-1K transfer now...
7、系統(tǒng)提示不斷出現(xiàn)C這個(gè)字母就可以開(kāi)始傳文件了
8、點(diǎn)擊超級(jí)終端菜單:傳送---發(fā)送文件,在協(xié)議選項(xiàng)中選擇Xmodem或者Xmodem-1K協(xié)議,然后選擇ios的影像文件(*.bin),開(kāi)始傳送。
9、因?yàn)椴荒芨乃俾,所以傳送得很慢,我的大概傳送?0分鐘左右,請(qǐng)耐心等待。
10、傳送完畢后提示:
File "xmodem:" successfully copied to ....
switch:
11、在提示符下輸入
switch:boot
啟用新的ios系統(tǒng)
12、重新加電完成恢復(fù)工作。
這個(gè)是我恢復(fù)的方法,現(xiàn)在看來(lái)非常的不科學(xué),效率低。后來(lái)看了別人同樣用X-Modem
恢復(fù)IOS,但是效率要高的方法:
先打開(kāi)超級(jí)終端,進(jìn)入rommon 模式(Ctrl+Break組合鍵),鍵入confreg,如下:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rommon 1 > confreg 回車(chē)
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 回車(chē)
【注意】在此時(shí)鍵入 reset鍵之前,開(kāi)始定義串口速度(我的電腦---端口屬性----串
口速度調(diào)為115200),然后再修改超級(jí)終端里設(shè)置速率為115200,記住,一定這么做!否 本新聞共 3頁(yè),當(dāng)前在第 1頁(yè) 1 2 3 |