4.6-配置路由器作为FTP服务器

数通
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
本文链接:https://www.orcy.net.cn/2738.html,转载请附上原文出处链接

暂无评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注