配置文件和IOS的备份与恢复
•
移动开发
实验大纲
实验1:备份配置文件和IOS
1.构建网络拓扑结构图
2.首先对路由器进行配置
3.配置路由器的ip和其他配置
4.配置服务器的ip地址
5.在路由器上测试网络的连通性
6.在服务器上选择TFTP,检查服务是否开启
7.将配置文件备份到文件服务器
8.回到服务器查看配置文件
9.拷贝路由器的ios文件
10.去服务器查看
实验2:恢复配置文件和IOS
1.打开工程文件,故意删除配置文件后重启
2.重新配置路由器
3.测试网络是否连通
4.开始恢复配置文件
5.去服务器查看已经改回来了
6.最后保存
假如我们删除了IOS文件该怎么办 删除了IOS镜像
1.先查看bin文件在不在
2.然后删除掉
3.再次查看是否存在
4.恢复iso镜像
实验1:备份配置文件和IOS
1.构建网络拓扑结构图
选择2620XM型号路由器,2950-24型号交换机和Serve-PT服务器

2.首先对路由器进行配置
Router>enable Router#conf t Enter configuration commands,one per line.End with CNTL/Z. Router(config)#hostname hxy hxy(config)#no ip domain-lookup hxy(config)#service password-encryption hxy(config)#line con 0 hxy(config-line)#logg synchronous hxy(config-line)#exec-timeout 0 0 hxy(config-line)#line vty 0 4 hxy(config-line)#password 99vty04 hxy(config-line)#login hxy(config-line)#logg s hxy(config-line)#exec-timeout 0 0 hxy(config-line)#exit

3.配置路由器的ip和其他配置
hxy(config)#interface fastEthernet0/0 hxy(config-if)#ip address 192.168.199.1 255.255.255.0 hxy(config-if)#no shutdown hxy(config-if)#end hxy#write

4.配置服务器的ip地址

5.在路由器上测试网络的连通性
PC99a上操作
hxy#ping 192.168.199.254

6.在服务器上选择TFTP,检查服务是否开启
(TFTP文件传输)

7.将配置文件备份到文件服务器
在PC99a上操作
hxy#copy running-config tftp

8.回到服务器查看配置文件

9.拷贝路由器的ios文件
hxy#copy flash

10.去服务器查看

实验2:恢复配置文件和IOS
1.打开工程文件,故意删除配置文件后重启

2.重新配置路由器
Router>en Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#interface fastEthernet 0/0 Router(config-if)#ip address 192.168.199.1 255.255.255.0 Router(config-if)#no shutdown Router(config-if)#end

3.测试网络是否连通
ping 192.168.199.254

4.开始恢复配置文件
从文件服务器里面拷
Router#copy tftp running-config

5.去服务器查看已经改回来了

6.最后保存
hxy#write

假如我们删除了IOS文件该怎么办 删除了IOS镜像
1.先查看bin文件在不在
hxy#show flash

2.然后删除掉
hxy#delete flash:c2600-i-mz.122-28.bin

3.再次查看是否存在
hxy#show flash

4.恢复iso镜像
从文件服务器里面拷贝出来
hxy#copy tftp flash

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/ab455c45a1.html
