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 - Network Management and Monitoring

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature 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 Configuring an FTP Download Test Instance

Example for Configuring an FTP Download Test Instance

Networking Requirements

In Figure 7-19, the performance of the FTP download function needs to be checked.

Figure 7-19  Networking diagram for configuring an FTP download test instance

Configuration Roadmap

The configuration roadmap is as follows:

  1. Configure RouterA as an NQA client.

  2. Configure RouterB as the FTP server. Log in to the FTP server using user name user1 and password Helloworld@6789 to download file test.txt.

  3. Create and start an FTP test instance on RouterA to check whether RouterA can set up a connection with the FTP server and to obtain duration for downloading the file from the FTP server.

Procedure

  1. Configure RouterB.

    # Configure an IP address for RouterB.

    <Huawei> system-view
    [Huawei] sysname RouterB
    [RouterB] interface gigabitethernet 1/0/0
    [RouterB-GigabitEthernet1/0/0] ip address 10.1.1.2 24
    [RouterB-GigabitEthernet1/0/0] quit

    Configure RouterB as the FTP server.

    [RouterB] ftp server enable
    [RouterB] aaa
    [RouterB-aaa] local-user user1 password irreversible-cipher Helloworld@6789
    [RouterB-aaa] local-user user1 privilege level 15
    [RouterB-aaa] local-user user1 service-type ftp
    [RouterB-aaa] local-user user1 ftp-directory flash:/
    [RouterB-aaa] quit

  2. Configure RouterA.

    # Configure an IP address for RouterA.

    <Huawei> system-view
    [Huawei]  sysname RouterA
    [RouterA] interface gigabitethernet 1/0/0
    [RouterA-GigabitEthernet1/0/0] ip address 10.1.1.1 24
    [RouterA-GigabitEthernet1/0/0] quit

    # Create an NQA FTP test instance on RouterA.

    [RouterA] nqa test-instance admin ftp
    [RouterA-nqa-admin-ftp] test-type ftp
    [RouterA-nqa-admin-ftp] destination-address ipv4 10.1.1.2
    [RouterA-nqa-admin-ftp] source-address ipv4 10.1.1.1
    [RouterA-nqa-admin-ftp] ftp-operation get
    [RouterA-nqa-admin-ftp] ftp-username user1
    [RouterA-nqa-admin-ftp] ftp-password Helloword@6789
    [RouterA-nqa-admin-ftp] ftp-filename test.txt

  3. Start the test instance.

    [RouterA-nqa-admin-ftp] start now

  4. Verify the configuration.

    [RouterA-nqa-admin-ftp] display nqa results test-instance admin ftp 
     NQA entry(admin, ftp) :testflag is inactive ,testtype is  ftp
      1 . Test 1 result   The test is finished
       SendProbe:1                             ResponseProb:1
       Completion :success                     RTD OverThresholds number: 0
       MessageBodyOctetsSum: 448               Stats errors number: 0
       Operation timeout number: 0             System busy operation number:0
       Drop operation number:0                 Disconnect operation number: 0
       CtrlConnTime Min/Max/Average: 438/438/438
       DataConnTime Min/Max/Average: 218/218/218
       SumTime Min/Max/Average: 656/656/656
       Average RTT:656
       Lost packet ratio:0 %  

Configuration Files

  • RouterA configuration file

    #
     sysname RouterA
    #
    interface GigabitEthernet1/0/0
     ip address 10.1.1.1 255.255.255.0
    #
    nqa test-instance admin ftp
     test-type ftp
     destination-address ipv4 10.1.1.2
     source-address ipv4 10.1.1.1
     ftp-username user1
     ftp-password cipher %^%#}X~*(Tn2C,qJ`SVy3t';Ii,`%^%#
     ftp-filename test.txt
    #
    return
    
  • RouterB configuration file

    #
     sysname RouterB
    #
    aaa
     local-user user1 password irreversible-cipher %^%#HW=5%Mr;:2)/RX$FnU1HLO%-TBMp4wn%;~\#%iAut}_~O%0L%^%#
     local-user user1 privilege level 15
     local-user user1 ftp-directory flash:/
     local-user user1 service-type ftp
    #
    interface GigabitEthernet1/0/0
     ip address 10.1.1.2 255.255.255.0
    #
     ftp server enable
    #
    return
    
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069336

Views: 30144

Downloads: 177

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