4.6-配置路由器作为FTP服务器-下一朵云
图1 配置示例拓扑

服务端配置:

[Server]int g0/0/0
[Server-GigabitEthernet0/0/0]ip add 12.1.1.1 24
[Server-GigabitEthernet0/0/0]qu
[Server]ftp server enable
[Server]set default ftp-directory flash:
# 设置ftp主目录为flash:
[Server]aaa
[Server-aaa]local-user orcy privilege level 3 password cipher 123	
[Server-aaa]local-user orcy service-type ftp 
# 用户名:orcy 密码:123

客户端配置:

<Client>ftp 12.1.1.1
Trying 12.1.1.1 ...

Press CTRL+K to abort
Connected to 12.1.1.1.
220 FTP service ready.
User(12.1.1.1:(none)):orcy
331 Password required for orcy.
Enter password:
230 User logged in.

[Client-ftp]dir
200 Port command okay.
150 Opening ASCII mode data connection for *.
drwxrwxrwx   1 noone    nogroup         0 Aug 01 14:41 dhcp
-rwxrwxrwx   1 noone    nogroup    121802 May 26  2014 portalpage.zip
-rwxrwxrwx   1 noone    nogroup      2263 Aug 01 14:41 statemach.efs
-rwxrwxrwx   1 noone    nogroup    828482 May 26  2014 sslvpn.zip
drwxrwxrwx   1 noone    nogroup         0 Aug 01 14:41 .
226 Transfer complete.
FTP: 327 byte(s) received in 0.200 second(s) 1.63Kbyte(s)/sec.

下载文件:

Client-ftp]get xxx

上传文件:

Client-ftp]put XXX
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。