步骤:
1、网络连通测试(设置ip地址)
interface GigabitEthernet0/0/0
ip address 10.0.0.1 255.255.255.0
2、开启ftp服务(服务器)
[Huawei]ftp server enable
验证:
[Huawei]dis ftp-server
FTP server is running
Max user number 5
User count 1
Timeout value(in minute) 30
Listening port 21
Acl number 0
FTP server‘s source address 0.0.0.0
3、实施ftp(服务器)
aaa
local-user maoga password cipher %$%[email protected],~:{i`8>=R)"6>sg%$%$
local-user maoga privilege level 15
local-user maoga ftp-directory flash:
local-user maoga service-type ftp
服务器上保存配置文件
<Huawei>save maoga.zip
4、客户端测试
<Huawei>ftp 10.0.0.1
Trying 10.0.0.1 ...
Press CTRL+K to abort
Connected to 10.0.0.1.
220 FTP service ready.
User(10.0.0.1:(none)):maoga
331 Password required for maoga.
Enter password:
230 User logged in.
[Huawei-ftp]get maoga.zip 从服务端获取
[Huawei-ftp]put maoga.zip 写入服务端