如何从一个设备复制系统镜像到另一个

如何从一个设备复制系统镜像到另一个
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
复制从设备到设备在同一路由器里面
命令汇总
复制从一个路由器到另一个
Related Information
Introduction
本文档说明了如何在同一个路由器内以及不同路由器之间将系统镜像从一个设备复制到另一个设备。
Prerequisites
Requirements
There are no specific requirements for this document.
Components Used
This document is not restricted to specific software and hardware versions.为本文的目的使用的平台是思科2500系列路由器和Cisco 3600系列路由器。
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
复制从设备到设备在同一路由器里面
复制的系统镜像表下面的提供options命令从一个设备到另一个(方法根据另外平台变化) :
命令汇总
表下面的列表您能从TFTP server复制镜像的多种位置。这些选项根据另外平台变化。请参见使用URL前缀欲知更多信息和为了得知更多这些选项中的每一个。
Router#copy tftp ?
语法说明
Bootflash :复制到Bootflash :文件系统
disk0:复制到disk0 :文件系统
disk1 :复制到disk1 :文件系统
flash:复制闪动:文件系统
flh :复制到flh :文件系统
ftp :复制到ftp :文件系统
lex :复制到lex :文件系统
零位:复制使无效:文件系统
nvram :复制到nvram :文件系统
rcp :复制到rcp :文件系统
running-config更新(合并与)当前系统配置
slot0 :复制到slot0 :文件系统
slot1:复制到slot1 :文件系统
startup-config复制到启动配置
系统:复制到系统:文件系统
tftp :复制到tftp :文件系统
镜像复制使用的三个最普通的命令是:
copy tftp flash
q
copy rcp flash
q
复制slot0 :slot1:
q
下面的示例说明程序为复制系统镜像跟随从一个设备到另一个(例如,从一张slot/磁盘到另一张
slot/磁盘)在Cisco 3600系列路由器。
详细示例
router#show slot0:
!--- This command is used to view the contents of slot 0 -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name 1 .D unknown 5E8B84E6 209D8 11 2392 Jan 22 2000 00:22:42 flashconfig 2 .. image 5E7BAE19 B623C4 22 11802988 Jan 22 2000 00:23:18 rsp-jsv-mz.1 20-8.0.2.T router#sho
w slot1:
!--- This command is used to view the contents of slot 1 -#- ED --type-- --crc--- -seek-- nlen -length- -----date/time------ name 1 .. unknown 6A2B4BA7 6FA9E0 20 7186784 Jul 30 1999 15:05:19 rsp-jv-mz.11 1-26.CC1 2 .. config 631F0D8B 6FB1EC 6 1929 Oct 19 1999 06:15:49 config 3 .. config 631F0D8B 6FB9F8 7 1929 Oct 19 1999 06:16:03 config1
如下所示的copy命令用于从一个设备复制系统镜像镜象文件到另一个。在以下示例中,系统镜像从slot0被复制到slot1。
router#copy slot0: slot1
Source  filename []? rsp-jsv-mz.120-8.0.2.T
!--- Enter the file name of the system image to be copied Destination filename [slot1]? Erase slot1: before copying? [confirm]Erasing the slot1 filesystem will remove all files! Continue? [confirm] eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ...erasedeeErase of slot1:
complete Copy CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC CCCCCCCCCCC ! ---Output Suppressed OK (0xE884)11802988 bytes copied in 346.312 secs (38481 bytes/sec)
复制从一个路由器到另一个
下面跟随的步骤为复制Cisco IOS软件镜像从作为TFTP server的路由器对另一个路由器。在本例中的两路由器是思科2500系列路由器。在本例中, Router1是TFTP server,并且Router2是Cisco IOS软件镜像被复制的路由器。
在您开始前,使用ping命令,请验证Router1和Router2之间的连接。
1.
用show flash命令检查在Router1的图像大小。
Router1#show flash
System flash directory:
File Length Name/status
1 15694836 /c2500-js-l.122-10b
!--- Cisco IOS image file to be copied [15694900 bytes used, 1082316 available, 16777216 total] 16384K bytes of processor board System flash (Read ONLY)
用show flash命令验证足够的空间是否检查在Router2的图像大小是可用的在Router2为了能将2.
被复制的系统镜像镜象文件。
Router2#show flash
System flash directory:
File  Length  Name/status
1  11173264  c2500-jos56i-l.120-9.bin
[11173328 bytes used, 5603888 available, 16777216 total]
16384K bytes of processor board System flash (Read ONLY)
Note: 如果有复制系统镜像镜象文件的足够的空间,则原始一个可以保留,并且新的文件在额外的内存空间可以被复制。如果没有可用足够的空间,作为在这种情况下,则删除从闪存的现有文件,当下载新的时。它是备份现有的系统镜像的一种好习惯对TFTP server使用copy flash tftp命令。
使用configure terminal命令,配置Router1作为TFTP server。
3.
Router1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router1(config)#tftp-server ?
bootflash:  Allow URL file TFTP load requests
disk0:      Allow URL file TFTP load requests
disk1:      Allow URL file TFTP load requests
flash:      Allow URL file TFTP load requests
flh:        Allow URL file TFTP load requests
lex:        Allow URL file TFTP load requests
null:      Allow URL file TFTP load requests
nvram:      Allow URL file TFTP load requests
slot0:      Allow URL file TFTP load requests
slot1:      Allow URL file TFTP load requests
system:    Allow URL file TFTP load requests
Note: 为tftp-server命令给出的以上选项可能为另外平台变化。
Router1(config)#tftp-server flash:?
flash:/c2500-js-l.122-10b
!--- The Cisco IOS image file name. Router1(config)#tftp-server flash:/c2500-js-l.122-10b !--- This command configures the router as a TFTP server. Router1(config)#^Z
4.
当配置时TFTP server,使用copy tftp flash命令,请从Router1下载指定的镜像到Router2。
Router2#copy tftp flash
****  NOTICE  ****
Flash load helper v1.0
This process will accept the copy options and then terminate
the current system image to use the ROM based image for the copy.
Routing functionality will not be available during that time.
If you are logged in via telnet, this connection will terminate.
Users with console access can see the results of the copy operation.
---- ******** ----
Proceed? [confirm]
Address or name of remote host []? 10.10.10.1
!--- Enter the IP address of the TFTP Server Source filename []? /c2500-js-l.122-10b
!--- This is the filename of the Cisco IOS image !--- that you want to copy from the TFTP server Destination filename [c2500-js-l.122-10b]? !--- Press 'Enter' Accessing
tftp://10.10.10.1// Erase flash: before copying? [confirm] 18:37:54: %SYS-5-RELOAD: Reload requested !--- The reload is platform-specific and is only for the !--- Run-from-flash systems.* ** System going down for Flash upgrade ** %SYS-4-CONFIG_NEWER: Configurations from version 12.2 may not be correctly understood. %FLH: /c2500-js-l.122-10b from 10.10.10.1 to flash ... System flash directory: File Length Name/status 1 15694836 /c2500-js-l.122-10b [15694900 bytes used, 1082316 available, 16777216 total] Accessing file '/c2500-js-l.122-10b' on 10.10. Loading /c2500-js-l.122-10b from 10.10.10.1 (via Ethernet0): ! [OK] eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeeeeeeee ...erased Loading /c2500-js-l.122-10b from 10.10.10.1 (via Ethernet0):
!
!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!! [OK -15694836/16777216 bytes] OK (0x58D2) !--- System Image file has been successfully copied Flash copy took 0:07:37 [hh:mm:ss] %FLH: Re-booting system after
download F3: 14732748+962056+889336 at 0x3000060 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) 2500 Software (C2500-JS-L), Version 12.2(10b), RELEASE SOFTWARE (fc1) Copyright (c) 1986-2002 by cisco Systems, Inc. ..........
5.
验证新的系统镜像的闪存在Router2。
Router2#show flash
System flash directory:
File Length Name/status
1 15694836 /c2500-js-l.122-10b
!--- Cisco IOS image file has been copied [15694900 bytes used, 1082316 available, 16777216 total] 16384K bytes of processor board System flash (Read ONLY)
*The从闪存上运行系统的仅路由器重新加载。欲了解更详细的信息,请参阅复制对闪存关于从闪存上运行系统
Note: 通过使用TFTP,为了从一个设备复制Startup-config文件到另一个,请参见复制的配置文件。Related Information
配置一个路由器作为TFTP server
q
移动文件和镜像在路由器和TFTP server之间通过SNMP
q
装载和维护系统镜像
q
Technical Support & Documentation - Cisco Systems
q

本文发布于:2024-09-20 22:47:19,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/4/91255.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:镜像   复制   系统   设备
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议