《案例10:备份和恢复.docx》由会员分享,可在线阅读,更多相关《案例10:备份和恢复.docx(5页珍藏版)》请在第壹文秘上搜索。
1、案例10:备份与恢复1.案例目标通过本案例,你可以掌握如下技能:1)备份CiSCoK)S2)恢复CiSColc)S3)备份启动配置与运行配置4)恢复启动配置与运行配置3 .设备与拓扑设备:1台Laptop-PT,1台Server-PT,1台2811路由器。拓扑:如下列图。4 .操作步骤步骤1:按以上拓扑添加和连接设备。步骤2:配置路由器与效劳器的IP地址Router#configureterminalRl(config)#interfaceFastEthernetO/1Rl(config-if)#ipaddressRl(config-if)#注意,效劳器的IP地址可使用IPConfigurat
2、ion进行配置,简单快捷。步骤3:验证路由器与效劳器之间的连通性Typeescapesequencetoabort.Sending5z100-byteICMPEchosto192.168.1.5ztimeoutis2seconds:muSuccessrateis100percent(5/5),round-tripmin/avg/max=31/31/32msRI#步骤4:查看路由器flash中的CiscoIOS镜像Rl#shflash:Systemflashdirectory:FileLengthName/status350938004228282sigdef-category.xmI12275
3、37sigdef-default.xml51193823bytesused,12822561available,64016384total63488KbytesofprocessorboardSystemflash(Read/Write)RI#注意CiscoIOS镜像的大小与文件名步骤5:备份CiSColoS到TFTP效劳器Rl#copyflash:tftp:Sourcefilename?Addressornameofremotehost?/TFTP效劳器地址Destinationfilenamec2800nm-advipservicesk9-mz.l24-15.Tl.bin?Writingc
4、2800nm-advipservicesk9-mz.l24-15.Tl.bin.!H!H!IllllOK-50938004bytes50938004bytescopiedin27.828secs(1830000bytes/sec)RI#步骤6:在TFTP效劳器上验证备份翻开效劳器的COnf页面,单击TFTP按钮,可见右边窗口已有备份的CiSCoIOS镜像。步骤7:从TFTP效劳器恢复(升级)CiscoIOS假设TFTP效劳器上要想恢复或升级的CiscoIOS镜像是:Rl#copytftp:flash:Addressornameofremotehost?/TFTP效劳器地址Sourcefilen
5、ame?Destinationfilenamec2800nm-ipbase-mz.l23-14.T7.bin?*IiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiIiiiiiiiiiiiiiiiiiiiiiOK-5571584bytes5571584bytescopiedin3.268secs(390641bytes/sec)RI#步骤8:验证恢复或升级Rl#shflash:Systemflashdirectory:FileLengthName/status6557158
6、4c2800nm228282sigdef-category.ml1227537sigdef-default.xml56765407bytesused,7250977available,64016384total63488KbytesofprocessorboardSystemflash(Read/Write)RI#步骤9:验证NVRAM中的启动配置和运行配置Rl#dirnvram:Directoryofnvram:/238-rw-490startup-config490bytestotal(237588bytesfree)RI#注意启动配置的文件名及其长度。Rl#shrunBuildingco
7、nfiguration.Currentconfiguration:548bytes运行配置的长度RI#Rl#shstartUsing548bytes启动配置的长度version12.3RI#步骤10:备份启动配置与运行配置1)备份启动配置Rl#copyStartup-Configtftp:Addressornameofremotehost?DestinationfilenameRl-confg?Rlstartup-configWritingstartup-config.!OK-548bytes548bytescopiedin0.062secs(8000bytes/sec)RI#2)备份运行配置
8、Rl#copyrunning-configtftp:Addressornameofremotehost?DestinationfilenameRl-confg?R1-running-configWritingrunning-config.!OK-548bytes548bytescopiedin0.063secs(8000bytes/sec)RI#3)在TFTP效劳器上验证备份翻开效劳器的Conf页面,单击TFTP按钮,可见右边窗口已有备份的启动和运行配置。步骤11:恢复启动配置与运行配置1)恢复到启动配置Rl#copytftp:startup-configAddressornameofremo
9、tehost?Sourcefilename?Rl-startup-configDestinationfilenamestartup-config?:IOK-548bytes548bytescopiedin0.032secs(17125bytes/sec)RI#2)恢复到运行配置Rl#copytftp:running-configAddressornameofremotehost?Sourcefilename7Rl-running-configDestinationfilenamerunning-config?:IOK-548bytes548bytescopiedin0.031secs(17677bytes/sec)RI#