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

CLI-based Configuration Guide - Basic Configuration

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the Basic configuration supported by the device.
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).
Example for Managing Files When the Device Functions as an FTP Server

Example for Managing Files When the Device Functions as an FTP Server

Networking Requirements

As shown in Figure 11-2, PC1 connects to the device, and the IP address of the management network interface on the device is 10.136.23.5. The device needs to be upgraded. The device is required to function as the FTP server to upload the system software from PC1 to the device and save the configuration file to PC1 for backup. A security policy is configured to ensure that only PC1 is allowed to access the FTP server.

Figure 11-2  Networking diagram for managing files when the device functions as an FTP server

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure the FTP function and FTP user information including user name, password, user level, service type, and authorized directory on the FTP server.
  2. Configure access permissions on the FTP server.
  3. Save the vrpcfg.zip file on the FTP server.
  4. Connect to the FTP server from the PC.
  5. Upload devicesoft.cc to and download vrpcfg.zip from the FTP server.

Procedure

  1. Configure the FTP function and FTP user information on the FTP server.

    <Huawei> system-view
    [Huawei] sysname FTP_Server
    [FTP_Server] ftp server enable
    [FTP_Server] aaa
    [FTP_Server-aaa] local-user admin1234 password irreversible-cipher Helloworld@6789
    [FTP_Server-aaa] local-user admin1234 privilege level 15
    [FTP_Server-aaa] local-user admin1234 service-type ftp
    [FTP_Server-aaa] local-user admin1234 ftp-directory flash:
    [FTP_Server-aaa] quit
    

  2. Configure access permissions on the FTP server.

    [FTP_Server] acl number 2001
    [FTP_Server-acl-basic-2001] rule permit source 10.136.23.10 32 
    [FTP_Server-acl-basic-2001] rule deny source 10.136.23.20 32
    [FTP_Server-acl-basic-2001] quit
    [FTP_Server] ftp acl 2001
    [FTP_Server] quit

  3. Save the vrpcfg.zip file on the FTP server.

    <FTP_Server> save

  4. Connect to the FTP server from the PC as the admin1234 user whose password is Helloworld@6789 and transfer files in binary mode.

    Assume that the PC runs the Window XP operating system.

    C:\Documents and Settings\Administrator> ftp 10.136.23.5
    Connected to 10.136.23.5.
    220 FTP service ready.
    User (10.136.23.5:(none)): admin1234
    331 Password required for admin1234.
    Password:
    230 User logged in.
    ftp> binary
    200 Type set to I.
    ftp>

  5. Upload devicesoft.cc to and download vrpcfg.zip from the FTP server.

    # Upload the devicesoft.cc file to the FTP server.

    ftp> put devicesoft.cc
    200 Port command okay.
    150 Opening BINARY mode data connection for devicesoft.cc
    226 Transfer complete.
    ftp: 93832832 bytes sent in 136.34Seconds 560.79Kbytes/sec.

    # Download the vrpcfg.zip file.

    ftp> get vrpcfg.zip
    200 Port command okay.
    150 Opening BINARY mode data connection for vrpcfg.zip.
    226 Transfer complete.
    ftp: 1257 bytes received in 0.03Seconds 40.55Kbytes/sec.
    NOTE:
    The devicesoft.cc file to be uploaded and the vrpcfg.zip file to be downloaded are stored in the local directory on the FTP client. Before uploading and downloading files, obtain the local directory on the client. The default FTP user's local directory on the Windows XP operating system is C:\Documents and Settings\Administrator.

  6. Verify the configuration.

    # Run the dir command on the FTP server to check the devicesoft.cc file.

    <FTP_Server> dir
    Directory of flash:/
    
      Idx  Attr     Size(Byte)  Date        Time       FileName
        0  -rw-             14  Mar 13 2012 14:13:38   back_time_a
        1  drw-              -  Mar 11 2012 00:58:54   logfile
        2  -rw-              4  Nov 17 2011 09:33:58   snmpnotilog.txt
        3  -rw-         11,238  Mar 12 2012 21:15:56   private-data.txt
        4  -rw-          1,257  Mar 12 2012 21:15:54   vrpcfg.zip
        5  -rw-             14  Mar 13 2012 14:13:38   back_time_b
        6  -rw-     93,832,832  Mar 13 2012 14:24:24   devicesoft.cc
        7  drw-              -  Oct 31 2011 10:20:28   sysdrv
        8  drw-              -  Feb 21 2012 17:16:36   compatible
        9  drw-              -  Feb 09 2012 14:20:10   selftest
       10  -rw-         19,174  Feb 20 2012 18:55:32   backup.cfg
       11  -rw-         23,496  Dec 15 2011 20:59:36   20111215.zip
       12  -rw-            588  Nov 04 2011 13:54:04   servercert.der
       13  -rw-            320  Nov 04 2011 13:54:26   serverkey.der
       14  drw-              -  Nov 04 2011 13:58:36   security
    ...
    1,927,220 KB total (1,130,464 KB free)
    # Access the FTP user's local directory on the PC and check the vrpcfg.zip file.

Configuration File

#
sysname FTP_Server
#
aaa
 local-user admin1234 password irreversible-cipher %^%#D2cW%k[R=*_*l"E^X9M6Ra'6D\iS(Xqg%U@4,I!$zbBUa'9R%^%#
 local-user admin1234 privilege level 15
 local-user admin1234 ftp-directory flash:
 local-user admin1234 service-type ftp
#
interface GigabitEthernet1/0/0
 undo portswitch
 ip address 10.136.23.5 255.255.255.0
#
 acl number 2001                                                                 
  rule 5 permit source 10.136.23.10 32
#
 ftp server enable
 ftp acl 2001
#
return
Translation
Download
Updated: 2019-05-20

Document ID: EDOC1100034225

Views: 44802

Downloads: 100

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