R1配置IP地址
<H3C>system-view
[H3C]sysname R1[R1]int g0/0
[R1-GigabitEthernet0/0]ip address 1.1.1.1 24
R2配置IP地址
<H3C>system-view
[H3C]sysname R2[R1]int g0/1
[R2-GigabitEthernet0/0]ip address 1.1.1.2 24
R2开启FTP服务,创建用户caidale,密码123456
[R2]ftp server enable #开启FTP服务
[R2]local-user caidale class manage #添加管理用户caidale[R2-luser-manage-caidale]password simple abc12345678 #设置用户密码abc12345678
[R2-luser-manage-caidale]authorization-attribute user-role level-15 #用户等级为15
[R2-luser-manage-caidale]service-type ftp #设置R2为FTP服务端
R1上访问FTP服务端,输入用户和密码
<R1>ftp 1.1.1.2 #输入服务端IP地址
Press CTRL+C to abort.
Connected to 1.1.1.2 (1.1.1.2).
220 FTP service ready.
User (1.1.1.2:(none)): caidale #输入用户名
331 Password required for caidale.
Password: #输入密码
230 User logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
刷新Wireshark
发现抓取到FTP的登录名和密码