IP Spoofing and Adding Multiple IP Addresses To Host

IP Spoofing and Adding Multiple IP Addresses To Host

IP Spoofing:
When you run a scenario, the Vusers on each host machine use the host’s IP address. You can define multiple IP addresses on a host machine to emulate a real- life situation where users sit on different machines.

About Multiple IP Addresses:
Application servers and network devices use IP addresses to identify clients. The application server often caches information about clients coming from the same machine. Network routers try to cache source and destination information to optimize throughput. If many users have the same IP address, both the server and the routers try to optimize. Since Vusers on the same host machine have the same IP address, server and router optimizations do not reflect real- life situations. (real life Network Traffic)
LoadRunner’s multiple IP address feature enables Vusers running on a single machine to be identified by many IP addresses. The server and router recognize the Vusers as coming from different machines and as a result, the testing environment is more realistic.
Note:
1.                     IP Spoofing runs on LG. Each LG will be allotted Bulk IPs. Ex 10 IPs.if we are running 10 users on that LG, each vuser will pick one unique IP. All the IP added should be valid and should be recognized by the network routers and firewalls.
2.                     NIC card should be sufficient strong enough to support the data what flows across the number of Vusers and IP spoofed for the LG.
3.                     DHCP should be disabled on LG Box and IP addresses should be static IP addresses.

Adding IP Addresses to a Host (Load Generator):
LoadRunner includes an IP Wizard program that you run on each host machine to create multiple IP addresses. You add new IP addresses to a machine once and use the addresses for all scenarios.

The following procedure summarizes how to add new IP addresses to a host:
Run the IP Wizard on the host machine to add a specified number of IP addresses.
Re- Start the host machine.
Update the server’s routing table with the new addresses, if necessary.
Enable this feature from the Controller.

Using the IP Wizard:
The IP Wizard resides on each host machine where load generator software is installed. We need to run this process one time to add and register new IP addresses. The new addresses should be in the range of addresses defined by the Internet Assignment Numbers Authority. They are for internal use only for the project.
To add new IP addresses to a host machine:
1.  Invoke the IP Wizard from the LoadRunner program tools.
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg04cB1Qk1qRLYbHr2F2pAYPxxBDynr92S4HrHcYllia5pF53LJPgtIcj_twvpoXAmu_k8HOXHprZ5f3kXVafh3a0Fv2t40RCE9dwXiz8wMGeFasmRNDIJxQFch0UR6NlhpOEJUKzd4Q1Ma/s320/IP_1.GIF

  
2. If you have an existing file with IP address settings, select Load settings from file and choose the file.
3. If you are defining new settings, select New Settings.
4. Click Next to proceed to the next step. If you have more than one network card, choose the card to use for IP addresses and click Next .The optional Web server IP address step enables the IP Wizard to check the server’s routing table to see if it requires updating after the new IP addresses are added to the host. (
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt5Mojh_NCwWFMo0vVtHvE9OtYd-yOxkM6JLvJJ2G0n98SeNhmDoaISNin2FsZxTvfdbxycvHFjfkCMV9mZhQQyrwYaXUuE5Zl3fFuhdwXQqDYoMvU8CB7jEuPOq6-W5hpD19_CWqd1QoR/s320/IP_2.GIF



Note: Using the Load Generator with Multiple NIC card is not recommended for Load Generator Purpose in case test involves measuring the network traffic or it is a large test.
5. To check the server’s routing table directly after adding the addresses, enter the server IP address. 
6. Click Next to see a list of the machine’s IP addresses. Click Add to define the range of addresses. 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirlNqpcmeisb9TWcft0r1obKqz6udU6tDDTs4rb3E2FU_L-mu35DZustipdhHUD4_ZE2mwWlHGyLCz8cVw-1mx8aw8Q_ByJSJcmEl2aTap0y-N5pOeRgYXvlI25eG9jfUz9Af_7AVXARAX/s320/IP_3.GIF
IP addresses include two components, a netid and hostid. The sub mask determines where the netid portion of the address stops and where the hostid begins.
7. Select a class that represents the correct sub mask for the machine’s IP addresses.
8. Specify the number of addresses to create. Select Verify that new IP addresses are not already in use to instruct the IP Wizard to check the new addresses. If some addresses are in use, the IP Wizard will only add the addresses not in use.
9. Click OK to proceed.
After the IP Wizard creates the new addresses, the summary dialog box lists all of the IP addresses. 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZfYdimq9oqCJMpQiOeNL7ZbCQ93jTmpVEI-uMpUOOCZXb_E4l0gzjoVzxi3tvjSnoknYD9lJOodGa6N5BokwV1Y0YvQzbswi9X7BMDPXOew94EQB0RV3haVIVEc2knaAuBl4u57yMEROe/s320/IP_4.GIF


10.Click Finish to exit the IP Wizard. The IP Wizard Summary dialog box is displayed.
11. Enable IP spoofing from controller before connecting to load generators

Comments

Popular posts from this blog

web_set_max_html_param_len

Lr Advance Param Function In Loadrunner With Example

Error -27492: "HttpSendRequest" failed, Windows error code=12057 (certificate revoked) and retry limit (0) exceeded for URL="