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

韩老师招收正式学生、门徒级套餐
边栏推荐
- uniapp開發微信小程序,從構建到上線
- MySQL user authority summary [user authorization required]
- 02 _ Log system: how does an SQL UPDATE statement execute?
- 你还不懂线程池的设计及原理吗?掰开揉碎了教你设计线程池
- 【SystemVerilog 之 接口】~ Interface
- Hot seek tiger, a list of eco economic models
- Backtracking / activity scheduling maximum compatible activities
- Can we really make money by doing we media editing?
- 【MongoDB】4. Usage specification of mongodb
- Why can redis be so fast?
猜你喜欢

Illustration of tiger international quarterly report: revenue of USD 52.63 million continued to be internationalized

07 _ 行锁功过:怎么减少行锁对性能的影响?

企业开发如何写出优雅的二级分类【美团小案例】

高数_第6章无穷级数__马克劳林级数

【SystemVerilog 之 接口】~ Interface

How to play seek tiger, which has attracted much attention in the market?

硬核分析懒汉式单例

【Azure 应用服务】NodeJS Express + MSAL 实现API应用Token认证(AAD OAuth2 idToken)的认证实验 -- passport.authenticate()

02 _ Log system: how does an SQL UPDATE statement execute?

社交软件Soul撤回IPO申请:上市只差临门一脚 腾讯是大股东
随机推荐
06 _ 全局锁和表锁 :给表加个字段怎么有这么多阻碍?
浅谈居家办公后的感想| 社区征文
思科瑞递交科创板注册:拟募资6亿 年营收2.22亿
CF662B Graph Coloring题解--zhengjun
Basic configuration command of Xinhua 3 switch system
微软韦青:狗尾巴的故事—数智时代的第一性原理 | 极客时间
Summary of redis basic knowledge
Elk log analysis system
Arthas实践操作文档记录
[multi thread performance tuning] what operations cause context switching?
01discussion on Tekton
See from the minute, carve on the details: Exploration of SVG generated vector format website icon (favicon)
Lick the dog till the last one has nothing (linear DP)
With a loss of 13.6 billion yuan in three years, can listing revive Weima?
NVIDIA R & D director: how does AI improve chip design?
Nexus of repository manager
The reason why it is easy to let the single chip computer program fly
06 _ Global lock and table lock: Why are there so many obstacles to adding a field to a table?
我的代码变量名称统一 记录
[process blocks and methods of SystemVerilog] ~ domain, always process block, initial process block, function, task, life cycle