Help Center/ Huawei Cloud EulerOS/ Best Practices/ Compiling qperf to Support IPv6
Updated on 2024-12-09 GMT+08:00

Compiling qperf to Support IPv6

Introduction

qperf 0.4.9 in HCE 2.0 does not support IPv6. To use IPv6, you need to obtain qperf 0.4.11 or later from the community and then upgrade qperf 0.4.9 to qperf 0.4.11 or later.

This tutorial describes how you can download and compile the qperf 0.4.11 source code in HCE 2.0.

Preparations

Prepare an ECS and assign a public IP address or EIP to the ECS.

Procedure

  1. Run the following command to download the qperf 0.4.11 source code package:

    wget https://github.com/linux-rdma/qperf/archive/refs/tags/v0.4.11.tar.gz

  2. Run the following command to decompress the package:

    tar -xf v0.4.11.tar.gz

    After the decompression, the qperf-0.4.11 directory is generated.

  3. Run the following command to install the dependency:

    dnf install gcc make automake

  4. Go to the qperf-0.4.11 directory and run the following commands in sequence for compilation:

    ./cleanup
    ./autogen.sh
    ./configure
    make

  5. Verify the compilation result.

    The binary files obtained after compilation are stored in the qperf-0.4.11/src directory. Go to the directory and run the ./qperf –version command. If information similar to the following is displayed, the compilation is successful and qperf is upgraded from 0.4.9 to 0.4.11.