No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

AR Router Troubleshooting Guide

This Product Documentation provides guidance for maintaining AR Enterprise Router, covering common information collection and fault diagnostic commands, typical fault troubleshooting guide, and troubleshooting.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Transferring Files Using FTP/TFTP

Transferring Files Using FTP/TFTP

During system maintenance such as software upgrade and configuration file backup, files must be transferred between a PC and the device. FTP/TFTP is used to transfer files.

When transferring files using FTP/TFTP, the roles of PC and device vary in different methods:
  • PC functioning as an FTP server: You must install the FTP server software on your PC.
  • PC functioning as a TFTP server: You must install the TFTP server software on your PC. TFTP is easy to configure but this method has low security and transmission speed.
  • Device functioning as an FTP server: You can perform configurations on the device without installing any software. When there are a large number of devices on a network, the first two methods are recommended.

PC Functioning as an FTP Server

Figure 10-1  Networking diagram
  1. Run the FTP server software on the FTP server and configure the FTP service. For details, see relevant help documentation.

  2. Connect the device and the FTP server. (The IP addresses are used as an example.)

    1. Connect the FTP server to GE0/0/0 of the device using a network cable.
    2. Configure an IP address 192.168.0.1/24 for GE0/0/0.
    3. Configure an IP address 192.168.0.2/24 for the FTP server. (Configure an IP address for the network adapter of the PC. The configuration details are omitted.)
    <Huawei> system-view
    [Huawei] interface gigabitethernet 0/0/0
    [Huawei-GigabitEthernet0/0/0] ip address 192.168.0.1 24
    [Huawei-GigabitEthernet0/0/0] 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=128 time=4 ms
        Reply from 192.168.0.2: bytes=56 Sequence=2 ttl=128 time=3 ms
        Reply from 192.168.0.2: bytes=56 Sequence=3 ttl=128 time=18 ms
        Reply from 192.168.0.2: bytes=56 Sequence=4 ttl=128 time=3 ms
        Reply from 192.168.0.2: bytes=56 Sequence=5 ttl=128 time=3 ms
    
      --- 192.168.0.2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 3/6/18 ms
    
    [Huawei-GigabitEthernet0/0/0] return
    NOTE:
    • In this example, the FTP server and the device are directly connected. If they are not directly connected, you must ensure that they have reachable routes to each other.
    • After the configuration is complete, run the ping command to test the connectivity between the FTP server and device.
  3. Log in to the FTP server using FTP.

    <Huawei> ftp 192.168.0.2
    Trying 192.168.0.2 ...
    Press CTRL+K to abort
    Connected to 192.168.0.2.
    220 FTP Server ready.
    User(192.168.0.2:(none)):ftpuser
    331 Password required for ftpuser.
    Enter password:     
    230 User logged in.
    
    [Huawei-ftp]
  4. Run the put command to upload files to the FTP server or run the get command to download files from the FTP server to the device.

    [Huawei-ftp] put vrpcfg.zip
    200 Port command okay.
    150 Opening ASCII mode data connection for vrpcfg.zip.
    226 Transfer complete.
    FTP: 8174 byte(s) sent in 0.099 second(s) 82.56Kbyte(s)/sec.
    
    [Huawei-ftp] binary
    200 Type set to I.
    
    [Huawei-ftp] get devicesoft.cc
    200 Port command okay.
    150 Opening ASCII mode data connection for devicesoft.cc.
    226 Transfer complete.
    FTP: 141952 byte(s) received in 6.796 second(s) 20.88Kbyte(s)/sec.
    
    [Huawei-ftp]

PC Functioning as a TFTP Server

Figure 10-2  Networking diagram
  1. Run the TFTP server software on the TFTP server (PC) and configure the TFTP service. For details, see relevant help documentation.

  2. Connect the TFTP server and the device and configure IP addresses for them. For details, see PC Functioning as an FTP Server.

  3. Run the tftp put command to upload files to the TFTP server or run the tftp get command to download files from the TFTP server to the device.

    <Huawei> tftp 192.168.0.2 put vrpcfg.zip vrpcfg2.zip
    Info: Transfer file in binary mode.
    Uploading the file to the remote TFTP server. Please wait...|
    TFTP: Uploading the file successfully.
        8174 bytes send in 1 second.
    
    <Huawei> tftp 192.168.0.2 get vrpcfg.zip vrpcfg1.zip
    Info: Transfer file in binary mode.
    Downloading the file from the remote TFTP server. Please wait...\
    TFTP: Downloading the file successfully.
        8174 bytes received in 1 second.
    
    <Huawei>

Device Functioning as an FTP Server

Figure 10-3  Networking diagram
  1. Connect the PC and the device and configure IP addresses for them. For details, see PC Functioning as an FTP Server.

  2. Enable FTP on the device, and create a user name, password, and FTP path.

    NOTE:

    The AR100&AR120&AR150&AR160&AR200&AR1200 series, AR2201-48FE, AR2202-48FE, AR2204-27GE, AR2204-24GE, AR2204-27GE-P, AR2204-51GE-P, AR2204-48GE-P, AR2204E, AR2204E-D, AR2204-51GE, AR2204-51GE-R, AR2220L-DC, AR2220L-AC and AR3670 support the flash memory and USB flash drive. The AR2220-AC, AR2220-DC, AR2220E, AR2240C support the flash memory, hard disk and USB flash drive. The AR2204, AR2240 and AR3260 (using SRU40, SRU60, SRU80, SRU100, SRU100E, SRU200E, SRU200 and SRU400) support the flash memory, Micro SD card, and USB flash drive. The AR2240, AR2204XE-DC and AR2204XE support the Micro SD card and USB flash drive.

    The AR100-S&AR110-S&AR150-S&AR160-S&AR200-S series, AR1200-S series, AR2204-27GE-S and AR2201-48FE-S support the flash memory and USB flash drive. The AR2220-S, AR2240C-S, AR2204-S, AR2240-S, AR3260E-S and AR3260-S support the flash memory, Micro SD card, and USB flash drive.

    The device supports the flash memory and USB flash drive.

    You must set the user level to level 3 or above to establish an FTP connection.

    <Huawei> system-view
    [Huawei] ftp server enable
    [Huawei] aaa
    [Huawei-aaa] local-user huawei password
    Please configure the login password (8-128)                                     
    It is recommended that the password consist of at least 2 types of characters, i
    ncluding lowercase letters, uppercase letters, numerals and special characters. 
    Please enter password:                                                          
    Please confirm password:
    [Huawei-aaa] local-user huawei service-type ftp
    [Huawei-aaa] local-user huawei ftp-directory sd1:
    [Huawei-aaa] local-user huawei privilege level 15
    [Huawei-aaa] quit
    [Huawei] quit
    
  3. Log in to the device by running the ftp command on the PC. Run the get command to download files from the device to the PC or run the put command to upload files to the device.

    For example, on an FTP server with the Windows operating system, choose Start > Run, enter cmd, and click OK.

    C:\Documents and Settings\Administrator> ftp 192.168.0.1
    Connected to 192.168.0.1.
    220 FTP service ready.
    User (192.168.0.1:(none)): huawei
    331 Password required for huawei.
    Password:
    230 User logged in.
    ftp> get vrpcfg.zip
    200 Port command okay.
    150 Opening ASCII mode data connection for vrpcfg.zip.
    226 Transfer complete.
    ftp: receive 5203 bytes in 0.01 seconds 346.87Kbytes/sec.
    ftp> lcd
    Local directory now C:\Documents and Settings\Administrator.
    ftp> put vrpcfg.zip
    200 Port command okay.
    150 Opening ASCII mode data connection for vrpcfg.zip.
    226 Transfer complete.
    ftp: send 5203 bytes in 0.01 seconds 346.00Kbytes/sec.
    
    NOTE:

    If you use the user name Administrator to log in to the PC, the output differs from the above.

    You can run the lcd command to view the path where backup configuration files are saved.

    The commands vary with the operating system. For details, see relevant help documentation of each operating system.

Translation
Download
Updated: 2019-05-10

Document ID: EDOC1000079719

Views: 456416

Downloads: 4321

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next