Packet Tracer - 备份配置文件
目标
第 1 部分:与 TFTP 服务器建立连接
第 2 部分:从 TFTP 服务器传输配置
第 3 部分:将配置和 IOS 备份到 TFTP 服务器上
拓扑图
背景/场景
本练习旨在展示如何从备份恢复配置,然后执行新的备份。 由于设备故障,现在使用一个新路由器。 幸运的是,备份配置文件已保存到简单文件传输协议 (TFTP) 服务器上。 您需要在尽可能短的时间内从 TFTP 服务器恢复文件,使路由器重新在线。
第 1 部分: 建立 TFTP 服务器连接
注:由于这是个新路由器,将使用与路由器的控制台连接执行初始配置。
- 点击 PCA,然后点击桌面选项卡,继而点击终端访问 RTA 命令行。
- 配置和激活 Gigabit Ethernet 0/0 接口。 IP 地址应与 TFTP 服务器的默认网关匹配。
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router (config)#interface gigabitEthernet 0/0
Router (config-if)#ip address 172.16.1.1 255.255.255.0
Router (config-if)#no shutdown
- 测试 TFTP 服务器连接。 进行故障排除(如有必要)。
Router #ping 172.16.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.2, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
Router #
第 2 部分: 转移 TFTP 服务器配置
a. 在特权 EXEC 模式下,发出以下命令:
Router# copy tftp running-config
Address or name of remote host []? 172.16.1.2
Source filename []? RTA-confg
Destination filename [running-config]? <cr>
路由器会返回以下信息:
Accessing tftp://172.16.1.2/RTA-confg...
Loading RTA-confg from 172.16.1.2: !
[OK - 785 bytes]
785 bytes copied in 0 secs
RTA#
%SYS-5-CONFIG_I: Configured from console by console
RTA#
b. 发出命令显示当前配置。 进行了哪些更改?
存储在 TFTP 服务器上的配置
- 发出相应的 show 命令显示接口状态。 是否所有接口都已激活?
否,G0/1在管理上已关闭。默认情况下,所有路由器接口都处于关闭状态。
RTA#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 172.16.1.1 YES manual up up
GigabitEthernet0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES unset administratively down down
RTA#
- 更正与接口问题和测试连接相关的任何问题。
Router (config)#interface gigabitEthernet 0/1
Router (config-if)#ip address 172.31.1.1 255.255.255.0
Router (config-if)#no shutdown
RTA-1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0 172.16.1.1 YES manual up up
GigabitEthernet0/1 172.31.1.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
RTA-1#
第 3 部分: 将配置和 IOS 备份到 TFTP 服务器上
- 将主机名从 RTA 更改为 RTA-1。
RTA(config)#hostname RTA-1
- 将配置保存至 NVRAM。
RTA-1#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
RTA-1#
c. 使用 copy 命令将配置复制至 TFTP 服务器:
RTA-1#copy running-config tftp:
Address or name of remote host []? 172.16.1.2
Destination filename [RTA-1-confg]?
Writing running-config...!!
[OK - 629 bytes]
629 bytes copied in 0 secs
d. 发出命令显示闪存中的文件。
e. 使用如下命令将闪存中的 IOS 复制至 TFTP 服务器:
RTA-1#copy flash tftp:
Source filename []? c1900-universalk9-mz.SPA.151-4.M4.bin
Address or name of remote host []? 172.16.1.2
Destination filename [c1900-universalk9-mz.SPA.151-4.M4.bin]?
Writing c1900-universalk9-mz.SPA.151-4.M4.bin...!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 33591768 bytes]
33591768 bytes copied in 0.784 secs (4498720 bytes/sec)
RTA-1#
【实验链接】
链接:https://pan.baidu.com/s/1CaDnjv6Ri65tjP6KLWP07g?pwd=1031
提取码:1031
--来自百度网盘超级会员V3的分享