FTP华为设备上进行配置

FTP协议

1,保证网络通信

2,开启FTP服务

3,在AAA模式下设置正确的用户名,密码,以及该用户的权限,服务类型和共享的ftp目录

4,使用正确的测试方式

bash 复制代码
The device is running!
########
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn	
[Huawei]sysname AR-01
[AR-01]int g0/0/0
[AR-01-GigabitEthernet0/0/0]ip address 192.168.0.1 30
Dec 16 2024 18:37:23-08:00 AR-01 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol 
IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[AR-01-GigabitEthernet0/0/0]q
[AR-01]ping 192.168.0.2
  PING 192.168.0.2: 56  data bytes, press CTRL_C to break
    Reply from 192.168.0.2: bytes=56 Sequence=1 ttl=255 time=60 ms
    Reply from 192.168.0.2: bytes=56 Sequence=2 ttl=255 time=30 ms
    Reply from 192.168.0.2: bytes=56 Sequence=3 ttl=255 time=30 ms
    Reply from 192.168.0.2: bytes=56 Sequence=4 ttl=255 time=20 ms
    Reply from 192.168.0.2: bytes=56 Sequence=5 ttl=255 time=30 ms

  --- 192.168.0.2 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 20/34/60 ms

[AR-01]ftp server enable 
Info: Succeeded in starting the FTP server
[AR-01]aaa
[AR-01-aaa]local-u	
[AR-01-aaa]local-user ender service-y	
[AR-01-aaa]local-user ender service-t	
[AR-01-aaa]local-user ender service-type ftp
Info: Add a new user.
[AR-01-aaa]local-user ender pr	
[AR-01-aaa]local-user ender privilege le	
[AR-01-aaa]local-user ender privilege level 15
[AR-01-aaa]local-user ender ftp-d	
[AR-01-aaa]local-user ender ftp-directory fl	
[AR-01-aaa]local-user ender ftp-directory flash:
//操作目录设置为flash,也就是suo'y
[AR-01-aaa]q
[AR-01]q
<AR-01>save
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<AR-01>
Dec 16 2024 18:43:41-08:00 AR-01 %%01MTM/3/LOGIN_FAIL(l)[1]:The user failed to l
og in. (UserName="ender", IpAddress=192.168.0.2, VpnInstanceName="")
<AR-01>sys
Enter system view, return user view with Ctrl+Z.
[AR-01]aaaa
       ^
Error: Unrecognized command found at '^' position.
[AR-01]aaa
[AR-01-aaa]local-	
[AR-01-aaa]local-user ender p	
[AR-01-aaa]local-user ender password c	
[AR-01-aaa]local-user ender password cipher qytang
[AR-01-aaa]q
[AR-01]q
<AR-01>save
bash 复制代码
The device is running!

<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysn	
[Huawei]sysname LSW
[LSW]
Dec 16 2024 18:37:49-08:00 LSW DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 4, the c
hange loop count is 0, and the maximum number of records is 4095.
[LSW]int g0/0/0
         ^
Error: Wrong parameter found at '^' position.
[LSW]int g0/0/1
[LSW-GigabitEthernet0/0/1]q
[LSW]int vlanif1
[LSW-Vlanif1]ip ad	
[LSW-Vlanif1]ip address 192.168.0.2
                                    ^
Error:Incomplete command found at '^' position.
[LSW-Vlanif1]ip address 192.168.0.2 30
[LSW-Vlanif1]
Dec 16 2024 18:39:59-08:00 LSW %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface Vlanif1 has entered the UP state.
Dec 16 2024 18:39:59-08:00 LSW DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25
.191.3.1 configurations have been changed. The current change number is 5, the c
hange loop count is 0, and the maximum number of records is 4095.
[LSW-Vlanif1]
[LSW-Vlanif1]
[LSW-Vlanif1]ftp 192.168.0.1
             ^
Error: Unrecognized command found at '^' position.
[LSW-Vlanif1]q
[LSW]q
<LSW>ftp 192.168.0.1
Trying 192.168.0.1 ...
Press CTRL+K to abort
Connected to 192.168.0.1.
220 FTP service ready.
User(192.168.0.1:(none)):ender
331 Password required for ender.
Enter password:
530 Logged incorrect.

Error: Failed to run this command because the connection was closed by remote ho
st.

<LSW>ftp 192.168.0.1
Trying 192.168.0.1 ...
Press CTRL+K to abort
Connected to 192.168.0.1.
220 FTP service ready.
User(192.168.0.1:(none)):ender
331 Password required for ender.
Enter password:
230 User logged in.

[ftp]dir//查看目录下的文件及文件夹
200 Port command okay.
150 Opening ASCII mode data connection for *.
drwxrwxrwx   1 noone    nogroup         0 Dec 16 10:29 dhcp
-rwxrwxrwx   1 noone    nogroup    121802 May 26  2014 portalpage.zip
-rwxrwxrwx   1 noone    nogroup      2263 Dec 16 10:28 statemach.efs
-rwxrwxrwx   1 noone    nogroup    828482 May 26  2014 sslvpn.zip
-rwxrwxrwx   1 noone    nogroup       352 Dec 16 10:42 private-data.txt
drwxrwxrwx   1 noone    nogroup         0 Dec 16 10:44 .
-rwxrwxrwx   1 noone    nogroup       669 Dec 16 10:44 vrpcfg.zip
226 Transfer complete.

[ftp]
相关推荐
Brianna Home13 分钟前
【案例实战】鸿蒙分布式调度:跨设备协同实战
华为·wpf·harmonyos
孤廖20 分钟前
吃透 C++ 栈和队列:stack/queue/priority_queue 用法 + 模拟 + STL 标准实现对比
java·开发语言·数据结构·c++·人工智能·深度学习·算法
我命由我1234522 分钟前
Android 对话框 - 对话框全屏显示(设置 Window 属性、使用自定义样式、继承 DialogFragment 实现、继承 Dialog 实现)
android·java·java-ee·android studio·android jetpack·android-studio·android runtime
Bert丶seven22 分钟前
鸿蒙Harmony实战开发教学(No.4)-RichText组件基础到高阶介绍篇
华为·harmonyos·arkts·鸿蒙·鸿蒙系统·arkui·开发教程
Full Stack Developme32 分钟前
java.net 包详解
java·python·.net
一叶飘零_sweeeet1 小时前
深入 Spring 内核:解密 15 种设计模式的实战应用与底层实现
java·spring·设计模式
凤山老林1 小时前
排序算法:详解插入排序
java·开发语言·后端·算法·排序算法
彦楠1 小时前
IDEA实用快捷键
java·ide·intellij-idea
豆沙沙包?1 小时前
2025年--Lc197-077. 排序链表(链表,尾插法)--Java版
java·数据结构·链表
m0_651593911 小时前
深入理解软件设计中的协议与规范:从理论到Java实践
java·软件工程·代码规范·设计规范