FTP l FTP Router ftp serveraddress l FTP

  • Slides: 19
Download presentation

配置路由器作为FTP客户端 l 在用户视图下直接登录远程FTP服务器 <Router> ftp [server-address] l 查询远程FTP服务器上的目录/文件 [ftp] ls remotefile [ localfile ]

配置路由器作为FTP客户端 l 在用户视图下直接登录远程FTP服务器 <Router> ftp [server-address] l 查询远程FTP服务器上的目录/文件 [ftp] ls remotefile [ localfile ] l 下载FTP服务器上的文件 [ftp] get remotefile [ localfile ] l 断开与远程FTP服务器的连接 [ftp] bye www. h 3 c. com

配置路由器作为FTP服务器端 l 在系统视图下启动FTP服务器功能 [Router] ftp server enable l 创建本地用户并进入本地用户视图 [Router] local-user-name l 设置当前本地用户的密码 [Router-luser-abc]

配置路由器作为FTP服务器端 l 在系统视图下启动FTP服务器功能 [Router] ftp server enable l 创建本地用户并进入本地用户视图 [Router] local-user-name l 设置当前本地用户的密码 [Router-luser-abc] password { simple | cipher } password l 设置服务类型并指定可访问的目录 [Router-luser-abc] service-type ftp [ ftp-directory ] www. h 3 c. com

配置示例 FTP Server 10. 0. 0. 1 FTP Client www. h 3 c. com

配置示例 FTP Server 10. 0. 0. 1 FTP Client www. h 3 c. com [Router] ftp server enable [Router] local-user ftp_manager [Router-luser-ftp_manager] password simple 123456 [Router-luser-ftp_manager] service-type ftp <Router> ftp 10. 0. 0. 1 User(10. 0. 0. 1: (none)): ftp_manager 331 Password required for ftp_manager. Password: 230 User logged in. ftp> put aaa. app bbb. app

配置路由器作为TFTP客户端 <Router> tftp server-address { get | put | sget } source-filename [ destination-filename

配置路由器作为TFTP客户端 <Router> tftp server-address { get | put | sget } source-filename [ destination-filename ] [ source { ip source-ip-address | interface-type interfacenumber } ] 在用户视图下使用 l 此命令用于使路由器作为TFTP客户端登录远程TFTP服务器 l server-address:TFTP服务器的IP地址或主机名。 l source-filename:源文件名。 l destination-filename:目标文件名。 l get:表示普通下载文件操作。 l put:表示上传文件操作。 l sget:表示安全下载文件操作。 l www. h 3 c. com