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.


  1. Use the ip(8) command to create an IP alias.
    The following example attaches the IP address to the eth0 network interface:
    # ip address add 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 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.


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.