
06.H3C开启FTP/TFTP服务
1.初始配置
# 配置ip [H3C]display in brief [H3C-GigabitEthernet0/1]ip address 10.0.0.2 8 # 开启服务 [H3C]ftp server enable # 配置用户 [H3C]local-user wuqun [H3C-luser-manage-wuqun]password simple 123 [H3C-luser-manage-wuqun]service-type ftp [H3C-luser-manage-wuqun]authorization-attribute user-role network-admin
2.客户端连接
[C:\~]$ ftp 10.0.0.2 Connecting to 10.0.0.2:21... Connection established. To escape to local shell, press 'Ctrl+Alt+]'. 220 FTP service ready. Name (10.0.0.2:Administrator): wuqun 331 Password required for wuqun. Password: 230 User logged
3,TFTP服务
命令
<H3C>tftp 10.0.0.1 ? get Download a file from the TFTP server put Upload a local file to the TFTP server sget Download a file from the TFTP server securely <H3C>tftp 10.0.0.1 get ? STRING<1-255> Source filename <H3C>tftp 10.0.0.1 get rrpp.txt <H3C>tftp 10.0.0.1 put rrpp.txt
- 在执行上传/下载操作时,到TFTP服务器的可达路由可能有多条,用户可以配置客户端TFTP报文的源地址
- 当设备作为TFTP客户端时,可以把本设备的文件上传到TFTP服务器,还可以从TFTP服务器下载文件到本地设备
- 下载分为普通下载和安全下载两种