雏鹰部落

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 2697|回复: 5

[讨论/求助] 备份路由器的IOS

[复制链接]
发表于 2005-6-21 11:42:50 | 显示全部楼层 |阅读模式
&lt;DIV>如果你不小心使用了命令erase flash 那么发生什么就可想而知了。因此,建议在你拿到路由器等网络设备时 最好先将它的IOS等操作系统备份出来,以备万一!<BR>本篇主要介绍通过Xmodem上传IOS的过程(以2610为例,不过这个方法用在其他设备上没什么太大区别)<BR>准备工作,只要有Cisco原配的线缆就可以(注:Xmodem与实际的modem没有任何联系 只是一个传输协议 数据是通过终端的串口和路由器的Console口灌进去的)<BR><BR>在没有IOS的情况下 系统只能进入Rommon状态,在这个状态下只能见到如下命令:<BR>rommon 8 &gt; ?<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 &gt; 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>然后在超级终端的传送栏目=&gt; 选择发送选项 =&gt; 再选择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&gt;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&gt;&lt;/DIV><!-- / message --><!-- sig -->
发表于 2005-6-22 11:30:40 | 显示全部楼层
<IMG src="http://www.spoto.net/bbs/images/Emotions/11.gif">不错,赞一个
 楼主| 发表于 2005-6-23 00:19:40 | 显示全部楼层
<P>哈哈&nbsp; 自己顶</P><P>看贴不回复的“格杀勿论”</P>
 楼主| 发表于 2005-6-23 12:53:01 | 显示全部楼层
<BLOCKQUOTE><STRONG>引用</STRONG>:<HR>原文由 <B>rainypan</B> 发表于 <I>2005-6-23 1:46:53</I> :<BR>阿杰,越来越牛X了。哈哈。顶! <HR></BLOCKQUOTE><IMG src="http://www.spoto.net/bbs/images/Emotions/48.gif"><IMG src="http://www.spoto.net/bbs/images/Emotions/48.gif"><IMG src="http://www.spoto.net/bbs/images/Emotions/48.gif">谢谢 PAN的支持
发表于 2014-2-11 09:25:07 | 显示全部楼层
回复

使用道具 举报

发表于 2014-2-11 15:48:01 | 显示全部楼层
厉害的
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|熊猫同学技术论坛|小黑屋| 网络工程师论坛 ( 沪ICP备09076391 )

GMT+8, 2024-12-22 23:10 , Processed in 0.081030 second(s), 18 queries , Gzip On.

快速回复 返回顶部 返回列表