Huawei devices, upload and download files via TFTP and FTP

Source: Internet
Author: User

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/6A/wKioL1Wbu0uBtEWXAABF3pRwqP4019.jpg "title=" Spufhc65_e5rd6 ' E ' udk7ui.png "alt=" Wkiol1wbu0ubtewxaabf3prwqp4019.jpg "/>

Real Machine IP192.168.10.10/24

R1 g0/0/0 ip192.168.10.1/24


Build a TFTP server on the real machine to implement the routing upload download


Using TFTPD32 to build a TFTP server


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/6D/wKiom1Wbu1awc4uyAADvDUagrQk646.jpg "title=" u}3~ M5op@trrgsmi_{4r@01.png "alt=" Wkiom1wbu1awc4uyaadvduagrqk646.jpg "/>


R1 Configuration

<r1>system-view//Enter system view

[R1]interface gigabitethernet 0/0/0//Inlet connector

[R1-GIGABITETHERNET0/0/0]IP Address 192.168.10.1 24//Configure interface IP

[R1-gigabitethernet0/0/0]undo shutdown//activation interface

[R1-gigabitethernet0/0/0]return//back to User view

<r1>ping 192.168.10.10//detection line is normal

PING 192.168.10.10:56 Data bytes, press Ctrl_c to break

Reply from 192.168.10.10:bytes=56 sequence=1 ttl=64 time=10 ms

Reply from 192.168.10.10:bytes=56 sequence=2 ttl=64 time=10 ms

Reply from 192.168.10.10:bytes=56 sequence=3 ttl=64 time=10 ms

Reply from 192.168.10.10:bytes=56 sequence=4 ttl=64 time=1 ms

Reply from 192.168.10.10:bytes=56 sequence=5 ttl=64 time=10 ms


---192.168.10.10 ping statistics---

5 packet (s) transmitted

5 packet (s) received

0.00% Packet Loss

Round-trip Min/avg/max = 1/8/10 ms


<r1>tftp 192.168.10.10 Get abc.txt//download abc.txt file on server

Info:transfer file in binary mode.

Downloading the file from the remote TFTP server. Please wait ...


100%


0 Bytes received in 1 second.

Tftp:downloading the file successfully.


<r1>dir//Display file list

Directory of flash:/


IDX Attr Size (Byte) Date time (LMT) FileName

0 drw--Jul 11:07:32 DHCP

1-rw-121,802 09:20:58 Portalpage.zip

2-rw-2,263 Jul 11:07:24 Statemach.efs

3-rw-828,482 09:20:58 Sslvpn.zip

4-rw-559 Jul 11:54:48 Vrpcfg.zip

5-rw-0 Jul 11:52:08 abc.txt //Download Successful


1,090,732 KB Total (784,528 KB free)


<r1>tftp 192.168.10.10 put vrpcfg.zip//Download Router configuration file

Info:transfer file in binary mode.

Uploading the file to the remote TFTP server. Please wait ...


91%


Tftp:uploading the file successfully.

559 bytes Send in 1 second.


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/6A/wKioL1WbwKbzRnKIAACR9ZKV5V8645.jpg "title=" { 716lq9 ' d8r (kddu0d~]}}5.png "alt=" Wkiol1wbwkbzrnkiaacr9zkv5v8645.jpg "/>


TFTP complete


Build an FTP server on R1 to upload and download the real machine


R1 Configuration

<r1>system-view

[R1]FTP Server Enable//Open FTP Service

[R1]AAA//Enter AAA view

[R1-aaa]local-user Test Password cipher abc123//create user test password for abc123

[R1-aaa]local-user Test Privilege Level 3//set user levels

[R1-aaa]local-user Test Ftp-directory Flash://Set Directory

[R1-aaa]local-user Test Service-type FTP//Set the user's service type to FTP


Open a command prompt on a real machine


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6F/6A/wKioL1WbxXSg9gICAAE6C9stZQ8299.jpg "title=" Pte60uf2uxbjc2s6o_]@8$3.png "alt=" Wkiol1wbxxsg9gicaae6c9stzq8299.jpg "/>


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/6A/wKioL1Wbxu_yzuW6AAK6Tx7iIew742.jpg "title=" u0xy$9 $OU%2q]}45yy%j5ns.png "alt=" Wkiol1wbxu_yzuw6aak6tx7iiew742.jpg "/>


Setting up an FTP server on a real machine

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/6A/wKioL1Wbx_GAkO_KAADhbQwJuMA746.jpg "title=" 5d}z7] 6bg]j0 '%fd4[gve~y.png "alt=" Wkiol1wbx_gako_kaadhbqwjuma746.jpg "/>


R1 Login

<R1>FTP 192.168.10.10//Login FTP server

Trying 192.168.10.10 ...


Press Ctrl+k to abort

Connected to 192.168.10.10.

Http://idchh.com

User (192.168.10.10: (none)): Test//Enter username

331 Password required for test.

Enter Password://password

User test logged in.


[R1-ftp] put test.doc//upload Test.doc to FTP server

Port command successful.

Opening data connection for Test.doc.

41%83%

100%

226 File received OK

ftp:39260 byte (s) sent in 0.190 second (s) 206.63Kbyte (s)/sec.


[R1-ftp]get 123.txt//download files from server

Port command successful.

Opening data connection for 123.txt.

226 File sent OK

Ftp:9 Byte (s) received in 0.080 second (s) 112.50byte (s)/sec.


[R1-ftp]quit//exit

221 Goodbye.


<r1>dir//List files

Directory of flash:/


IDX Attr Size (Byte) Date time (LMT) FileName

0 drw--Jul 11:07:32 DHCP

1-rw-121,802 09:20:58 Portalpage.zip

2-rw-39,260 Jul 12:20:21 test.doc //upload successful

3-rw-9 Jul 12:32:55 123.txt

4-rw-2,263 Jul 11:07:24 Statemach.efs

5-rw-828,482 09:20:58 Sslvpn.zip

6-rw-205 Jul 11:54:48 Private-data.txt

7-rw-0 Jul 11:52:08 Abc.txt

8-rw-559 Jul 11:54:48 Vrpcfg.zip


1,090,732 KB Total (784,432 KB free)


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/6B/wKioL1WbyZ3zz2nqAABph2VKWRI906.jpg "title="}}f) 4 % (qkfz9y56j_47d0) g.png "alt=" Wkiol1wbyz3zz2nqaabph2vkwri906.jpg "/>


Dir View file list

Get download

Put upload

Binary switching binary mode

This article is from the "Resource Sharing" blog, so be sure to keep this source http://sunjie123.blog.51cto.com/1263687/1671809

Huawei devices, upload and download files via TFTP and FTP

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.