当前位置:网站首页>将配置导出到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

韩老师招收正式学生、门徒级套餐
边栏推荐
- Elk log analysis system
- A former employee of Baidu was awarded 1.07 million yuan for job hopping; Apple, Google and Microsoft plan to "kill" the password; It is said that Geely has acquired Meizu | Q information
- Mysql database optimization details
- 深度解读:分布式系统韧性架构压舱石OpenChaos
- High number_ Chapter 6 infinite series__ Marklaurin series
- 如何做好自媒体?这几个步骤你做对了吗?
- Hard core analysis lazy single case
- Shuttle -- hero component
- leetcode 120. Triangle minimum path sum
- 详解 Kubernetes 包管理工具 Helm
猜你喜欢

High number_ Chapter 6 infinite series__ Marklaurin series

数据分析系统的设计与实现

Implementation of the function of recording login status

Analysis on the architecture of distributed systems - transaction and isolation level (multi object, multi operation) Part 2

leetcode 120. Triangle minimum path sum

See from the minute, carve on the details: Exploration of SVG generated vector format website icon (favicon)

Let me tell you the benefits of code refactoring

07 _ Functions and disadvantages of row lock: how to reduce the impact of row lock on performance?

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

04 _ In simple terms index (I)
随机推荐
Hebei huangjinzhai scenic spot adds "AED automatic defibrillator" to ensure the life safety of tourists!
【创建型模式】抽象工厂模式
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
【创建型模式】单例模式
[process blocks and methods of SystemVerilog] ~ domain, always process block, initial process block, function, task, life cycle
Arthas实践操作文档记录
The reason why it is easy to let the single chip computer program fly
leetcode 120. 三角形最小路径和
河北 黄金寨景区新增“AED自动除颤器”保障游客生命安全!
Summary of redis basic knowledge
【Azure 应用服务】NodeJS Express + MSAL 实现API应用Token认证(AAD OAuth2 idToken)的认证实验 -- passport.authenticate('oauth-bearer', {session: false})
Shutter-- page Jump animation
Shuttle-- common commands
[mysql_11] addition, deletion and modification of data processing
Analysis on the architecture of distributed systems - transaction and isolation level (multi object, multi operation) Part 2
Google Earth engine (GEE) - create a simple panel demo to display the map
【SystemVerilog 之 接口】~ Interface
04 _ 深入浅出索引(上)
02 _ Log system: how does an SQL UPDATE statement execute?
Safepoint explanation and analysis of its placement ideas