Configuring the DHCP operation

The DHCP operation measures whether or not the DHCP server can respond to client requests. DHCP also measures the amount of time it takes the NQA client to obtain an IP address from a DHCP server.

The NQA client simulates the DHCP relay agent to forward DHCP requests for IP address acquisition from the DHCP server. The interface that performs the DHCP operation does not change its IP address. When the DHCP operation completes, the NQA client sends a packet to release the obtained IP address.

To configure the DHCP operation:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create an NQA operation and enter NQA operation view.

nqa entry admin-name operation-tag

By default, no NQA operations exist.

3. Specify the DHCP type and enter its view.

type dhcp

N/A

4. Specify the IP address of the DHCP server as the destination IP address of DHCP packets.

destination ip ip-address

By default, no destination IP address is specified.

5. (Optional.) Specify an output interface for DHCP request packets.

out interface interface-type interface-number

By default, the output interface for DHCP request packets is not specified. The NQA client determines the output interface based on the routing table lookup.

6. (Optional.) Specify the source IP address of DHCP request packets.

source ip ip-address

By default, the packets take the primary IP address of the output interface as their source IP address.

The specified source IP address must be the IP address of a local interface, and the local interface must be up. Otherwise, no probe packets can be sent out.

The NQA client adds the source IP address to the giaddr field in DHCP requests to be sent to the DHCP server. For more information about the giaddr field, see DHCP in Layer 3—IP Services Configuration Guide.