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


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


CLI-based Configuration Guide - Network Management and Monitoring

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R009

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).
Configuring a DHCP Test Instance

Configuring a DHCP Test Instance


Before configuring a DHCP test instance, configure a DHCP server or DHCP Relay, and ensure reachable routes between the DHCP client and the DHCP server or the DHCP Relay.

Through the DHCP test, you can obtain the following information:

  • Time for a DHCP client to set up a connection with a DHCP server

  • Time for a DHCP client to obtain its IP address


The NQA client also functions as the DHCP client. Perform the following steps on the NQA client.

The timeout, probe-count, and frequency commands constrain each other; therefore, properly set the values when running the three commands. Improper command settings may lead to test failure.

  • On a network with poor quality and low transmission rate, increase the timeout value to ensure that the response to NQA detection packets can be received.
  • On a network with low reliability, increase the probe-count value because multiple detection packets may need to be sent to ensure successful detection.
  • The frequency value must be larger than the product of timeout and probe-count.


  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run ip address dhcp-alloc

    The DHCP client is enabled.

  4. Run quit

    Exit from the interface view.

  5. Run nqa test-instance admin-name test-name

    An NQA test instance is created, and the NQA view is displayed.

  6. Run test-type dhcp

    The test type is set to DHCP.


    The test cannot be started after multiple NQA DHCP test instances are configured.

  7. Run source-interface interface-type interface-number

    The source interface that sends DHCP request packets is specified.


    Do not configure DHCP on the interface that sends DHCP request packets; otherwise, NQA DHCP test instance will fail.

  8. (Optional) Run the following commands as required to configure parameters for the DHCP test.

    • Run description string

      A description is configured for the test instance.

    • Run frequency interval

      The test period is set for the NQA test instance.

    • Run timeout time

      The timeout period of a probe is set for the NQA test instance.

      By default, the timeout period of a DHCP probe is 15 seconds.


      In a DHCP test, the NAQ client may need to wait 10 seconds for the response after sending a probe packet. By default, the timeout period of a probe is 15 seconds. If you need to change the timeout period, you are advised to set the timeout period longer than 10 seconds.

    • Run probe-count number

      The number of probes in a test is set.

    • Run records history number

      The maximum number of historical records is set for the NQA test instance.

    • Run records result number

      The maximum number of result records is set for the NQA test instance.

    • Run agetime hh:mm:ss

      The aging time is set for the NQA test instance.

    • Run fail-percent percent

      The failure percentage is set for the NQA test instance.

Updated: 2019-05-17

Document ID: EDOC1000174072

Views: 99959

Downloads: 331

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