利用TFTP服务器备份恢复路由器配置

上传人:pu****.1 文档编号:478888844 上传时间:2022-11-16 格式:DOC 页数:6 大小:31.01KB
返回 下载 相关 举报
利用TFTP服务器备份恢复路由器配置_第1页
第1页 / 共6页
利用TFTP服务器备份恢复路由器配置_第2页
第2页 / 共6页
利用TFTP服务器备份恢复路由器配置_第3页
第3页 / 共6页
利用TFTP服务器备份恢复路由器配置_第4页
第4页 / 共6页
利用TFTP服务器备份恢复路由器配置_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《利用TFTP服务器备份恢复路由器配置》由会员分享,可在线阅读,更多相关《利用TFTP服务器备份恢复路由器配置(6页珍藏版)》请在金锄头文库上搜索。

1、【官方提供】【实验文档】【实验0015】【利用TFTP服务器备份恢复路由器配置】【实验名称】利用TFTP服务器备份恢复路由器配置。【实验目的】能够从TFTP服务器备份,并恢复路由器配置。【背景描述】假设某台路由器的配置文件由于误操作或其他某种原因被破坏了,现在需要从TFTP服务器上的备份配置文件中恢复。本实验以1台R1762路由器为例,路由器命名为RouterA。1台PC机通过串口(Com)连接到路由器的控制(Console)端口,通过网卡(NIC)连接到路由器的fastethernet0端口。假设PC机的IP地址和网络掩码分别为192.168.0.137,255.255.255.0,路由器的

2、fastethernet1/0端口的IP地址和网络掩码分别为192.168.0.138,255.255.255.0。【实验功能】使网络管理员可以备份配置文件,并且将配置恢复到交换机上。【实验设备】R1762(1台)、PC(1台)、直连线(1条)【实验拓扑】bb.JPG (6.76 KB)2008-11-14 14:46【实验步骤】步骤1. 在路由器上配置fastethernet1/0端口的IP地址。RouterA(config)# interface fastethernet1/0RouterA(config-if)# ip address 192.168.0.138 255.255.255.

3、0RouterA(config-if)# no shutdown验证测试:验证路由器接口fastethernet1/0的IP地址已经配置并且开启,PC机与路由器已有网络连通性。RouterA#showipinterface fastethernet1/0FastEthernet 1/0 is UP, line protocol is UPHardware is PQ2 FCC FAST ETHERNET CONTROLLER FastEthernet, address is 00d0.f888.2be2 (bia 00d0.f888.2be2)Interface address is: 192

4、.168.0.138/24ARP type: ARPA,ARP Timeout: 3600 secondsMTU 1500 bytes, BW 100000 KbitEncapsulation protocol is Ethernet-II, loopback not setKeepalive interval is 10 sec , setCarrier delay is 2 secRXload is 1 ,Txload is 1Queueing strategy: FIFO Output queue 0/40, 0 drops; Input queue 0/75, 0 drops5 min

5、utes input rate 33 bits/sec, 0 packets/sec5 minutes output rate 1 bits/sec, 0 packets/sec 24 packets input, 1814 bytes, 0 no buffer Received 24 broadcasts, 0 runts, 0 giants 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 abort 1 packets output, 42 bytes, 0 underruns 0 output errors, 0 collisions, 4 in

6、terface resetsLink Mode: 100M/Full-Duplex或者:RouterA#show ip interface briefInterface IP-Address(Pri) OK? Statusserial 1/2 no address YES DOWNserial 1/3 no address YES DOWNFastEthernet 1/0 192.168.0.138/24 YES UPFastEthernet 1/1 no address YES DOWNNull 0 no address YES UPRouterA#ping 192.168.0.137 !验

7、证路由器与PC机具有网络连通性Type escape sequence to abort.Sending 5, 100-byte ICMP Echoes to 192.168.0.137, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms步骤2. 备份路由器配置。RouterA#copy running-config tftp ! 备份路由器的当前配置文件到TFTP服务器Address or name of remote host ?192.168.0.137!输

8、入TFTP服务器IPDestination filename ?config.text !输入下载后生成的文件名Building configuration.Accessing tSuccess : Transmission success,file length 1024或者:RouterA#copy startup-config tftp ! 备份路由器的初始配置文件到TFTP服务器Address or name of remote host ?192.168.0.137 !输入TFTP服务器IPDestination filename ?config.text!输入下载后生成的文件名Bu

9、ilding configuration.Accessing tSuccess : Transmission success,file length 1024验证测试:验证TFTP服务器上的配置文件。打开TFTP服务器上的配置文件C: config.text(用Office Word程序即可打开)。C: config.text文件内容如下:!version 8.32(building 5)!interface serial 1/2clock rate 64000!interface serial 1/3clock rate 64000!interface FastEthernet 1/0ip

10、address 192.168.0.138 255.255.255.0duplex autospeed auto!interface FastEthernet 1/1duplex autospeed auto!interface Null 0!line con 0line aux 0line vty 0 4login!end步骤3. 恢复路由器配置。RouterA#delete flash:config.text !删除路由器原有配置信息RouterA#copy tftp startup-config ! 恢复配置到路由器的初始配置文件中Address or name of remote ho

11、st ?192.168.0.137 !输入TFTP服务器的IPSource filename ?config.text !输入文件名Accessing tWrite file to flash successfully!RouterA# copy startup-config running-config ! 将初始配置文件拷贝到路由器的当前配置文件中验证测试:验证路由器已经更改为新的配置。RouterA#show startup-config ! 验证路由器的初始配置文件为新的文件!Building configuration.(building 53)Current configurati

12、on : 406 bytesCopyright (c) 2004 by Re!version 8.32(building 5)!interface serial 1/2clock rate 64000!interface FastEthernet 1/0ip address 192.168.0.138 255.255.255.0duplex autospeed auto!interface FastEthernet 1/1duplex autospeed auto!interface Null 0!line con 0line aux 0line vty 0 4login!end【注意事项】在

13、备份、恢复配置时,须验证路由器与PC机(TFTP Server)具有网络连通性。【参考配置】RouterA #show running-configBuilding configuration.(building 53)Current configuration : 406 bytesCopyright (c) 2004 by Re!version 8.32(building 5)interface serial 1/2clock rate 64000!interface FastEthernet 1/0ip address 192.168.0.138 255.255.255.0duplex autospeed auto!interface FastEthernet 1/1duplex autospeed autointerface Null 0!line con 0line aux 0line vty 0 4login!end

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 机械/制造/汽车 > 汽车技术

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号