应用环境
用户通过Console口登录路由器,当需要传输比较小的文件到路由器时,可以使用XModem传输文件。
使用XModem传输文件一般用于以下情况:
1、用户只能通过Console登录路由器
2、传输的文件较小,一般为几千比特
3、用户只需要上传文件到路由器,而不需要从路由器下载文件
配置思路
在使用XModem传输文件时,采用如下的配置思路:
1. 使用Windows的超级终端登录路由器
2. 使用XModem上传文件
配置注意事项
在使用XModem上传文件时,一定要使用Windows的超级终端登录路由器。
配置实例
组网需求
路由器通过Console口与PC相连。从Console口登录到路由器,再从Console口接收文件,接收的文件保存在CFcard上。
适用产品和版本
采用NE40E/80E/5000E路由器,版本为(VRP5.10)及后续版本
配置步骤
步骤 1 通过Console口登录到路由器。
步骤 2 在超级终端中指定文件路径,并发送文件,如下图所示。
在超级终端指定文件路径
步骤 3 使用XModem协议从Console口接收文件,接收的文件保存在CFcard上,文件名为test.txt。
<Quidway> xmodem get cfcard:/test.txt
**** WARNING ****
xmodem is a slow transfer protocol limited to the current speed
settings of the auxiliary ports.
During the course of the download no exec input/output will be
available!
---- ******* ----
Proceed?[Y/N]y
Destination filename [cfcard:/test.txt]?
Before press ENTER you must choose 'YES' or 'NO'[Y/N]:y
Download with XMODEM protocol....
CCCCC
验证结果
系统提示传送成功,然后查看存储器目录。
<Quidway>
Download successful!
<Quidway> dir
Directory of cfcard:/
0 -rw- 10014764 Jun 20 2005 15:00:28 ne20-vrp5.10-c01b070.bin
1 -rw- 98776 Jul 27 2005 09:36:12 matnlog.dat
2 -rw- 28 Jul 27 2005 09:34:39 private-data.txt
3 -rw- 480 May 10 2003 11:25:18 vrpcfg.zip
4 -rw- 10103172 Jul 22 2005 16:40:37 ne20-vrp5.10-c01db90.bin
5 -rw- 1515 Jul 19 2005 17:39:55 vrpcfg.cfg
6 -rw- 3844 Jul 14 2004 11:51:45 exception.dat
7 -rw- 8628372 Jun 01 2005 10:14:34 ne20-vrp330-0521.01.bin
8 -rw- 45 Jul 27 2005 10:51:26 test.txt
250608 KB total (3565 KB free)





