1.开启FTP服务
[oleilei]ftp server enable
Info: Succeeded in starting the FTP server.
2.创建用户
[oleilei]aaa
[oleilei-aaa]local-user oleileiftp privilege level 15 password simple oleilei
Info: Add a new user.
3.配置一个接口(也可以是interface vlan)
interface Vlanif100
ip address 192.168.100.254 255.255.255.0
4.查看FTP服务状态
[oleilei]display ftp-server
FTP server is running
Max user number 5
User count 0
Timeout value(in minute) 30
Listening port 21
Acl number 0
FTP server's source address 0.0.0.0
5.验证登陆
<Huawei>ftp 192.168.142.129
Trying 192.168.142.129 ...
Press CTRL+K to abort
Connected to 192.168.142.129.
220 FTP service ready.
User(192.168.142.129:(none)):oleileiftp
331 Password required for oleileiftp.
Enter password:
下载文件
get flash:/
上传文件
put flash:/