拓扑如图,R1作为FTP的客户端,R2作为FTP的服务器
R1配置接口IP地址
[R1-GigabitEthernet0/0/0]IP address 192.168.12.1 24
R2配置接口IP地址
[R2-GigabitEthernet0/0/0]IP address 192.168.12.2 24
测试连通性
[R1]ping 192.168.12.2
PING 192.168.12.2: 56 data bytes, press CTRL_C to break
Reply from 192.168.12.2: bytes=56 Sequence=1 ttl=255 time=60 ms
R2全局开启FTP SERVER
[R2]ftp server enable
AAA模式下新建FTP用户,设置用户级别和服务类型
[R2-aaa]local-user huawei password cipher huawei@123
[R2-aaa]local-user huawei service-type ftp
[R2-aaa]local-user huawei privilege level 15
AAA模式下配置FTP用户huawei的共享目录
[R2-aaa]local-user huawei ftp-directory flash:/share