How to Add IP Addresses to a Load Generator

The following steps describe how to add IP addresses to a load generator.

  1. Run the IP Wizard on the load generator

    • Windows: LoadRunner includes an IP Wizard program that you run on Windows load generators to create multiple IP addresses. You add new IP addresses to a machine once and use the addresses for all scenarios.

    • Run the IP Wizard on the load generator to add a specified number of IP addresses.

      For details, see IP Wizard.

    • Linux: Manually configure the new IP addresses for Linux load generators.

  2. Update the server's routing table with the new addresses

    Once the client machine has new IP addresses, the server needs the addresses in its routing table, so that it can recognize the route back to the client. If the server and client share the same netmask, IP class, and network, the server's routing table does not require modification.

    Note: If there is a router between the client and server machines, the server needs to recognize the path via the router. Make sure to add the following to the server routing table: route from the Web server to the router, and routes from the router to all of the IP addresses on the load generator.

    Update the Web server routing table as follows:

    1. Edit the batch file that appears in the IP Wizard Summary screen. An example .bat file is shown below.

    2. For each occurrence of [GATEWAY_IP], insert your IP address instead.

    3. Run the batch file on the server machine.

  3. Enable the Multiple IP Addresses feature from the Controller

    Once you define multiple IP addresses, you set an option to tell the Controller to use this feature.

    1. In the Controller Design view, select Scenario > Enable IP Spoofer.

    2. Note: You must select this option before connecting to a load generator.

    3. In the Controller's Tools > Options > General tab (Expert mode only), specify how the Controller should allocate the IP addresses: per process or per thread. For details, see Options > General Tab.

Back to top