免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 908 | 回复: 0
打印 上一主题 下一主题

介绍两种恢复CISCO IOS的方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-02 16:38 |只看该作者 |倒序浏览
如果您的路由器的flash因为意外丢失了IOS,您可以在ROM monitor commands模式下通过如下两种办法恢复:
  
  1) xmodem—Use this if the computer attached to your console has a terminal emulator that has xmodem capability.
  2) tftpdnld—Use this if you have a TFTP server directly connected to the Ethernet 0 port.
  
  Using the xmodem Command
  The xmodem command establishes a connection between a console and the router console port for disaster recovery if both the boot and system images are erased from Flash memory.
  xmodem [filename]—Establishes an xmodem connection between the console and the router. The optional parameter filename specifies the source file containing the Cisco IOS image.
  Other options include the following:
   ·-c—use cyclic redundancy check (CRC-16)
   ·-y—use Ymodem transfer protocol
   ·-r—copy the image to DRAM for launch
   ·-x—do not launch image on completion of download
  
  Using the tftpdnld Command
  The tftpdnld command downloads a Cisco IOS software image from a remote server into Flash memory using TFTP.
  tftpdnld—Begins the TFTP copy command.
  The following variables are required:
  ·IP_ADDRESS—The IP address for the router you are using.
  ·IP_SUBNET_MASK—The subnet mask for the router you are using.
  ·DEFAULT_GATEWAY—The default gateway for the router you are using.
  ·TFTP_SERVER—The IP address of the server from which you want to download the image file.
  ·TFTP_FILE—The name of the file that you want to download.
  ·The following variables are optional:
  ·TFTP_VERBOSE—Print setting. 0=quiet, 1=progress, 2=verbose. The default is 1.
  ·TFTP_RETRY_COUNT—Retry count for ARP and TFTP. The default is 7.
  ·TFTP_TIMEOUT—Overall timeout of the download operation in seconds. The default is 2400 seconds.
  ·TFTP_CHECKSUM—Performs a checksum test on the image. 0=no, 1=yes. The default is 1.
  The syntax for specifying the variables is:
  VARIABLE_NAME=value
  
  After you specify the variables, you must reenter the tftpdnld command. For example:
  rommon 1 > tftpdnld
  
  rommon 2 > IP_ADDRESS=172.15.19.11
  
  rommon 3 > IP_SUBNET_MASK=255.255.255.0
  
  rommon 4 > DEFAULT_GATEWAY=172.15.19.1
  
  rommon 5 > TFTP_SERVER=172.15.20.10
  
  rommon 6 > TFTP_FILE=/tftpboot/c2600-i-mz
  
  rommon 7 > TFTP_VERBOSE=1
  
  rommon 8 > tftpdnld
  
  
     IP_ADDRESS=172.15.19.11
     IP_SUBNET_MASK=255.255.255.0
     DEFAULT_GATEWAY=172.15.19.1
     TFTP_SERVER=172.15.20.10
     TFTP_FILE=/tftpboot/2600-i-mz
     TFTP_VERBOSE=1
  
  Invoke this command for disaster recovery only.
  WARNING: all existing data in flash will be lost!
  Do you wish to continue? y/n: [n]:
  
  Enter y to begin downloading the Cisco IOS software image. When the process is complete, the ROM monitor mode prompt displays on your screen.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/20074/showart_352537.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP