Flash 被清空,只能進入rommon 模式,唯一辦法重灌IOS鏡像檔案,所需IOS檔案可以到cisco官方網站和www.net130.com下載:
軟體準備:
* 先找到與機型相配的IOS檔案(注意機子的記憶體大小選擇大小相配的檔案);
* 去下個Cisco TFTP Server;
硬體準備:
* 除了要一根控制線外,還要一根交叉線來串連Router和你的控制電腦(注意Cisco Router一般規定了灌IOS必須用interface ethernet0/0,即第一個網路連接埠);
注意事項:
* 你要灌的IOS檔案要放到Cisco TFTP Server的根目錄下,Cisco TFTP Server才會自動找到你所需要載入的IOS鏡像檔案;
通過concle口登入路由器,設定tftp的環境
rommon 1 >IP_ADDRESS=192.168.1.2 //預設為路由器第一個乙太網路介面的ip
rommon 2 >IP_SUBNET_MASK=255.255.255.0 //設定路由器乙太網路介面的子網路遮罩
rommon 3 >DEFAULT_GATEWAY=192.168.1.1 //設定網關,否則tftp無法成功
rommon 4 >TFTP_SERVER=192.168.1.104 //設定筆記本ip,即為tftp server的ip
rommon 5 >TFTP_FILE=c2600-i-mz.123-6c.bin //設定路由器要下載的ios檔案名稱
rommon 6 > set //設定tftp完環境後,可以用set命令再檢查一下,也可以略過
PS1=rommon ! >
RET_2_RTS=
IP_ADDRESS=192.168.1.2
IP_SUBNET_MASK=255.255.255.0
DEFAULT_GATEWAY=192.168.1.1
TFTP_SERVER=192.168.1.104
TFTP_FILE=c2600-i-mz.123-6c.bin
rommon 7 > tftpdnld //核對無誤後,開始tftp
IP_ADDRESS: 192.168.1.2
IP_SUBNET_MASK: 255.255.255.0
DEFAULT_GATEWAY: 192.168.1.1
TFTP_SERVER: 192.168.1.104
TFTP_FILE:c2600-i-mz.123-6c.bin
Invoke this command for disaster recovery only.
WARNING: all existing # in all partitions on flash will be lost!
Do you wish to continue? y/n: [n]: y
Receiving c2600-c-mz.121-9.bin from 192.168.1.104
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
File reception completed.
Copying file c2600-c-mz.121-9.bin to flash.
Erasing flash at 0x607c0000
program flash location 0x60120000
rommon 8 > confreg //下載ios完畢後,還需設定寄存器的值
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 //要選擇“y”
enable "diagnostic mode"? y/n [n]: n
enable "use net in IP bcast address"? y/n [n]: n
disable "load rom after netboot fails"? y/n [n]: n
enable "use all zero broadcast"? y/n [n]: n
enable "break/abort has effect"? y/n [n]: n
enable "ignore system config info"? y/n [n]: n
change console baud rate? y/n [n]: n
change the boot characteristics? y/n [n]: y //要選擇“y”
enter to boot:
0 = ROM Monitor
1 = the boot helper image
2-15 = boot system
[2]:2 //要選擇“2”
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]:n
rommon 8 > reset //重啟路由器
重啟後,恢複正常
如果不能確定ios版本,可在路由器重啟之前,按ctrl+break進入rommon後,輸入reset命令,可以看到當前路由器需要ios的版本檔案
本文來自CSDN部落格,轉載請標明出處:http://blog.csdn.net/yangfree990/archive/2010/06/10/5661937.aspx