首页 运维 网络学院 查看内容

思科路由器ios备份与恢复

2011-10-31 19:27 1035 0

摘要:   TFTP之IOS备份  更具如图要求,将2811路由器ios通过网络备份到192.168.1.100tftp服务器中。  Router#show flash  #查看IOS文件  Sys...
关键词: advipservicesk 路由器 TFTP cisco flash bytes SOFTWARE default 2800 nbsp

  TFTP之IOS备份  更具如图要求,将2811路由器ios通过网络备份到192.168.1.100tftp服务器中。  Router#show flash  #查看IOS文件  System flash directory:  File Length Name/status  3 50938004 c2800nm-advipservicesk9-mz.124-15.T1.bin  2 28282 sigdef-category.xml  1 227537 sigdef-default.xml  [51193823 bytes used, 12822561 available, 64016384 total]  63488K bytes of processor board System flash (Read/Write)  Router#copy flash tftp  #copy ios至tftp  Source filename []? c2800nm-advipservicesk9-mz.124-15.T1.bin  #原IOS文件  Address or name of remote host []? 192.168.1.100 #tftp服务器地址  Destination filename [c2800nm-advipservicesk9-mz.124-15.T1.bin]? #目标存放文件名  Writing c2800nm-advipservicesk9-mz.124-15.T1.bin…!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  [OK - 50938004 bytes]  50938004 bytes copied in 40.84 secs (1247000 bytes/sec)  路由器IOS恢复  1.删除路由器IOS  Router#delete flash #删除路由器IOS文件  Delete filename []?c2800nm-advipservicesk9-mz.124-15.T1.bin  #指定删除文件  Delete flash:/c2800nm-advipservicesk9-mz.124-15.T1.bin? [confirm]  #确认删除  Router#show flash  System flash directory:  File Length Name/status  2 28282 sigdef-category.xml  1 227537 sigdef-default.xml  [255819 bytes used, 63760565 available, 64016384 total]  63488K bytes of processor board System flash (Read/Write)  2.在路由器rommon模式下恢复IOS  Router#reload #重启路由器  Proceed with reload? [confirm]  System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)  Copyright (c) 2000 by cisco Systems, Inc.  cisco 2811 (MPC860) processor (revision 0×200) with 60416K/5120K bytes of memory  Boot process failed  The system is unable to boot automatically. The BOOT  environment variable needs to be set to a bootable  image.  rommon 1 > tftpdnld #IOS恢复命令  Missing or illegal ip address for variable IP_ADDRESS  Illegal IP address.  usage: tftpdnld  Use this command for disaster recovery only to recover an image via TFTP.  Monitor variables are used to set up parameters for the transfer.  (Syntax: “VARIABLE_NAME=value” and use “set” to show current variables.)  “ctrl-c” or “break” stops the transfer before flash erase begins.  The following variables are REQUIRED to be set for tftpdnld:  IP_ADDRESS: The IP address for this unit  IP_SUBNET_MASK: The subnet mask for this unit  DEFAULT_GATEWAY: The default gateway for this unit  TFTP_SERVER: The IP address of the server to fetch from  TFTP_FILE: The filename to fetch  The following variables are OPTIONAL:  TFTP_VERBOSE: Print setting. 0=quiet, 1=progress(default), 2=verbose  TFTP_RETRY_COUNT: Retry count for ARP and TFTP (default=7)  TFTP_TIMEOUT: Overall timeout of operation in seconds (default=7200)  TFTP_CHECKSUM: Perform checksum test on image, 0=no, 1=yes (default=1)  FE_SPEED_MODE: 0=10/hdx, 1=10/fdx, 2=100/hdx, 3=100/fdx, 4=Auto(deflt)  rommon 2 > IP_ADDRESS=192.168.1.1  #指定路由器f0/0口地址  rommon 3 > IP_SUBNET_MASK=255.255.255.0 #指定子网掩码  rommon 4 > DEFAULT_GATEWAY=192.168.1.1  #指定默认网关  rommon 5 > TFTP_SERVER=192.168.1.100  #指定tftp服务器地址  rommon 6 > TFTP_FILE=c2800nm-advipservicesk9-mz.124-15.T1.bin  #指定恢复IOS恢复文件  rommon 7 > tftpdnld  #列出配置信息  IP_ADDRESS: 192.168.1.1  IP_SUBNET_MASK: 255.255.255.0  DEFAULT_GATEWAY: 192.168.1.1  TFTP_SERVER: 192.168.1.100  TFTP_FILE: c2800nm-advipservicesk9-mz.124-15.T1.bin  Invoke this command for disaster recovery only.  WARNING: all existing data in all partitions on flash will be lost!  Do you wish to continue? y/n: [n]: y  #确认是否继续,Y继续。  Receiving c2800nm-advipservicesk9-mz.124-15.T1.bin from 192.168.1.100!!!!!!!!!!!!!!!!!!!!!  program flash location 0×63070000  program flash location 0×63080000  program flash location 0×63090000  rommon 9 > dir flash  #恢复成功后查看IOS文件  File size Checksum File name  50938004 bytes (0×3094094) 0x439d c2800nm-advipservicesk9-mz.124-15.T1.bin  rommon 10> boot  #或使用reset重启路由器即可  System Bootstrap, Version 12.1(3r)T2, RELEASE SOFTWARE (fc1)  Copyright (c) 2000 by cisco Systems, Inc.  cisco 2811 (MPC860) processor (revision 0×200) with 60416K/5120K bytes of memory  Self decompressing the image :  ########################################################################## [OK]  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 IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)  Technical Support: http://www.cisco.com/techsupport  Copyright (c) 1986-2007 by Cisco Systems, Inc.  Compiled Wed 18-Jul-07 06:21 by pt_rel_team  Image text-base: 0x400A925C, data-base: 0x4372CE20  This product contains cryptographic features and is subject to United  States and local country laws governing import, export, transfer and  use. Delivery of Cisco cryptographic products does not imply  third-party authority to import, export, distribute or use encryption.  Importers, exporters, distributors and users are responsible for  compliance with U.S. and local country laws. By using this product you  agree to comply with applicable laws and regulations. If you are unable  to comply with U.S. and local laws, return this product immediately.  A summary of U.S. laws governing Cisco cryptographic products may be found at:  http://www.cisco.com/wwl/export/crypto/tool/stqrg.html  If you require further assistance please contact us by sending email to  [email protected].  cisco 2811 (MPC860) processor (revision 0×200) with 60416K/5120K bytes of memory  Processor board ID JAD05190MTZ (4292891495)  M860 processor: part number 0, mask 49  2 FastEthernet/IEEE 802.3 interface(s)  239K bytes of non-volatile configuration memory.  62720K bytes of ATA CompactFlash (Read/Write)  Cisco IOS Software, 2800 Software (C2800NM-ADVIPSERVICESK9-M), Version 12.4(15)T1, RELEASE SOFTWARE (fc2)  Technical Support: http://www.cisco.com/techsupport  Copyright (c) 1986-2007 by Cisco Systems, Inc.  Compiled Wed 18-Jul-07 06:21 by pt_rel_team  — System Configuration Dialog —  Continue with configuration dialog? [yes/no]:  路由器IOS恢复完成!  IOS恢复注意事项:  1. 只能使用交叉线将TFTP与路由器的f0/0口进行连接。  2. tftp_server上必须有路由器匹配的IOS印象文件。  3. tftp_server地址必须与路由器地址在同一网段中
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部