一、 telnet路由器,开启路由器ftp功能:建立ftp用户,设置ftp用户密码
Login authentication #远程登录路由器
Username:AAAA
Password:
<AR28-11>system-view #进入全局模式
System View: return to User View with Ctrl+Z.
[AR28-11]ftp server enable #建立ftp server
% FTP server has been started
[AR28-11]local-user adminftp #建立ftp 用户:adminftp
New local user added.
[AR28-11-luser-adminftp]password simple adminftp #设置ftp密码:adminftp
[AR28-11-luser-adminftp]service-type ftp #开启ftp服务
二、 在通过网络能连接上路由器的PC机上
运行cmd
C:\Documents and Settings\ks16>ftp 192.168.1.248 #ftp路由器
Connected to 192.168.1.248
220 FTP service ready.
User (192.168.1.248 :(none)): adminftp #输入用户名
331 Password required for adminftp.
Password: #输入密码
230 User logged in.
ftp> dir #显示菜单
200 Port command okay.
150 Opening ASCII mode data connection for *.
-rwxrwxrwx 1 noone nogroup 11941732 236 2196 main.bin
-rwxrwxrwx 1 noone nogroup 2642 Apr 27 15:31 config.cfg
226 Transfer complete.
ftp: 收到 133 字节,用时 0.00Seconds 133000.00Kbytes/sec.
ftp> get config.cfg #下载配置文件
200 Port command okay.
150 Opening ASCII mode data connection for config.cfg.
226 Transfer complete.
ftp: 收到 2642 字节,用时 0.00Seconds 2642000.00Kbytes/sec.
ftp> get main.bin #下载路由器系统文件(可部下载)
Invalid command.
200 Port command okay.
150 Opening ASCII mode data connection for main.bin.
226 Transfer complete.
ftp: 收到 11941732 字节,用时 25.48Seconds 468.58Kbytes/sec.
一般下载在PC机C盘,通过搜索可得这两个文件。
三、 回到超级终端关闭ftp:
[AR28-11]undo ftp server
% Close FTP server