![Huawei AR150/200 Series Configuration Manual Download Page 214](http://html.mh-extra.com/html/huawei/ar150-200-series/ar150-200-series_configuration-manual_169293214.webp)
interface Ethernet1/0/0
ip address 10.1.1.2 255.255.255.0
#
return
6.20.2 Example for Configuring the DHCP Test
This part provides examples for configuring a DHCP test to detect the speed at which a DHCP
server that sets up a connection with an NQA agent obtains the IP address.
Networking Requirements
As shown in
, Router B functions as a DHCP server. It is required to perform an NQA
DHCP test to obtain the time taken by the DHCP server to allocate an IP address to the client.
Figure 6-4
Networking diagram of the DHCP test
R o u te r A
R o u te r B
E th 1/0/0
1 0 .1 .1 .2 /2 4
N Q A a g e n t
E th 1 /0 /0
D H C P S e rv e r
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure Router A as the NQA client.
2.
Create and perform the DHCP test on Router A to check whether Router A can set up a
connection with Router B and obtain an IP address from Router B.
Data Preparation
To complete the configuration, you need the following data:
l
IP address of the DHCP server
l
Source interface
l
Timeout period
Procedure
Step 1
Configure the IP address. (The detailed procedure is not mentioned here.)
Step 2
Enable the NQA client and create an NQA DHCP test.
<RouterA>
system-view
[RouterA]
nqa test-instance admin dhcp
[RouterA-nqa-admin-dhcp]
test-type dhcp
[RouterA-nqa-admin-dhcp]
source-interface ethernet 1/0/0
[RouterA-nqa-admin-dhcp]
timeout 20
Step 3
Start the test.
[RouterA-nqa-admin-dhcp]
start now
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
6 NQA Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
203