Configuring IP aliases for a remote Linux location

To make it appear that a virtual user has its own IP address during a schedule run, configure IP aliases for each Linux location.

Procedure

  1. Use the ip(8) command to create an IP alias.
    The following example attaches the IP address 9.37.207.29 to the eth0 network interface:
    # ip address add 9.37.207.29 dev eth0
    Note: To create a large number of aliases on a Redhat Linux platform, follow the instructions in the file /etc/sysconfig/network-scripts/ifup-aliases.
    The following example deletes the alias:
    # ip address del 9.37.207.29 dev eth0
  2. Set the schedule so that the virtual users will use the IP aliases during a run; for information, see Enabling virtual users to use IP aliases.

Results

When you run the schedule, it will give the impression that the network traffic is being generated from multiple hosts.

What to do next

You can insert custom code into your test to retrieve the runtime IP addresses of each virtual user. For information, see Retrieving the IP address of a virtual user.