admin 发表于 2021-11-8 16:27:38

H3CNE 16 FTP配置

16 FTP配置
基本配置<H3C>system-viewsysname r1interface gigabitethernet 0/0ip address 192.168.10.1 24interface loopback 0ip address 100.100.100.100 32quit为FTP创建认证帐户local-user zurkj //创建本地帐户password simple Aa123456789//配置密码service-type ftp//帐户服务类型为FTPauthorization-attribute user-rolenetwork-admin//用户角色授权属性为管理员相当于level 15quit配置ACL访问策略acl number 2050 //创建ACL 2050description ftp //描述rule permit source 192.168.10.1000.0.0.0//允许源rule deny source any//拒绝源FTP服务引用ACL策略ftp server acl 2050 //ftp服务引用acl策略ftp timeout 1 //配置超时时间开启ftp功能ftp server enable //ftp功能开启
R2以.100地址访问FTPinterface gigabitethernet 0/0ip address 192.168.10.100 24quitip route-static 100.100.100.0 255.255.255.0192.168.10.1<r2>ftp 100.100.100.100Press CTRL+C to abort.Connected to 100.100.100.100 (100.100.100.100).220 FTP service ready.User (100.100.100.100:(none)): zurkj331 Password required for zurkj.Password: 230 User logged in.Remote system type is UNIX.Using binary mode to transfer files.ftp> ascii200 TYPE is now ASCII
R2以.200地址访问FTP<r2>ftp 100.100.100.100Press CTRL+C to abort.ftp: connect: Connection refusedacl 2050策略生效,访问被拒绝!
<r1>display ftp-server//查看ftp服务情况 FTP server isrunning. User count:                      0 Idle-timeout timer(in minutes): 1
<r1>display ftp-user//查看ftp用户情况No FTP user.
页: [1]
查看完整版本: H3CNE 16 FTP配置

公司网站