<DIV>如果你不小心使用了命令erase flash 那么发生什么就可想而知了。因此,建议在你拿到路由器等网络设备时 最好先将它的IOS等操作系统备份出来,以备万一!<BR>本篇主要介绍通过Xmodem上传IOS的过程(以2610为例,不过这个方法用在其他设备上没什么太大区别)<BR>准备工作,只要有Cisco原配的线缆就可以(注:Xmodem与实际的modem没有任何联系 只是一个传输协议 数据是通过终端的串口和路由器的Console口灌进去的)<BR><BR>在没有IOS的情况下 系统只能进入Rommon状态,在这个状态下只能见到如下命令:<BR>rommon 8 > ?<BR>alias set and display aliases command<BR>boot boot up an external process<BR>break set/show/clear the breakpoint<BR>confreg configuration register utility<BR>cont continue executing a downloaded image<BR>context display the context of a loaded image<BR>cookie display contents of cookie PROM in hex<BR>dev list the device table<BR>dir list files in file system<BR>dis display instruction stream<BR>dnld serial download a program module<BR>frame print out a selected stack frame<BR>help monitor builtin command help<BR>history monitor command history<BR>meminfo main memory information<BR>repeat repeat a monitor command<BR>reset system reset<BR>set display the monitor variables<BR>stack produce a stack trace<BR>sync write monitor environment to NVRAM<BR>sysret print out info from last system return<BR>tftpdnld tftp image download<BR>unalias unset an alias<BR>unset unset a monitor variable<BR>xmodem x/ymodem image download<BR><BR><BR>在这个模式下,输入Xmodem<BR><BR><BR>rommon 9 > xmodem<BR><BR><BR>会提示如下警告:<BR>WARNING: All existing data in bootflash will be lost!<BR>Invoke this application only for disaster recovery.<BR>Do you wish to continue? y/n [n]: y<BR>Ready to receive file ? ...<BR><BR><BR>然后在超级终端的传送栏目=> 选择发送选项 => 再选择Xmodem 并指明IOS所在的路径即开始上传IOS,等待时间很长,视IOS的大小和传输速度。对于初次做IOS上传,建议不要去修改什么传输速率。传完以后 对整个系统初始化 界面如下:<BR><BR><BR>Erasing flash at 0x603c0000<BR>program flash location 0x602f0000<BR>Download Complete!<BR>program load complete, entry point: 0x80008000, size: 0x2f0074<BR>Self decompressing the image : #################################################<BR>################################################################################<BR>################################################################################<BR>################################################################# [OK]<BR><BR>Restricted Rights Legend<BR><BR>Use, duplication, or disclosure by the Government is<BR>subject to restrictions as set forth in subparagraph<BR>(c) of the Commercial Computer Software - Restricted<BR>Rights clause at FAR sec. 52.227-19 and subparagraph<BR>(c) (1) (ii) of the Rights in Technical Data and Computer<BR>Software clause at DFARS sec. 252.227-7013.<BR><BR>cisco Systems, Inc.<BR>170 West Tasman Drive<BR>San Jose, California 95134-1706<BR><BR><BR><BR>Cisco Internetwork Operating System Software<BR>IOS (tm) C2600 Software (C2600-I-M), Version 11.3(6)T, RELEASE SOFTWARE (fc1)<BR>Copyright (c) 1986-1998 by cisco Systems, Inc.<BR>Compiled Tue 06-Oct-98 18:42 by ccai<BR>Image text-base: 0x80008084, data-base: 0x80554578<BR><BR>cisco 2610 (MPC860) processor (revision 0x202) with 12288K/4096K bytes of memory<BR>.<BR>Processor board ID JAB0233005Z (3677578902)<BR>M860 processor: part number 0, mask 32<BR>Bridging software.<BR>X.25 software, Version 3.0.0.<BR>1 Ethernet/IEEE 802.3 interface(s)<BR>1 Serial network interface(s)<BR>32K bytes of non-volatile configuration memory.<BR>4096K bytes of processor board System flash (Read/Write)<BR><BR><BR><BR>Press RETURN to get started!<BR><BR><BR>00:00:06: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up<BR>00:00:06: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up<BR>00:00:06: %SYS-5-CONFIG_I: Configured from memory by console<BR>00:00:06: %SYS-5-RESTART: System restarted --<BR>Cisco Internetwork Operating System Software<BR>IOS (tm) C2600 Software (C2600-I-M), Version 11.3(6)T, RELEASE SOFTWARE (fc1)<BR>Copyright (c) 1986-1998 by cisco Systems, Inc.<BR>Compiled Tue 06-Oct-98 18:42 by ccai<BR>00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on<BR>WL_bank_2610_2>Interface Ethernet0/0, changed state to up<BR>00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed sta<BR>te to up<BR>00:00:07: %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed sta<BR>te to up<BR>2610_2></DIV><!-- / message --><!-- sig --> |