Configure IP aliases for a remote Linux location


+

Search Tips   |   Advanced Search

 

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

To configure IP aliases:

  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

    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.


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 test to retrieve the runtime IP addresses of each virtual user. For information, see Retrieve the IP address of a virtual user.


Related tasks

  • Configure IP aliases for a remote Windows location
  • Configure IP aliases for a remote AIX location
  • Enable virtual users to use IP aliases