<b>第一種方法:系統還可以啟動到配置模式時</b><b> </b>
使用copy tftp flash即可更新 //拷貝TFTP伺服器上IOS到FLASH裡
<b>第二種方法:</b><b>IOS</b><b>被删除後的恢複</b><b> </b>
如果因為誤操作将FLASH中的IOS删除了,原IOS中的大部分指令都無法具體的過程如下,那麼ROUTER将進入ROM使用。此時,可以通過TFTP服 務器向中存儲的基本IOS模式,在這種模式下ROUTER傳輸IOS,使系統得已恢複。其在一台機器上安裝TFTP伺服器軟體,将IOS檔案放置在 TFTP伺服器的預設根目錄下,打開TFTP伺服器,用控制線将這台機器與ROUTER連接配接起來,另外用交叉網線連接配接機器的網卡和ROUTER的以太口。 (也可以用普通的網線将ROUTER和交換機相連再連接配接機器)做好以上工作後,打開機器的超級終端工具,連接配接上ROUTER,此時視窗中出現的指令行提示 符為: ROMMON 1 > (其中“1”代表指令行的行數)。在提示符後輸入指令:(可以使用ctrl+break組合鍵進入ROMMON模式)
ROMMON 1 >IP_ADDRESS= 路由器的IP位址(需與TFTP伺服器在同一網段内)
ROMMON 2 >IP_SUBNET_MASK= 路由器的子網路遮罩
ROMMON 3 >DEFAUT_GATEWAY= 預設網關位址 (可以沒有,也可以是TFTP伺服器)
ROMMON 4 >TFTP_SERVER= TFTP 伺服器IP位址
ROMMON 5 >TFTP_FILE= IOS檔案名(隻給出檔案名,不需要路徑)
ROMMON 6 >tftpdnld 回車
注意:前面的幾條指令必須使用大寫,而最後的tftpdnld則要用小寫。
在tftpdnld指令執行後,隻行下,輸入reset重新開機ROUTER,要根據提示選,就可完成檔案的傳重新開機後就又回到了熟悉的IOS模式下輸。當檔案傳輸完後,将自動回到指令甚至連以前配置的資訊都不會丢失。
<b>第三種方法:通過</b><b>Xmodem</b><b>更新</b><b>2610</b><b>的</b><b>IOS</b><b>執行個體</b><b> </b>
本篇主要介紹通過Xmodem上傳IOS的過程,準備工作,隻要有Cisco原配的線纜就可以.
在沒有IOS的情況下 系統隻能進入Rommon狀态,在這個狀态下隻能見到如下指令:
rommon 1 > ?
alias set and display aliases command
boot boot up an external process
break set/show/clear the breakpoint
confreg configuration register utility
cont continue executing a downloaded image
context display the context of a loaded image
cookie display contents of cookie PROM in hex
dev list the device table
dir list files in file system
dis display instruction stream
dnld serial download a program module
frame print out a selected stack frame
help monitor builtin command help
history monitor command history
meminfo main memory information
repeat repeat a monitor command
reset system reset
set display the monitor variables
stack produce a stack trace
sync write monitor environment to NVRAM
sysret print out info from last system return
tftpdnld tftp image download
unalias unset an alias
unset unset a monitor variable
xmodem x/ymodem image download
rommon 2 > xmodem -r
<b>會提示如下警告:</b>
WARNING: All existing data in bootflash will be lost!
//警告:在bootflash所有現有的資料将丢失 (實際上就是把以前IOS删掉,把現在的拷貝進去)
Invoke this application only for disaster recovery.
Do you wish to continue? y/n [n]: y
Ready to receive file ? ...
對于初次做IOS上傳,建議不要去修改什麼傳輸速率。傳完以後對整個系統初始化 界面如下:
Erasing flash at 0x603c0000
program flash location 0x602f0000
Download Complete!
program load complete, entry point: 0x80008000, size: 0x2f0074
Self decompressing the image : #################################################
################################################################################
################################################################# [OK]
<b>這裡說明已經成功了</b><b> </b><b>!!</b><b></b>
<b></b>
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-I-M), Version 11.3(6)T, RELEASE SOFTWARE (fc1)
Copyright (c) 1986-1998 by cisco Systems, Inc.
Compiled Tue 06-Oct-98 18:42 by ccai
Image text-base: 0x80008084, data-base: 0x80554578
cisco 2610 (MPC860) processor (revision 0x202) with 12288K/4096K bytes of memory
.
Processor board ID JAB0233005Z (3677578902)
M860 processor: part number 0, mask 32
Bridging software.
X.25 software, Version 3.0.0.
1 Ethernet/IEEE 802.3 interface(s)
1 Serial network interface(s)
32K bytes of non-volatile configuration memory.
4096K bytes of processor board System flash (Read/Write)
Press RETURN to get started!
00:00:06: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up
00:00:06: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up
00:00:06: %SYS-5-CONFIG_I: Configured from memory by console
00:00:06: %SYS-5-RESTART: System restarted --
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on
WL_bank_2610_2>Interface Ethernet0/0, changed state to up
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed sta
te to up
00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed sta
2610_2> //啟動完畢
<b>實驗完成</b><b> !!</b>
本文轉自 meiyanaa 51CTO部落格,原文連結:http://blog.51cto.com/justim/240466,如需轉載請自行聯系原作者