2022年2022年利用TFPT备份还原交换机配置文件

上传人:桔**** 文档编号:567362759 上传时间:2024-07-20 格式:PDF 页数:3 大小:86.78KB
返回 下载 相关 举报
2022年2022年利用TFPT备份还原交换机配置文件_第1页
第1页 / 共3页
2022年2022年利用TFPT备份还原交换机配置文件_第2页
第2页 / 共3页
2022年2022年利用TFPT备份还原交换机配置文件_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《2022年2022年利用TFPT备份还原交换机配置文件》由会员分享,可在线阅读,更多相关《2022年2022年利用TFPT备份还原交换机配置文件(3页珍藏版)》请在金锄头文库上搜索。

1、【实验名称】利用 TFPT备份还原交换机配置文件。【实验目的】能够从 TFTP服务器备份、恢复设备配置。【背景描述】假设某台交换机的配置文件由于误操作或其他某种原因被破坏了,现在需要从TFTP服务器上的备份配置文件中恢复。本实验以 1 台 S2126G交换机为例,交换机名为SwitchA 。1 台 PC机通过串口( Com )连接到交换机的控制(Console )端口,通过网卡(NIC)连接到交换机的fastethernet 0/1 端口。假设 PC机的 IP 地址和网络掩码分别为192.168.0.137 ,255.255.255.0 ,PC机上已安装和打开了TFTP Server 程序,且

2、在 PC机已经准备好了新的交换机操作系统。【实现功能】使网络管理员可以备份配置文件,并且将配置恢复到交换机上。【实验设备】S2126G (1 台)、直连线( 1 条)【实验拓扑】【实验步骤】步骤 1. 在交换机上配置管理接口IP 地址。SwitchA(config)# interface vlan 1 !进入交换机管理接口配置模式SwitchA(config-if)# ip address 192.168.0.138 255.255.255.0 !配置交换机管理接口IP 地址SwitchA(config-if)# no shutdown !开启交换机管理接口验证测试:验证交换机管理IP 地址配

3、置和开启,TFTP服务器与交换机有网络连通性。SwitchA#show ip interface Interface : VL1 Description : Vlan 1 OperStatus : up ManagementStatus : Enabled Primary Internet address: 192.168.0.138/24 Broadcast address : 255.255.255.255 PhysAddress : 00d0.f8fe.1e48 SwitchA#ping 192.168.0.137 !验证交换机与TFTP服务器具有网络连通性Sending 5, 100-

4、byte ICMP Echos to 192.168.0.137, timeout is 2000 milliseconds. ! Success rate is 100 percent (5/5) 名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 1 页,共 3 页 - - - - - - - - - Minimum = 1ms Maximum = 2ms, Average = 1ms 步骤 2. 备份交换机配置文件。在主机上开启TFTP服务工具,并指定根目录。SwitchA#cop

5、y running-config startup-config ! 保存交换机的当前配置SwitchA#copy startup-configtftp ! 备份交换机配置到TFTP服务器Address of remote host 192.168.0.137 ! 按提示输入TFTP服务器 IP 地址Destination filename config.text? ! 选择要保存的配置文件名称! %Success : Transmission success,file length 302 验证测试:验证已保存配置文件。打开 TFTP服务器上的配置文件C:config.text,文件内容显示如

6、下:! version 1.0 ! hostname SwitchA enable secret level 1 5 $2)sv13Y*T7+.t4ZV/,|7Q(W&-/- enable secret level 15 5 $2Nq&#Z13IOrJ%(84MpK*.tQxB/7 ! interface fastEthernet 0/5 switchport access vlan 10 ! interface vlan 1 no shutdown ip address 192.168.0.138 255.255.255.0 ! end 步骤 3. 从主机恢复交换机配置。switchA#de

7、leteflash:config.text !删除原有的配置文件SwitchA#copytftp startup-config ! 加载配置到交换机的初始配置文件中Source filename ?config.text !按提示输入源文件名Address of remote host 192.168.0.137 !按提示输入 TFTP服务器的 IP 地址%Success : Transmission success,file length 302 验证测试:验证交换机已经更改为新的配置。SwitchA#show configure ! 验证交换机的初始配置文件Using 302 out of

8、 4194304 bytes ! version 1.0 ! hostname SwitchA enable secret level 1 5 $2)sv13Y*T7+.t4ZV/,|7Q(W&-/- enable secret level 15 5 $2Nq&#Z13IOrJ%(84MpK*.tQxB/7 ! interface fastEthernet 0/5 switchport access vlan 10 ! interface vlan 1 no shutdown ip address 192.168.0.138 255.255.255.0 ! 名师资料总结 - - -精品资料欢迎

9、下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 2 页,共 3 页 - - - - - - - - - end 步骤 4. 重启交换机,使新的配置生效。SwitchA#reload ! 重启交换机System configuration has been modified. Save? yes/no:n !选择 no Proceed with reload? confirm 【注意事项】在恢复配置到交换机上之前,须验证交换机与PC机( TFTP Server )具有网络连通性。【参考配置】SwitchA#show ru

10、nning-config Building configuration. Current configuration : 302 bytes ! version 1.0 ! hostname SwitchA enable secret level 1 5 $2H.Y*T3;C,tZV4H.41u_;C,tQ8U0D+S ! interface fastEthernet 0/5 switchport access vlan 10 ! interface vlan 1 no shutdown ip address 192.168.0.138 255.255.255.0 ! end名师资料总结 - - -精品资料欢迎下载 - - - - - - - - - - - - - - - - - - 名师精心整理 - - - - - - - 第 3 页,共 3 页 - - - - - - - - -

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 建筑/环境 > 施工组织

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