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 Professional 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 Controller

    Once you define multiple IP addresses, you set an option to tell 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 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.

    4. In the same tab, General, specify the spoofing mode indicating how to use the IP addresses that were added to the load generator machine—sequentially or randomly. For details, see IP wizard.

Back to top