Packet Tracer - 备份配置文件

Packet Tracer - 备份配置文件

目标

1 部分:与 TFTP 服务器建立连接

2 部分:从 TFTP 服务器传输配置

3 部分:将配置和 IOS 备份到 TFTP 服务器上

拓扑图

背景/场景

本练习旨在展示如何从备份恢复配置,然后执行新的备份。 由于设备故障,现在使用一个新路由器。 幸运的是,备份配置文件已保存到简单文件传输协议 (TFTP) 服务器上。 您需要在尽可能短的时间内从 TFTP 服务器恢复文件,使路由器重新在线。

1 部分:     建立 TFTP 服务器连接

:由于这是个新路由器,将使用与路由器的控制台连接执行初始配置。

  1. 点击 PCA,然后点击桌面选项卡,继而点击终端访问 RTA 命令行。

  1. 配置和激活 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

  1. 测试 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 服务器上配置

  1. 发出相应的 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#

  1. 更正与接口问题和测试连接相关的任何问题。

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 服务器上

  1. 将主机名从 RTA 更改为 RTA-1

RTA(config)#hostname RTA-1

  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的分享

  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

傻傻的心动

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值