通过华为ENSP模拟器实现
R3-NAT作为ftp服务端、Spoke2作为客户端
R3-NAT G0/0/0接口地址为 192.168.10.1/30
Spoke2 G0/0/0接口地址为 192.168.10.2/30
配置好接口IP作如下配置
[R3-NAT]ftp server enable //在服务器端开启ftp服务
[R3-NAT]aaa //进入AAA认证配置
[R3-NAT-aaa]local-user xingxinchao password cipher huawei //创建用户xingxinchao,密码为huawei
[R3-NAT-aaa]local-user xingxinchao service-type ftp //设置用户服务类型为ftp
[R3-NAT-aaa]local-user xingxinchao privilege level 15 //设置用户权限级别 (方便用户登录管理)
[R3-NAT-aaa]local-user xingxinchao ftp-directory flash: //设置ftp访问的目录为 flash:
服务端配置做完之后在客户端做测试
<Spoke2>ftp 192.168.10.1 //输入ftp 服务端的IP地址
Trying 192.168.10.1 ...
Press CTRL+K to abort
Connected to 192.168.10.1.
220 FTP service ready.
User(192.168.10.1:(none)):xingxinchao //输入ftp用户
331 Password required for xingxinchao.
Enter password: //输入ftp用户的密码;密码为隐藏
230 User logged in.
[Spoke2-ftp]
[Spoke2-ftp]
此时华为设备的ftp搭建完成