H3C 华为配置FTP服务器
R1:*****************************************************************************************************
<H3C>sys
System View: return to User View with Ctrl+Z.
进入视图模式
sysname H3C-R1
更改计算机名
interface e0/0/0
进入接口模式
ip add 1.1.1.1 255.255.255.0
配置IP地址及子网掩码
undo sh
Interface Ethernet0/0/0 is not shut down
开启接口
quit
退出接口模式
ftp server enable
开启ftp服务
local-user ftp
New local user added.
创建ftp用户
password simple cisco
设置ftp密码
service-type ftp
指定用户用于服务类型
authorization-attribute level 3
开启ftp帐号的最高权限否则只可以下载不可以上传
quit
退出用户设置模式
*****************************************************************************************************
R2:
*****************************************************************************************************
<H3C>sys
System View: return to User View with Ctrl+Z.
进入视图模式
sysname H3C-R2
更改计算机名
interface e0/0/0
进入接口模式
ip add 1.1.1.2 255.255.255.0
设置ip地址
undo sh
Interface Ethernet0/0/0 is not shut down
开启接口
ping 1.1.1.1
PING 1.1.1.1: 56data bytes, press CTRL_C to break
Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms
Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=4 ms
Request time out
Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=4 ms
--- 1.1.1.1 ping statistics ---
5 packet(s) transmitted
4 packet(s) received
20.00% packet loss
round-trip min/avg/max = 1/7/20 ms
测试连通性
return
回到用户模式
<H3C-R2>ftp 1.1.1.1
Trying 1.1.1.1 ...
Press CTRL+K to abort
Connected to 1.1.1.1.
220 FTP service ready.
User(1.1.1.1:(none)):ftp
331 Password required for ftp.
Password:
230 User logged in.
登录用户
dir
227 Entering Passive Mode (1,1,1,1,4,1).
125 ASCII mode data connection already open, transfer starting for /*.
drwxrwxrwx 1 noone nogroup 0 Jun 04 15:16 logfile
drwxrwxrwx 1 noone nogroup 0 Jun 05 13:54 diaglog
-rwxrwxrwx 1 noone nogroup 1477 Jun 05 14:25 startup.cfg
-rwxrwxrwx 1 noone nogroup 6419 Jun 05 14:05 system.xml
-rwxrwxrwx 1 noone nogroup 8646 Jun 05 14:05 config.cwmp
226 Transfer complete.
FTP: 331 byte(s) received in 0.160 second(s), 2.00K byte(s)/sec.
查看内容
页:
[1]