当前位置:网站首页>将配置导出到FTP或TFTP服务器
将配置导出到FTP或TFTP服务器
2022-06-11 15:34:00 【51CTO】
简单文件传输协议(Trivial File Transfer Protocol,TFTP)是TCP/IP协议中一个用来在客户机与服务器之间进行简单文件传输的协议,提供不复杂、开销不大的文件传输服务,端口号为69。此协议被设计为行小文件的传输。因此它不具备FTP的许多功能,它只能从文件服务器上获得或写入文件,不能列出目录,不进行认证。
下面的操作将演示如何把路由器的配置文件备份到TFTP。在物理机上运行TFTP,如图1所示,单击“查看”→“选项”。如图2所示,在出现的“选项”对话框中指定TFTP根目录,上传的文件就保存在根目录中。
确保R1路由器和物理机之间的网络畅通。通过执行以下命令将配置文件上传到TFTP。
<R1>tftp 192.168.1.11 put vrpcfg.zip vrpcfg.zip --将配置文件上传到TFTP
<R1>tftp 192.168.1.11 get vrpcfg.zip backup.zap --从TFTP下载配置文件
put和get命令后面跟的是源文件名和目标文件名。
TFTP的安全性差,任何用户都可以接入TFTP进行文件的上传和下载。而使用FTP就需要进行身份验证,因而比TFTP安全。


图1 单击“查看”→“选项” 图2 “选项”对话框
下面在Windows 10上安装FTP服务。
打开控制面板,单击“程序”,如图4-21所示,在出现的“程序”对话框中单击“启用或关闭Windows功能”选项。

图2安装FTP服务
出现“Windows功能”对话框,如图4-22所示,选中“FTP服务器”下的“FTP服务”,单击“确定”按钮。
打开IIS管理器,如图3所示,右击“网站”,单击“添加FTP站点”。
如图4-24所示,在出现的设置站点信息对话框中指定FTP站点名称和物理路径,单击“下一步”按钮。

图3 选中 FTP服务
如图6所示,在出现的“绑定和SSL设置”对话框中,为IP地址选择“全部未分配”,选中“自动启动FTP站点”,为SSL选择“无”,单击“下一步”按钮。
如图7所示,在出现的“身份验证和授权信息”对话框中,选中“基本”,设置允许所有用户读写,单击“完成”。将来访问FTP站点的账户就可以使用计算机账户。
打开Windows命令提示符,输入wf.msc,按回车键后,打开Windows高级防火墙设置界面。如图8所示,可以看到公用配置文件是活动的,单击“Windows Defender防火墙属性”。
如图8所示,在出现的防火墙属性对话框中,在“公用配置文件”选项卡下,为“防火墙状态”选择“关闭”。


图4-23 添加FTP站点 图5-24 设置FTP站点信息


图6-25 指定使用的地址 图7-26 设置身份验证和授权信息


图8-27 打开防火墙属性 图4-28 关闭防火墙
在路由器R1上将配置上传到FTP服务器。
<R1>ftp 192.168.1.11
Trying 192.168.1.11 ...
Press CTRL+K to abort
Connected to 192.168.1.11.
220 Microsoft FTP Service
User(192.168.1.11:(none)):han --输入用户名
331 Password required --输入密码
Enter password:
230 User logged in.
[R1-ftp]put vrpcfg.zip vrpcfg.zip.bak --上传vrpcfg.zip到FTP服务器
[R1-ftp]dir --查看ftp目录的内容
200 PORT command successful.
125 Data connection already open; Transfer starting.
05-01-18 11:50PM 872 vrpcfg.zip.bak --上传的文件
226 Transfer complete.
FTP: 55 byte(s) received in 0.020 second(s) 2.75Kbyte(s)/sec.
[R1-ftp]get vrpcfg.zip.bak vrpcfg2.zip --从FTP服务器下载文件vrpcfg.zip.bak
此文章来自于《华为 HCIA-Datacom认证(2021新版HCIA教材)》
京东购买本书
https://item.jd.com/13706744.html
学习计算机网络华为网络工程师 华三网络工程师课程中有问题联系韩老师
韩立刚老师wx hanligangdongqing
韩利辉老师wx 13073172070
华为 HCIA-Datacom认证(2021新版HCIA教材)课程链接 https://edu.51cto.com/course/28956.html

韩老师招收正式学生、门徒级套餐
边栏推荐
- 浅析分布式系统之体系结构-事务与隔离级别(多对象、多操作)下篇
- 我的代码变量名称统一 记录
- Devil cold rice # 037 devil shares the ways to become a big enterprise; Female anchor reward routine; Self discipline means freedom; Interpretation of simple interest and compound interest
- 05 _ In simple terms index (Part 2)
- 关于 JS 函数的一切
- 03 _ 事务隔离:为什么你改了我还看不见?
- Tangzhengrong: CTO is the intersection of business thinking and technical thinking
- Design and implementation of data analysis system
- 19. Insertion et suppression d'un arbre de recherche binaire
- Station B executives interpret the financial report: the epidemic has no impact on the company's long-term development, and the video trend is irresistible
猜你喜欢

leetcode 120. Triangle minimum path sum
![Introduction to thread practice [hard core careful entry!]](/img/1c/1f6422ba8fbeeb1c094ba7b1da2b78.png)
Introduction to thread practice [hard core careful entry!]

Mysql(九)Your password has expired. To log in you must change it using a client that supports expired

对于事务的认识

2022.02.28

2022 Tibet's latest eight major construction personnel (labor workers) simulation test question bank and answers

uniapp开发微信小程序,从构建到上线

uniapp開發微信小程序,從構建到上線

Let me tell you the benefits of code refactoring

Qcustomplot 1.0.1 learning (3) - plotting quadratic functions
随机推荐
Don't you understand the design and principle of thread pool? Break it up and crush it. I'll teach you how to design the thread pool
In depth interpretation: distributed system resilience architecture ballast openchaos
你还不懂线程池的设计及原理吗?掰开揉碎了教你设计线程池
04 _ In simple terms index (I)
Introduction to thread practice [hard core careful entry!]
Shuttle-- common commands
uniapp開發微信小程序,從構建到上線
Dynamically set the layoutinflater of the layout
High number_ Chapter 6 infinite series__ Marklaurin series
See from the minute, carve on the details: Exploration of SVG generated vector format website icon (favicon)
Backtracking / activity scheduling maximum compatible activities
Art plus online school: Sketch common sitting posture test questions, these three angles must be mastered~
The server prevents repeated payment of orders
基于 GateWay 和 Nacos 实现微服务架构灰度发布方案
[creation mode] factory method mode
Design and implementation of data analysis system
Nexus configuration Yum repository for repository manager
2022 Tibet's latest junior firefighter simulation test question bank and answers
Tangzhengrong: CTO is the intersection of business thinking and technical thinking
A brief talk on the feelings after working at home | community essay solicitation